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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as ClosedEnum, O as OpenEnum, G as GetOrCreateCustomerParams, R as ResolvedIdentity } from './authTypes-
|
|
1
|
+
import { b as ClosedEnum, O as OpenEnum, G as GetOrCreateCustomerParams, R as ResolvedIdentity } from './authTypes-Bdpu8A6G.mjs';
|
|
2
2
|
import { z } from 'zod/v4';
|
|
3
3
|
import { BackendResult } from './core/types/responseTypes.mjs';
|
|
4
4
|
|
|
@@ -2170,6 +2170,10 @@ type CustomerDataAutoTopup = {
|
|
|
2170
2170
|
* Optional rate limit to cap how often auto top-ups occur.
|
|
2171
2171
|
*/
|
|
2172
2172
|
purchaseLimit?: CustomerDataPurchaseLimit | undefined;
|
|
2173
|
+
/**
|
|
2174
|
+
* When true, auto top-up creates a send_invoice invoice instead of auto-charging.
|
|
2175
|
+
*/
|
|
2176
|
+
invoiceMode?: boolean | undefined;
|
|
2173
2177
|
};
|
|
2174
2178
|
type CustomerDataSpendLimit = {
|
|
2175
2179
|
/**
|
|
@@ -4104,6 +4108,10 @@ type CustomerAutoTopup = {
|
|
|
4104
4108
|
* Optional rate limit to cap how often auto top-ups occur.
|
|
4105
4109
|
*/
|
|
4106
4110
|
purchaseLimit?: CustomerPurchaseLimit | undefined;
|
|
4111
|
+
/**
|
|
4112
|
+
* When true, auto top-up creates a send_invoice invoice instead of auto-charging.
|
|
4113
|
+
*/
|
|
4114
|
+
invoiceMode?: boolean | undefined;
|
|
4107
4115
|
};
|
|
4108
4116
|
type CustomerSpendLimit = {
|
|
4109
4117
|
/**
|
|
@@ -5774,6 +5782,10 @@ type ListCustomersAutoTopup = {
|
|
|
5774
5782
|
* Optional rate limit to cap how often auto top-ups occur.
|
|
5775
5783
|
*/
|
|
5776
5784
|
purchaseLimit?: ListCustomersPurchaseLimit | undefined;
|
|
5785
|
+
/**
|
|
5786
|
+
* When true, auto top-up creates a send_invoice invoice instead of auto-charging.
|
|
5787
|
+
*/
|
|
5788
|
+
invoiceMode?: boolean | undefined;
|
|
5777
5789
|
};
|
|
5778
5790
|
type ListCustomersSpendLimit = {
|
|
5779
5791
|
/**
|
|
@@ -10287,6 +10299,10 @@ type UpdateCustomerAutoTopupRequest = {
|
|
|
10287
10299
|
* Optional rate limit to cap how often auto top-ups occur.
|
|
10288
10300
|
*/
|
|
10289
10301
|
purchaseLimit?: UpdateCustomerPurchaseLimitRequest | undefined;
|
|
10302
|
+
/**
|
|
10303
|
+
* When true, auto top-up creates a send_invoice invoice instead of auto-charging.
|
|
10304
|
+
*/
|
|
10305
|
+
invoiceMode?: boolean | undefined;
|
|
10290
10306
|
};
|
|
10291
10307
|
type UpdateCustomerSpendLimitRequest = {
|
|
10292
10308
|
/**
|
|
@@ -10468,6 +10484,10 @@ type UpdateCustomerAutoTopupResponse = {
|
|
|
10468
10484
|
* Optional rate limit to cap how often auto top-ups occur.
|
|
10469
10485
|
*/
|
|
10470
10486
|
purchaseLimit?: UpdateCustomerPurchaseLimitResponse | undefined;
|
|
10487
|
+
/**
|
|
10488
|
+
* When true, auto top-up creates a send_invoice invoice instead of auto-charging.
|
|
10489
|
+
*/
|
|
10490
|
+
invoiceMode?: boolean | undefined;
|
|
10471
10491
|
};
|
|
10472
10492
|
type UpdateCustomerSpendLimitResponse = {
|
|
10473
10493
|
/**
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
routeConfigs,
|
|
9
9
|
sanitizeBody,
|
|
10
10
|
secretKeyCheck
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-CG3LL2TQ.mjs";
|
|
12
12
|
import {
|
|
13
13
|
getActiveOrganization
|
|
14
14
|
} from "./chunk-BT3EAYVW.mjs";
|
|
@@ -60,8 +60,8 @@ var SDK_METADATA = {
|
|
|
60
60
|
language: "typescript",
|
|
61
61
|
openapiDocVersion: "2.2.0",
|
|
62
62
|
sdkVersion: "0.10.17",
|
|
63
|
-
genVersion: "2.879.
|
|
64
|
-
userAgent: "speakeasy-sdk/typescript 0.10.17 2.879.
|
|
63
|
+
genVersion: "2.879.6",
|
|
64
|
+
userAgent: "speakeasy-sdk/typescript 0.10.17 2.879.6 2.2.0 @useautumn/sdk"
|
|
65
65
|
};
|
|
66
66
|
|
|
67
67
|
// ../sdk/src/lib/http.ts
|
|
@@ -2678,12 +2678,14 @@ var CustomerDataAutoTopup$outboundSchema = z15.pipe(
|
|
|
2678
2678
|
quantity: z15.number(),
|
|
2679
2679
|
purchaseLimit: z15.optional(
|
|
2680
2680
|
z15.lazy(() => CustomerDataPurchaseLimit$outboundSchema)
|
|
2681
|
-
)
|
|
2681
|
+
),
|
|
2682
|
+
invoiceMode: z15.optional(z15.boolean())
|
|
2682
2683
|
}),
|
|
2683
2684
|
z15.transform((v) => {
|
|
2684
2685
|
return remap(v, {
|
|
2685
2686
|
featureId: "feature_id",
|
|
2686
|
-
purchaseLimit: "purchase_limit"
|
|
2687
|
+
purchaseLimit: "purchase_limit",
|
|
2688
|
+
invoiceMode: "invoice_mode"
|
|
2687
2689
|
});
|
|
2688
2690
|
})
|
|
2689
2691
|
);
|
|
@@ -4037,12 +4039,14 @@ var CustomerAutoTopup$inboundSchema = z21.pipe(
|
|
|
4037
4039
|
quantity: number2(),
|
|
4038
4040
|
purchase_limit: optional2(
|
|
4039
4041
|
z21.lazy(() => CustomerPurchaseLimit$inboundSchema)
|
|
4040
|
-
)
|
|
4042
|
+
),
|
|
4043
|
+
invoice_mode: optional2(boolean2())
|
|
4041
4044
|
}),
|
|
4042
4045
|
z21.transform((v) => {
|
|
4043
4046
|
return remap(v, {
|
|
4044
4047
|
"feature_id": "featureId",
|
|
4045
|
-
"purchase_limit": "purchaseLimit"
|
|
4048
|
+
"purchase_limit": "purchaseLimit",
|
|
4049
|
+
"invoice_mode": "invoiceMode"
|
|
4046
4050
|
});
|
|
4047
4051
|
})
|
|
4048
4052
|
);
|
|
@@ -4812,12 +4816,14 @@ var GetOrCreateCustomerAutoTopup$outboundSchema = z30.pipe(
|
|
|
4812
4816
|
quantity: z30.number(),
|
|
4813
4817
|
purchaseLimit: z30.optional(
|
|
4814
4818
|
z30.lazy(() => GetOrCreateCustomerPurchaseLimit$outboundSchema)
|
|
4815
|
-
)
|
|
4819
|
+
),
|
|
4820
|
+
invoiceMode: z30.optional(z30.boolean())
|
|
4816
4821
|
}),
|
|
4817
4822
|
z30.transform((v) => {
|
|
4818
4823
|
return remap(v, {
|
|
4819
4824
|
featureId: "feature_id",
|
|
4820
|
-
purchaseLimit: "purchase_limit"
|
|
4825
|
+
purchaseLimit: "purchase_limit",
|
|
4826
|
+
invoiceMode: "invoice_mode"
|
|
4821
4827
|
});
|
|
4822
4828
|
})
|
|
4823
4829
|
);
|
|
@@ -5302,12 +5308,14 @@ var ListCustomersAutoTopup$inboundSchema = z32.pipe(
|
|
|
5302
5308
|
quantity: number2(),
|
|
5303
5309
|
purchase_limit: optional2(
|
|
5304
5310
|
z32.lazy(() => ListCustomersPurchaseLimit$inboundSchema)
|
|
5305
|
-
)
|
|
5311
|
+
),
|
|
5312
|
+
invoice_mode: optional2(boolean2())
|
|
5306
5313
|
}),
|
|
5307
5314
|
z32.transform((v) => {
|
|
5308
5315
|
return remap(v, {
|
|
5309
5316
|
"feature_id": "featureId",
|
|
5310
|
-
"purchase_limit": "purchaseLimit"
|
|
5317
|
+
"purchase_limit": "purchaseLimit",
|
|
5318
|
+
"invoice_mode": "invoiceMode"
|
|
5311
5319
|
});
|
|
5312
5320
|
})
|
|
5313
5321
|
);
|
|
@@ -8542,12 +8550,14 @@ var UpdateCustomerAutoTopupRequest$outboundSchema = z45.pipe(
|
|
|
8542
8550
|
quantity: z45.number(),
|
|
8543
8551
|
purchaseLimit: z45.optional(
|
|
8544
8552
|
z45.lazy(() => UpdateCustomerPurchaseLimitRequest$outboundSchema)
|
|
8545
|
-
)
|
|
8553
|
+
),
|
|
8554
|
+
invoiceMode: z45.optional(z45.boolean())
|
|
8546
8555
|
}),
|
|
8547
8556
|
z45.transform((v) => {
|
|
8548
8557
|
return remap(v, {
|
|
8549
8558
|
featureId: "feature_id",
|
|
8550
|
-
purchaseLimit: "purchase_limit"
|
|
8559
|
+
purchaseLimit: "purchase_limit",
|
|
8560
|
+
invoiceMode: "invoice_mode"
|
|
8551
8561
|
});
|
|
8552
8562
|
})
|
|
8553
8563
|
);
|
|
@@ -8663,12 +8673,14 @@ var UpdateCustomerAutoTopupResponse$inboundSchema = z45.pipe(
|
|
|
8663
8673
|
quantity: number2(),
|
|
8664
8674
|
purchase_limit: optional2(
|
|
8665
8675
|
z45.lazy(() => UpdateCustomerPurchaseLimitResponse$inboundSchema)
|
|
8666
|
-
)
|
|
8676
|
+
),
|
|
8677
|
+
invoice_mode: optional2(boolean2())
|
|
8667
8678
|
}),
|
|
8668
8679
|
z45.transform((v) => {
|
|
8669
8680
|
return remap(v, {
|
|
8670
8681
|
"feature_id": "featureId",
|
|
8671
|
-
"purchase_limit": "purchaseLimit"
|
|
8682
|
+
"purchase_limit": "purchaseLimit",
|
|
8683
|
+
"invoice_mode": "invoiceMode"
|
|
8672
8684
|
});
|
|
8673
8685
|
})
|
|
8674
8686
|
);
|
|
@@ -350,7 +350,8 @@ var getOrCreateCustomerAutoTopupOutboundSchema = z4.object({
|
|
|
350
350
|
enabled: z4.boolean(),
|
|
351
351
|
threshold: z4.number(),
|
|
352
352
|
quantity: z4.number(),
|
|
353
|
-
purchase_limit: z4.union([getOrCreateCustomerPurchaseLimitOutboundSchema, z4.undefined()]).optional()
|
|
353
|
+
purchase_limit: z4.union([getOrCreateCustomerPurchaseLimitOutboundSchema, z4.undefined()]).optional(),
|
|
354
|
+
invoice_mode: z4.union([z4.boolean(), z4.undefined()]).optional()
|
|
354
355
|
});
|
|
355
356
|
var getOrCreateCustomerSpendLimitOutboundSchema = z4.object({
|
|
356
357
|
feature_id: z4.union([z4.string(), z4.undefined()]).optional(),
|
|
@@ -408,7 +409,8 @@ var getOrCreateCustomerAutoTopupSchema = z4.object({
|
|
|
408
409
|
enabled: z4.union([z4.boolean(), z4.undefined()]).optional(),
|
|
409
410
|
threshold: z4.number(),
|
|
410
411
|
quantity: z4.number(),
|
|
411
|
-
purchaseLimit: z4.union([getOrCreateCustomerPurchaseLimitSchema, z4.undefined()]).optional()
|
|
412
|
+
purchaseLimit: z4.union([getOrCreateCustomerPurchaseLimitSchema, z4.undefined()]).optional(),
|
|
413
|
+
invoiceMode: z4.union([z4.boolean(), z4.undefined()]).optional()
|
|
412
414
|
});
|
|
413
415
|
var getOrCreateCustomerThresholdTypeSchema = closedEnumSchema3;
|
|
414
416
|
var getOrCreateCustomerUsageAlertSchema = z4.object({
|
|
@@ -389,7 +389,8 @@ var getOrCreateCustomerAutoTopupOutboundSchema = import_v44.z.object({
|
|
|
389
389
|
enabled: import_v44.z.boolean(),
|
|
390
390
|
threshold: import_v44.z.number(),
|
|
391
391
|
quantity: import_v44.z.number(),
|
|
392
|
-
purchase_limit: import_v44.z.union([getOrCreateCustomerPurchaseLimitOutboundSchema, import_v44.z.undefined()]).optional()
|
|
392
|
+
purchase_limit: import_v44.z.union([getOrCreateCustomerPurchaseLimitOutboundSchema, import_v44.z.undefined()]).optional(),
|
|
393
|
+
invoice_mode: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional()
|
|
393
394
|
});
|
|
394
395
|
var getOrCreateCustomerSpendLimitOutboundSchema = import_v44.z.object({
|
|
395
396
|
feature_id: import_v44.z.union([import_v44.z.string(), import_v44.z.undefined()]).optional(),
|
|
@@ -447,7 +448,8 @@ var getOrCreateCustomerAutoTopupSchema = import_v44.z.object({
|
|
|
447
448
|
enabled: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional(),
|
|
448
449
|
threshold: import_v44.z.number(),
|
|
449
450
|
quantity: import_v44.z.number(),
|
|
450
|
-
purchaseLimit: import_v44.z.union([getOrCreateCustomerPurchaseLimitSchema, import_v44.z.undefined()]).optional()
|
|
451
|
+
purchaseLimit: import_v44.z.union([getOrCreateCustomerPurchaseLimitSchema, import_v44.z.undefined()]).optional(),
|
|
452
|
+
invoiceMode: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional()
|
|
451
453
|
});
|
|
452
454
|
var getOrCreateCustomerThresholdTypeSchema = closedEnumSchema3;
|
|
453
455
|
var getOrCreateCustomerUsageAlertSchema = import_v44.z.object({
|
|
@@ -2625,8 +2627,8 @@ var SDK_METADATA = {
|
|
|
2625
2627
|
language: "typescript",
|
|
2626
2628
|
openapiDocVersion: "2.2.0",
|
|
2627
2629
|
sdkVersion: "0.10.17",
|
|
2628
|
-
genVersion: "2.879.
|
|
2629
|
-
userAgent: "speakeasy-sdk/typescript 0.10.17 2.879.
|
|
2630
|
+
genVersion: "2.879.6",
|
|
2631
|
+
userAgent: "speakeasy-sdk/typescript 0.10.17 2.879.6 2.2.0 @useautumn/sdk"
|
|
2630
2632
|
};
|
|
2631
2633
|
|
|
2632
2634
|
// ../sdk/src/lib/http.ts
|
|
@@ -5243,12 +5245,14 @@ var CustomerDataAutoTopup$outboundSchema = z31.pipe(
|
|
|
5243
5245
|
quantity: z31.number(),
|
|
5244
5246
|
purchaseLimit: z31.optional(
|
|
5245
5247
|
z31.lazy(() => CustomerDataPurchaseLimit$outboundSchema)
|
|
5246
|
-
)
|
|
5248
|
+
),
|
|
5249
|
+
invoiceMode: z31.optional(z31.boolean())
|
|
5247
5250
|
}),
|
|
5248
5251
|
z31.transform((v) => {
|
|
5249
5252
|
return remap(v, {
|
|
5250
5253
|
featureId: "feature_id",
|
|
5251
|
-
purchaseLimit: "purchase_limit"
|
|
5254
|
+
purchaseLimit: "purchase_limit",
|
|
5255
|
+
invoiceMode: "invoice_mode"
|
|
5252
5256
|
});
|
|
5253
5257
|
})
|
|
5254
5258
|
);
|
|
@@ -6602,12 +6606,14 @@ var CustomerAutoTopup$inboundSchema = z37.pipe(
|
|
|
6602
6606
|
quantity: number2(),
|
|
6603
6607
|
purchase_limit: optional2(
|
|
6604
6608
|
z37.lazy(() => CustomerPurchaseLimit$inboundSchema)
|
|
6605
|
-
)
|
|
6609
|
+
),
|
|
6610
|
+
invoice_mode: optional2(boolean2())
|
|
6606
6611
|
}),
|
|
6607
6612
|
z37.transform((v) => {
|
|
6608
6613
|
return remap(v, {
|
|
6609
6614
|
"feature_id": "featureId",
|
|
6610
|
-
"purchase_limit": "purchaseLimit"
|
|
6615
|
+
"purchase_limit": "purchaseLimit",
|
|
6616
|
+
"invoice_mode": "invoiceMode"
|
|
6611
6617
|
});
|
|
6612
6618
|
})
|
|
6613
6619
|
);
|
|
@@ -7377,12 +7383,14 @@ var GetOrCreateCustomerAutoTopup$outboundSchema = z46.pipe(
|
|
|
7377
7383
|
quantity: z46.number(),
|
|
7378
7384
|
purchaseLimit: z46.optional(
|
|
7379
7385
|
z46.lazy(() => GetOrCreateCustomerPurchaseLimit$outboundSchema)
|
|
7380
|
-
)
|
|
7386
|
+
),
|
|
7387
|
+
invoiceMode: z46.optional(z46.boolean())
|
|
7381
7388
|
}),
|
|
7382
7389
|
z46.transform((v) => {
|
|
7383
7390
|
return remap(v, {
|
|
7384
7391
|
featureId: "feature_id",
|
|
7385
|
-
purchaseLimit: "purchase_limit"
|
|
7392
|
+
purchaseLimit: "purchase_limit",
|
|
7393
|
+
invoiceMode: "invoice_mode"
|
|
7386
7394
|
});
|
|
7387
7395
|
})
|
|
7388
7396
|
);
|
|
@@ -7867,12 +7875,14 @@ var ListCustomersAutoTopup$inboundSchema = z48.pipe(
|
|
|
7867
7875
|
quantity: number2(),
|
|
7868
7876
|
purchase_limit: optional2(
|
|
7869
7877
|
z48.lazy(() => ListCustomersPurchaseLimit$inboundSchema)
|
|
7870
|
-
)
|
|
7878
|
+
),
|
|
7879
|
+
invoice_mode: optional2(boolean2())
|
|
7871
7880
|
}),
|
|
7872
7881
|
z48.transform((v) => {
|
|
7873
7882
|
return remap(v, {
|
|
7874
7883
|
"feature_id": "featureId",
|
|
7875
|
-
"purchase_limit": "purchaseLimit"
|
|
7884
|
+
"purchase_limit": "purchaseLimit",
|
|
7885
|
+
"invoice_mode": "invoiceMode"
|
|
7876
7886
|
});
|
|
7877
7887
|
})
|
|
7878
7888
|
);
|
|
@@ -11107,12 +11117,14 @@ var UpdateCustomerAutoTopupRequest$outboundSchema = z61.pipe(
|
|
|
11107
11117
|
quantity: z61.number(),
|
|
11108
11118
|
purchaseLimit: z61.optional(
|
|
11109
11119
|
z61.lazy(() => UpdateCustomerPurchaseLimitRequest$outboundSchema)
|
|
11110
|
-
)
|
|
11120
|
+
),
|
|
11121
|
+
invoiceMode: z61.optional(z61.boolean())
|
|
11111
11122
|
}),
|
|
11112
11123
|
z61.transform((v) => {
|
|
11113
11124
|
return remap(v, {
|
|
11114
11125
|
featureId: "feature_id",
|
|
11115
|
-
purchaseLimit: "purchase_limit"
|
|
11126
|
+
purchaseLimit: "purchase_limit",
|
|
11127
|
+
invoiceMode: "invoice_mode"
|
|
11116
11128
|
});
|
|
11117
11129
|
})
|
|
11118
11130
|
);
|
|
@@ -11228,12 +11240,14 @@ var UpdateCustomerAutoTopupResponse$inboundSchema = z61.pipe(
|
|
|
11228
11240
|
quantity: number2(),
|
|
11229
11241
|
purchase_limit: optional2(
|
|
11230
11242
|
z61.lazy(() => UpdateCustomerPurchaseLimitResponse$inboundSchema)
|
|
11231
|
-
)
|
|
11243
|
+
),
|
|
11244
|
+
invoice_mode: optional2(boolean2())
|
|
11232
11245
|
}),
|
|
11233
11246
|
z61.transform((v) => {
|
|
11234
11247
|
return remap(v, {
|
|
11235
11248
|
"feature_id": "featureId",
|
|
11236
|
-
"purchase_limit": "purchaseLimit"
|
|
11249
|
+
"purchase_limit": "purchaseLimit",
|
|
11250
|
+
"invoice_mode": "invoiceMode"
|
|
11237
11251
|
});
|
|
11238
11252
|
})
|
|
11239
11253
|
);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "./chunk-HIWOK3G6.mjs";
|
|
2
2
|
import {
|
|
3
3
|
createAutumnEndpoint
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-UCMJFTKD.mjs";
|
|
5
5
|
import {
|
|
6
6
|
createHandleBetterAuthRoute
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3C2VGNW3.mjs";
|
|
8
8
|
import "./chunk-J2WYVGHS.mjs";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-CG3LL2TQ.mjs";
|
|
10
10
|
import "./chunk-BT3EAYVW.mjs";
|
|
11
11
|
import "./chunk-GJAMWZNZ.mjs";
|
|
12
12
|
|
|
@@ -51,6 +51,10 @@ type GetOrCreateCustomerAutoTopup = {
|
|
|
51
51
|
* Optional rate limit to cap how often auto top-ups occur.
|
|
52
52
|
*/
|
|
53
53
|
purchaseLimit?: GetOrCreateCustomerPurchaseLimit | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* When true, auto top-up creates a send_invoice invoice instead of auto-charging.
|
|
56
|
+
*/
|
|
57
|
+
invoiceMode?: boolean | undefined;
|
|
54
58
|
};
|
|
55
59
|
type GetOrCreateCustomerSpendLimit = {
|
|
56
60
|
/**
|
|
@@ -51,6 +51,10 @@ type GetOrCreateCustomerAutoTopup = {
|
|
|
51
51
|
* Optional rate limit to cap how often auto top-ups occur.
|
|
52
52
|
*/
|
|
53
53
|
purchaseLimit?: GetOrCreateCustomerPurchaseLimit | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* When true, auto top-up creates a send_invoice invoice instead of auto-charging.
|
|
56
|
+
*/
|
|
57
|
+
invoiceMode?: boolean | undefined;
|
|
54
58
|
};
|
|
55
59
|
type GetOrCreateCustomerSpendLimit = {
|
|
56
60
|
/**
|
|
@@ -377,7 +377,8 @@ var getOrCreateCustomerAutoTopupOutboundSchema = import_v44.z.object({
|
|
|
377
377
|
enabled: import_v44.z.boolean(),
|
|
378
378
|
threshold: import_v44.z.number(),
|
|
379
379
|
quantity: import_v44.z.number(),
|
|
380
|
-
purchase_limit: import_v44.z.union([getOrCreateCustomerPurchaseLimitOutboundSchema, import_v44.z.undefined()]).optional()
|
|
380
|
+
purchase_limit: import_v44.z.union([getOrCreateCustomerPurchaseLimitOutboundSchema, import_v44.z.undefined()]).optional(),
|
|
381
|
+
invoice_mode: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional()
|
|
381
382
|
});
|
|
382
383
|
var getOrCreateCustomerSpendLimitOutboundSchema = import_v44.z.object({
|
|
383
384
|
feature_id: import_v44.z.union([import_v44.z.string(), import_v44.z.undefined()]).optional(),
|
|
@@ -435,7 +436,8 @@ var getOrCreateCustomerAutoTopupSchema = import_v44.z.object({
|
|
|
435
436
|
enabled: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional(),
|
|
436
437
|
threshold: import_v44.z.number(),
|
|
437
438
|
quantity: import_v44.z.number(),
|
|
438
|
-
purchaseLimit: import_v44.z.union([getOrCreateCustomerPurchaseLimitSchema, import_v44.z.undefined()]).optional()
|
|
439
|
+
purchaseLimit: import_v44.z.union([getOrCreateCustomerPurchaseLimitSchema, import_v44.z.undefined()]).optional(),
|
|
440
|
+
invoiceMode: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional()
|
|
439
441
|
});
|
|
440
442
|
var getOrCreateCustomerThresholdTypeSchema = closedEnumSchema3;
|
|
441
443
|
var getOrCreateCustomerUsageAlertSchema = import_v44.z.object({
|
|
@@ -79,8 +79,8 @@ var SDK_METADATA = {
|
|
|
79
79
|
language: "typescript",
|
|
80
80
|
openapiDocVersion: "2.2.0",
|
|
81
81
|
sdkVersion: "0.10.17",
|
|
82
|
-
genVersion: "2.879.
|
|
83
|
-
userAgent: "speakeasy-sdk/typescript 0.10.17 2.879.
|
|
82
|
+
genVersion: "2.879.6",
|
|
83
|
+
userAgent: "speakeasy-sdk/typescript 0.10.17 2.879.6 2.2.0 @useautumn/sdk"
|
|
84
84
|
};
|
|
85
85
|
|
|
86
86
|
// ../sdk/src/lib/http.ts
|
|
@@ -2697,12 +2697,14 @@ var CustomerDataAutoTopup$outboundSchema = z15.pipe(
|
|
|
2697
2697
|
quantity: z15.number(),
|
|
2698
2698
|
purchaseLimit: z15.optional(
|
|
2699
2699
|
z15.lazy(() => CustomerDataPurchaseLimit$outboundSchema)
|
|
2700
|
-
)
|
|
2700
|
+
),
|
|
2701
|
+
invoiceMode: z15.optional(z15.boolean())
|
|
2701
2702
|
}),
|
|
2702
2703
|
z15.transform((v) => {
|
|
2703
2704
|
return remap(v, {
|
|
2704
2705
|
featureId: "feature_id",
|
|
2705
|
-
purchaseLimit: "purchase_limit"
|
|
2706
|
+
purchaseLimit: "purchase_limit",
|
|
2707
|
+
invoiceMode: "invoice_mode"
|
|
2706
2708
|
});
|
|
2707
2709
|
})
|
|
2708
2710
|
);
|
|
@@ -4056,12 +4058,14 @@ var CustomerAutoTopup$inboundSchema = z21.pipe(
|
|
|
4056
4058
|
quantity: number2(),
|
|
4057
4059
|
purchase_limit: optional2(
|
|
4058
4060
|
z21.lazy(() => CustomerPurchaseLimit$inboundSchema)
|
|
4059
|
-
)
|
|
4061
|
+
),
|
|
4062
|
+
invoice_mode: optional2(boolean2())
|
|
4060
4063
|
}),
|
|
4061
4064
|
z21.transform((v) => {
|
|
4062
4065
|
return remap(v, {
|
|
4063
4066
|
"feature_id": "featureId",
|
|
4064
|
-
"purchase_limit": "purchaseLimit"
|
|
4067
|
+
"purchase_limit": "purchaseLimit",
|
|
4068
|
+
"invoice_mode": "invoiceMode"
|
|
4065
4069
|
});
|
|
4066
4070
|
})
|
|
4067
4071
|
);
|
|
@@ -4831,12 +4835,14 @@ var GetOrCreateCustomerAutoTopup$outboundSchema = z30.pipe(
|
|
|
4831
4835
|
quantity: z30.number(),
|
|
4832
4836
|
purchaseLimit: z30.optional(
|
|
4833
4837
|
z30.lazy(() => GetOrCreateCustomerPurchaseLimit$outboundSchema)
|
|
4834
|
-
)
|
|
4838
|
+
),
|
|
4839
|
+
invoiceMode: z30.optional(z30.boolean())
|
|
4835
4840
|
}),
|
|
4836
4841
|
z30.transform((v) => {
|
|
4837
4842
|
return remap(v, {
|
|
4838
4843
|
featureId: "feature_id",
|
|
4839
|
-
purchaseLimit: "purchase_limit"
|
|
4844
|
+
purchaseLimit: "purchase_limit",
|
|
4845
|
+
invoiceMode: "invoice_mode"
|
|
4840
4846
|
});
|
|
4841
4847
|
})
|
|
4842
4848
|
);
|
|
@@ -5321,12 +5327,14 @@ var ListCustomersAutoTopup$inboundSchema = z32.pipe(
|
|
|
5321
5327
|
quantity: number2(),
|
|
5322
5328
|
purchase_limit: optional2(
|
|
5323
5329
|
z32.lazy(() => ListCustomersPurchaseLimit$inboundSchema)
|
|
5324
|
-
)
|
|
5330
|
+
),
|
|
5331
|
+
invoice_mode: optional2(boolean2())
|
|
5325
5332
|
}),
|
|
5326
5333
|
z32.transform((v) => {
|
|
5327
5334
|
return remap(v, {
|
|
5328
5335
|
"feature_id": "featureId",
|
|
5329
|
-
"purchase_limit": "purchaseLimit"
|
|
5336
|
+
"purchase_limit": "purchaseLimit",
|
|
5337
|
+
"invoice_mode": "invoiceMode"
|
|
5330
5338
|
});
|
|
5331
5339
|
})
|
|
5332
5340
|
);
|
|
@@ -8561,12 +8569,14 @@ var UpdateCustomerAutoTopupRequest$outboundSchema = z45.pipe(
|
|
|
8561
8569
|
quantity: z45.number(),
|
|
8562
8570
|
purchaseLimit: z45.optional(
|
|
8563
8571
|
z45.lazy(() => UpdateCustomerPurchaseLimitRequest$outboundSchema)
|
|
8564
|
-
)
|
|
8572
|
+
),
|
|
8573
|
+
invoiceMode: z45.optional(z45.boolean())
|
|
8565
8574
|
}),
|
|
8566
8575
|
z45.transform((v) => {
|
|
8567
8576
|
return remap(v, {
|
|
8568
8577
|
featureId: "feature_id",
|
|
8569
|
-
purchaseLimit: "purchase_limit"
|
|
8578
|
+
purchaseLimit: "purchase_limit",
|
|
8579
|
+
invoiceMode: "invoice_mode"
|
|
8570
8580
|
});
|
|
8571
8581
|
})
|
|
8572
8582
|
);
|
|
@@ -8682,12 +8692,14 @@ var UpdateCustomerAutoTopupResponse$inboundSchema = z45.pipe(
|
|
|
8682
8692
|
quantity: number2(),
|
|
8683
8693
|
purchase_limit: optional2(
|
|
8684
8694
|
z45.lazy(() => UpdateCustomerPurchaseLimitResponse$inboundSchema)
|
|
8685
|
-
)
|
|
8695
|
+
),
|
|
8696
|
+
invoice_mode: optional2(boolean2())
|
|
8686
8697
|
}),
|
|
8687
8698
|
z45.transform((v) => {
|
|
8688
8699
|
return remap(v, {
|
|
8689
8700
|
"feature_id": "featureId",
|
|
8690
|
-
"purchase_limit": "purchaseLimit"
|
|
8701
|
+
"purchase_limit": "purchaseLimit",
|
|
8702
|
+
"invoice_mode": "invoiceMode"
|
|
8691
8703
|
});
|
|
8692
8704
|
})
|
|
8693
8705
|
);
|
|
@@ -14583,7 +14595,8 @@ var getOrCreateCustomerAutoTopupOutboundSchema = import_v44.z.object({
|
|
|
14583
14595
|
enabled: import_v44.z.boolean(),
|
|
14584
14596
|
threshold: import_v44.z.number(),
|
|
14585
14597
|
quantity: import_v44.z.number(),
|
|
14586
|
-
purchase_limit: import_v44.z.union([getOrCreateCustomerPurchaseLimitOutboundSchema, import_v44.z.undefined()]).optional()
|
|
14598
|
+
purchase_limit: import_v44.z.union([getOrCreateCustomerPurchaseLimitOutboundSchema, import_v44.z.undefined()]).optional(),
|
|
14599
|
+
invoice_mode: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional()
|
|
14587
14600
|
});
|
|
14588
14601
|
var getOrCreateCustomerSpendLimitOutboundSchema = import_v44.z.object({
|
|
14589
14602
|
feature_id: import_v44.z.union([import_v44.z.string(), import_v44.z.undefined()]).optional(),
|
|
@@ -14641,7 +14654,8 @@ var getOrCreateCustomerAutoTopupSchema = import_v44.z.object({
|
|
|
14641
14654
|
enabled: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional(),
|
|
14642
14655
|
threshold: import_v44.z.number(),
|
|
14643
14656
|
quantity: import_v44.z.number(),
|
|
14644
|
-
purchaseLimit: import_v44.z.union([getOrCreateCustomerPurchaseLimitSchema, import_v44.z.undefined()]).optional()
|
|
14657
|
+
purchaseLimit: import_v44.z.union([getOrCreateCustomerPurchaseLimitSchema, import_v44.z.undefined()]).optional(),
|
|
14658
|
+
invoiceMode: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional()
|
|
14645
14659
|
});
|
|
14646
14660
|
var getOrCreateCustomerThresholdTypeSchema = closedEnumSchema3;
|
|
14647
14661
|
var getOrCreateCustomerUsageAlertSchema = import_v44.z.object({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createHandleBetterAuthRoute
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-3C2VGNW3.mjs";
|
|
4
4
|
import "../chunk-J2WYVGHS.mjs";
|
|
5
|
-
import "../chunk-
|
|
5
|
+
import "../chunk-CG3LL2TQ.mjs";
|
|
6
6
|
import "../chunk-BT3EAYVW.mjs";
|
|
7
7
|
export {
|
|
8
8
|
createHandleBetterAuthRoute
|