autumn-js 1.2.38 → 1.2.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/backend/adapters/express.js +319 -101
- package/dist/backend/adapters/express.mjs +8 -8
- package/dist/backend/adapters/fetch.js +319 -101
- package/dist/backend/adapters/fetch.mjs +8 -8
- package/dist/backend/adapters/hono.js +319 -101
- package/dist/backend/adapters/hono.mjs +8 -8
- package/dist/backend/adapters/index.js +319 -101
- package/dist/backend/adapters/index.mjs +11 -11
- package/dist/backend/adapters/next.js +319 -101
- package/dist/backend/adapters/next.mjs +8 -8
- package/dist/backend/{chunk-CEUAUTNB.mjs → chunk-5IUIFE55.mjs} +1 -1
- package/dist/backend/{chunk-ZR5K6VMA.mjs → chunk-GL2SBEQ5.mjs} +1 -1
- package/dist/backend/{chunk-Y3AJLHVL.mjs → chunk-KJP3DHPM.mjs} +1 -1
- package/dist/backend/{chunk-N52JKSJ7.mjs → chunk-KM5AXZWJ.mjs} +4 -4
- package/dist/backend/{chunk-5C7KP2BU.mjs → chunk-MSMJS42G.mjs} +319 -101
- package/dist/backend/{chunk-TIFFBW34.mjs → chunk-UMTASWZL.mjs} +1 -1
- package/dist/backend/{chunk-PKM7CEE3.mjs → chunk-V32P22RC.mjs} +6 -6
- package/dist/backend/core/handlers/coreHandler.d.mts +1 -1
- package/dist/backend/core/handlers/coreHandler.d.ts +1 -1
- package/dist/backend/core/handlers/coreHandler.js +319 -101
- package/dist/backend/core/handlers/coreHandler.mjs +6 -6
- package/dist/backend/core/handlers/executeRoute.d.mts +1 -1
- package/dist/backend/core/handlers/executeRoute.d.ts +1 -1
- package/dist/backend/core/handlers/executeRoute.mjs +4 -4
- package/dist/backend/core/handlers/handleRouteByName.js +319 -101
- package/dist/backend/core/handlers/handleRouteByName.mjs +6 -6
- package/dist/backend/core/handlers/index.d.mts +1 -1
- package/dist/backend/core/handlers/index.d.ts +1 -1
- package/dist/backend/core/handlers/index.js +319 -101
- package/dist/backend/core/handlers/index.mjs +10 -10
- package/dist/backend/core/index.d.mts +1 -1
- package/dist/backend/core/index.d.ts +1 -1
- package/dist/backend/core/index.js +319 -101
- package/dist/backend/core/index.mjs +9 -9
- package/dist/backend/core/routes/index.d.mts +1 -1
- package/dist/backend/core/routes/index.d.ts +1 -1
- package/dist/backend/core/routes/index.mjs +1 -1
- package/dist/backend/core/routes/routeBuilder.d.mts +1 -1
- package/dist/backend/core/routes/routeBuilder.d.ts +1 -1
- package/dist/backend/core/routes/routeConfigs.d.mts +1 -1
- package/dist/backend/core/routes/routeConfigs.d.ts +1 -1
- package/dist/backend/core/routes/routeConfigs.mjs +1 -1
- package/dist/backend/core/types/handlerTypes.d.mts +1 -1
- package/dist/backend/core/types/handlerTypes.d.ts +1 -1
- package/dist/backend/core/types/index.d.mts +1 -1
- package/dist/backend/core/types/index.d.ts +1 -1
- package/dist/backend/core/types/routeTypes.d.mts +1 -1
- package/dist/backend/core/types/routeTypes.d.ts +1 -1
- package/dist/backend/core/utils/index.mjs +3 -3
- package/dist/backend/index.d.mts +2 -2
- package/dist/backend/index.d.ts +2 -2
- package/dist/backend/index.js +319 -101
- package/dist/backend/index.mjs +9 -9
- package/dist/backend/{routeTypes-gWhxv6xo.d.mts → routeTypes-CIqS7yVo.d.mts} +641 -97
- package/dist/backend/{routeTypes-C8YKwtFL.d.ts → routeTypes-uWaE8YYa.d.ts} +641 -97
- package/dist/better-auth/{chunk-A3ZOJU54.mjs → chunk-LLBM6UQN.mjs} +319 -101
- package/dist/better-auth/index.js +319 -101
- package/dist/better-auth/index.mjs +1 -1
- package/dist/better-auth/utils/handleBetterAuthRoute.js +319 -101
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +1 -1
- package/dist/better-auth/utils/index.js +319 -101
- package/dist/better-auth/utils/index.mjs +1 -1
- package/dist/react/AutumnContext.d.mts +2 -2
- package/dist/react/AutumnContext.d.ts +2 -2
- package/dist/react/client/AutumnClient.d.mts +2 -2
- package/dist/react/client/AutumnClient.d.ts +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/{customer-D811_jP2.d.ts → customer-CrxRrY4o.d.ts} +99 -24
- package/dist/react/{customer-CkuydPCd.d.mts → customer-DM044m1a.d.mts} +99 -24
- 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/{params-CaUBdt-x.d.ts → params-B-1vi9za.d.ts} +60 -0
- package/dist/react/{params-C0cH2cYK.d.mts → params-Bf18ATYi.d.mts} +60 -0
- package/dist/sdk/index.d.mts +723 -106
- package/dist/sdk/index.d.ts +723 -106
- package/dist/sdk/index.js +391 -101
- package/dist/sdk/index.mjs +320 -102
- package/package.json +1 -1
- package/dist/backend/{chunk-MOHYGUMA.mjs → chunk-IXUCY7AU.mjs} +3 -3
|
@@ -5384,18 +5384,34 @@ var CreateEntityLimitTypeResponse = {
|
|
|
5384
5384
|
Absolute: "absolute",
|
|
5385
5385
|
UsagePercentage: "usage_percentage"
|
|
5386
5386
|
};
|
|
5387
|
+
var CreateEntitySpendLimitSource = {
|
|
5388
|
+
Customer: "customer",
|
|
5389
|
+
Plan: "plan"
|
|
5390
|
+
};
|
|
5387
5391
|
var CreateEntityIntervalResponse = {
|
|
5388
5392
|
Day: "day",
|
|
5389
5393
|
Week: "week",
|
|
5390
5394
|
Month: "month",
|
|
5391
5395
|
Year: "year"
|
|
5392
5396
|
};
|
|
5397
|
+
var CreateEntityUsageLimitSource = {
|
|
5398
|
+
Customer: "customer",
|
|
5399
|
+
Plan: "plan"
|
|
5400
|
+
};
|
|
5393
5401
|
var CreateEntityThresholdTypeResponse = {
|
|
5394
5402
|
Usage: "usage",
|
|
5395
5403
|
UsagePercentage: "usage_percentage",
|
|
5396
5404
|
Remaining: "remaining",
|
|
5397
5405
|
RemainingPercentage: "remaining_percentage"
|
|
5398
5406
|
};
|
|
5407
|
+
var CreateEntityUsageAlertSource = {
|
|
5408
|
+
Customer: "customer",
|
|
5409
|
+
Plan: "plan"
|
|
5410
|
+
};
|
|
5411
|
+
var CreateEntityOverageAllowedSource = {
|
|
5412
|
+
Customer: "customer",
|
|
5413
|
+
Plan: "plan"
|
|
5414
|
+
};
|
|
5399
5415
|
var CreateEntityProcessorType = {
|
|
5400
5416
|
Stripe: "stripe",
|
|
5401
5417
|
Revenuecat: "revenuecat"
|
|
@@ -5650,13 +5666,15 @@ var CreateEntityFlags$inboundSchema = z18.pipe(
|
|
|
5650
5666
|
})
|
|
5651
5667
|
);
|
|
5652
5668
|
var CreateEntityLimitTypeResponse$inboundSchema = inboundSchema(CreateEntityLimitTypeResponse);
|
|
5669
|
+
var CreateEntitySpendLimitSource$inboundSchema = inboundSchema(CreateEntitySpendLimitSource);
|
|
5653
5670
|
var CreateEntitySpendLimitResponse$inboundSchema = z18.pipe(
|
|
5654
5671
|
z18.object({
|
|
5655
5672
|
feature_id: optional3(string4()),
|
|
5656
5673
|
enabled: z18._default(boolean2(), false),
|
|
5657
5674
|
limit_type: optional3(CreateEntityLimitTypeResponse$inboundSchema),
|
|
5658
5675
|
overage_limit: optional3(number2()),
|
|
5659
|
-
skip_overage_billing: optional3(boolean2())
|
|
5676
|
+
skip_overage_billing: optional3(boolean2()),
|
|
5677
|
+
source: optional3(CreateEntitySpendLimitSource$inboundSchema)
|
|
5660
5678
|
}),
|
|
5661
5679
|
z18.transform((v) => {
|
|
5662
5680
|
return remap(v, {
|
|
@@ -5671,6 +5689,7 @@ var CreateEntityIntervalResponse$inboundSchema = inboundSchema(CreateEntityInter
|
|
|
5671
5689
|
var CreateEntityFilterResponse$inboundSchema = z18.object({
|
|
5672
5690
|
properties: z18.record(z18.string(), z18.any())
|
|
5673
5691
|
});
|
|
5692
|
+
var CreateEntityUsageLimitSource$inboundSchema = inboundSchema(CreateEntityUsageLimitSource);
|
|
5674
5693
|
var CreateEntityUsageLimitResponse$inboundSchema = z18.pipe(
|
|
5675
5694
|
z18.object({
|
|
5676
5695
|
feature_id: string4(),
|
|
@@ -5680,7 +5699,8 @@ var CreateEntityUsageLimitResponse$inboundSchema = z18.pipe(
|
|
|
5680
5699
|
filter: optional3(
|
|
5681
5700
|
z18.lazy(() => CreateEntityFilterResponse$inboundSchema)
|
|
5682
5701
|
),
|
|
5683
|
-
usage: optional3(number2())
|
|
5702
|
+
usage: optional3(number2()),
|
|
5703
|
+
source: optional3(CreateEntityUsageLimitSource$inboundSchema)
|
|
5684
5704
|
}),
|
|
5685
5705
|
z18.transform((v) => {
|
|
5686
5706
|
return remap(v, {
|
|
@@ -5689,13 +5709,15 @@ var CreateEntityUsageLimitResponse$inboundSchema = z18.pipe(
|
|
|
5689
5709
|
})
|
|
5690
5710
|
);
|
|
5691
5711
|
var CreateEntityThresholdTypeResponse$inboundSchema = inboundSchema(CreateEntityThresholdTypeResponse);
|
|
5712
|
+
var CreateEntityUsageAlertSource$inboundSchema = inboundSchema(CreateEntityUsageAlertSource);
|
|
5692
5713
|
var CreateEntityUsageAlertResponse$inboundSchema = z18.pipe(
|
|
5693
5714
|
z18.object({
|
|
5694
5715
|
feature_id: optional3(string4()),
|
|
5695
5716
|
enabled: z18._default(boolean2(), true),
|
|
5696
5717
|
threshold: number2(),
|
|
5697
5718
|
threshold_type: CreateEntityThresholdTypeResponse$inboundSchema,
|
|
5698
|
-
name: optional3(string4())
|
|
5719
|
+
name: optional3(string4()),
|
|
5720
|
+
source: optional3(CreateEntityUsageAlertSource$inboundSchema)
|
|
5699
5721
|
}),
|
|
5700
5722
|
z18.transform((v) => {
|
|
5701
5723
|
return remap(v, {
|
|
@@ -5704,10 +5726,12 @@ var CreateEntityUsageAlertResponse$inboundSchema = z18.pipe(
|
|
|
5704
5726
|
});
|
|
5705
5727
|
})
|
|
5706
5728
|
);
|
|
5729
|
+
var CreateEntityOverageAllowedSource$inboundSchema = inboundSchema(CreateEntityOverageAllowedSource);
|
|
5707
5730
|
var CreateEntityOverageAllowedResponse$inboundSchema = z18.pipe(
|
|
5708
5731
|
z18.object({
|
|
5709
5732
|
feature_id: string4(),
|
|
5710
|
-
enabled: z18._default(boolean2(), false)
|
|
5733
|
+
enabled: z18._default(boolean2(), false),
|
|
5734
|
+
source: optional3(CreateEntityOverageAllowedSource$inboundSchema)
|
|
5711
5735
|
}),
|
|
5712
5736
|
z18.transform((v) => {
|
|
5713
5737
|
return remap(v, {
|
|
@@ -8079,22 +8103,42 @@ var CustomerPurchaseLimitInterval1 = {
|
|
|
8079
8103
|
Week: "week",
|
|
8080
8104
|
Month: "month"
|
|
8081
8105
|
};
|
|
8106
|
+
var AutoTopupSource = {
|
|
8107
|
+
Customer: "customer",
|
|
8108
|
+
Plan: "plan"
|
|
8109
|
+
};
|
|
8082
8110
|
var CustomerLimitType = {
|
|
8083
8111
|
Absolute: "absolute",
|
|
8084
8112
|
UsagePercentage: "usage_percentage"
|
|
8085
8113
|
};
|
|
8114
|
+
var SpendLimitSource = {
|
|
8115
|
+
Customer: "customer",
|
|
8116
|
+
Plan: "plan"
|
|
8117
|
+
};
|
|
8086
8118
|
var CustomerUsageLimitInterval = {
|
|
8087
8119
|
Day: "day",
|
|
8088
8120
|
Week: "week",
|
|
8089
8121
|
Month: "month",
|
|
8090
8122
|
Year: "year"
|
|
8091
8123
|
};
|
|
8124
|
+
var UsageLimitSource = {
|
|
8125
|
+
Customer: "customer",
|
|
8126
|
+
Plan: "plan"
|
|
8127
|
+
};
|
|
8092
8128
|
var CustomerThresholdType = {
|
|
8093
8129
|
Usage: "usage",
|
|
8094
8130
|
UsagePercentage: "usage_percentage",
|
|
8095
8131
|
Remaining: "remaining",
|
|
8096
8132
|
RemainingPercentage: "remaining_percentage"
|
|
8097
8133
|
};
|
|
8134
|
+
var UsageAlertSource = {
|
|
8135
|
+
Customer: "customer",
|
|
8136
|
+
Plan: "plan"
|
|
8137
|
+
};
|
|
8138
|
+
var OverageAllowedSource = {
|
|
8139
|
+
Customer: "customer",
|
|
8140
|
+
Plan: "plan"
|
|
8141
|
+
};
|
|
8098
8142
|
var CustomerStatus = {
|
|
8099
8143
|
Active: "active",
|
|
8100
8144
|
Scheduled: "scheduled"
|
|
@@ -8137,36 +8181,37 @@ var CustomerEnv$inboundSchema = inboundSchema(CustomerEnv);
|
|
|
8137
8181
|
var CustomerPurchaseLimitInterval2$inboundSchema = inboundSchema(CustomerPurchaseLimitInterval2);
|
|
8138
8182
|
var CustomerPurchaseLimit2$inboundSchema = z24.pipe(
|
|
8139
8183
|
z24.object({
|
|
8140
|
-
interval:
|
|
8141
|
-
interval_count:
|
|
8142
|
-
limit:
|
|
8143
|
-
count: number2(),
|
|
8144
|
-
next_reset_at: number2()
|
|
8184
|
+
interval: CustomerPurchaseLimitInterval2$inboundSchema,
|
|
8185
|
+
interval_count: z24._default(number2(), 1),
|
|
8186
|
+
limit: number2()
|
|
8145
8187
|
}),
|
|
8146
8188
|
z24.transform((v) => {
|
|
8147
8189
|
return remap(v, {
|
|
8148
|
-
"interval_count": "intervalCount"
|
|
8149
|
-
"next_reset_at": "nextResetAt"
|
|
8190
|
+
"interval_count": "intervalCount"
|
|
8150
8191
|
});
|
|
8151
8192
|
})
|
|
8152
8193
|
);
|
|
8153
8194
|
var CustomerPurchaseLimitInterval1$inboundSchema = inboundSchema(CustomerPurchaseLimitInterval1);
|
|
8154
8195
|
var CustomerPurchaseLimit1$inboundSchema = z24.pipe(
|
|
8155
8196
|
z24.object({
|
|
8156
|
-
interval: CustomerPurchaseLimitInterval1$inboundSchema,
|
|
8157
|
-
interval_count:
|
|
8158
|
-
limit: number2()
|
|
8197
|
+
interval: nullable(CustomerPurchaseLimitInterval1$inboundSchema),
|
|
8198
|
+
interval_count: nullable(number2()),
|
|
8199
|
+
limit: nullable(number2()),
|
|
8200
|
+
count: number2(),
|
|
8201
|
+
next_reset_at: number2()
|
|
8159
8202
|
}),
|
|
8160
8203
|
z24.transform((v) => {
|
|
8161
8204
|
return remap(v, {
|
|
8162
|
-
"interval_count": "intervalCount"
|
|
8205
|
+
"interval_count": "intervalCount",
|
|
8206
|
+
"next_reset_at": "nextResetAt"
|
|
8163
8207
|
});
|
|
8164
8208
|
})
|
|
8165
8209
|
);
|
|
8166
8210
|
var CustomerPurchaseLimitUnion$inboundSchema = smartUnion([
|
|
8167
|
-
z24.lazy(() =>
|
|
8168
|
-
z24.lazy(() =>
|
|
8211
|
+
z24.lazy(() => CustomerPurchaseLimit1$inboundSchema),
|
|
8212
|
+
z24.lazy(() => CustomerPurchaseLimit2$inboundSchema)
|
|
8169
8213
|
]);
|
|
8214
|
+
var AutoTopupSource$inboundSchema = inboundSchema(AutoTopupSource);
|
|
8170
8215
|
var CustomerAutoTopup$inboundSchema = z24.pipe(
|
|
8171
8216
|
z24.object({
|
|
8172
8217
|
feature_id: string4(),
|
|
@@ -8174,10 +8219,11 @@ var CustomerAutoTopup$inboundSchema = z24.pipe(
|
|
|
8174
8219
|
threshold: number2(),
|
|
8175
8220
|
quantity: number2(),
|
|
8176
8221
|
purchase_limit: optional3(smartUnion([
|
|
8177
|
-
z24.lazy(() =>
|
|
8178
|
-
z24.lazy(() =>
|
|
8222
|
+
z24.lazy(() => CustomerPurchaseLimit1$inboundSchema),
|
|
8223
|
+
z24.lazy(() => CustomerPurchaseLimit2$inboundSchema)
|
|
8179
8224
|
])),
|
|
8180
|
-
invoice_mode: optional3(boolean2())
|
|
8225
|
+
invoice_mode: optional3(boolean2()),
|
|
8226
|
+
source: optional3(AutoTopupSource$inboundSchema)
|
|
8181
8227
|
}),
|
|
8182
8228
|
z24.transform((v) => {
|
|
8183
8229
|
return remap(v, {
|
|
@@ -8188,13 +8234,15 @@ var CustomerAutoTopup$inboundSchema = z24.pipe(
|
|
|
8188
8234
|
})
|
|
8189
8235
|
);
|
|
8190
8236
|
var CustomerLimitType$inboundSchema = inboundSchema(CustomerLimitType);
|
|
8237
|
+
var SpendLimitSource$inboundSchema = inboundSchema(SpendLimitSource);
|
|
8191
8238
|
var CustomerSpendLimit$inboundSchema = z24.pipe(
|
|
8192
8239
|
z24.object({
|
|
8193
8240
|
feature_id: optional3(string4()),
|
|
8194
8241
|
enabled: z24._default(boolean2(), false),
|
|
8195
8242
|
limit_type: optional3(CustomerLimitType$inboundSchema),
|
|
8196
8243
|
overage_limit: optional3(number2()),
|
|
8197
|
-
skip_overage_billing: optional3(boolean2())
|
|
8244
|
+
skip_overage_billing: optional3(boolean2()),
|
|
8245
|
+
source: optional3(SpendLimitSource$inboundSchema)
|
|
8198
8246
|
}),
|
|
8199
8247
|
z24.transform((v) => {
|
|
8200
8248
|
return remap(v, {
|
|
@@ -8209,6 +8257,7 @@ var CustomerUsageLimitInterval$inboundSchema = inboundSchema(CustomerUsageLimitI
|
|
|
8209
8257
|
var CustomerFilter$inboundSchema = z24.object({
|
|
8210
8258
|
properties: z24.record(z24.string(), z24.any())
|
|
8211
8259
|
});
|
|
8260
|
+
var UsageLimitSource$inboundSchema = inboundSchema(UsageLimitSource);
|
|
8212
8261
|
var CustomerUsageLimit$inboundSchema = z24.pipe(
|
|
8213
8262
|
z24.object({
|
|
8214
8263
|
feature_id: string4(),
|
|
@@ -8216,7 +8265,8 @@ var CustomerUsageLimit$inboundSchema = z24.pipe(
|
|
|
8216
8265
|
limit: number2(),
|
|
8217
8266
|
interval: CustomerUsageLimitInterval$inboundSchema,
|
|
8218
8267
|
filter: optional3(z24.lazy(() => CustomerFilter$inboundSchema)),
|
|
8219
|
-
usage: optional3(number2())
|
|
8268
|
+
usage: optional3(number2()),
|
|
8269
|
+
source: optional3(UsageLimitSource$inboundSchema)
|
|
8220
8270
|
}),
|
|
8221
8271
|
z24.transform((v) => {
|
|
8222
8272
|
return remap(v, {
|
|
@@ -8225,13 +8275,15 @@ var CustomerUsageLimit$inboundSchema = z24.pipe(
|
|
|
8225
8275
|
})
|
|
8226
8276
|
);
|
|
8227
8277
|
var CustomerThresholdType$inboundSchema = inboundSchema(CustomerThresholdType);
|
|
8278
|
+
var UsageAlertSource$inboundSchema = inboundSchema(UsageAlertSource);
|
|
8228
8279
|
var CustomerUsageAlert$inboundSchema = z24.pipe(
|
|
8229
8280
|
z24.object({
|
|
8230
8281
|
feature_id: optional3(string4()),
|
|
8231
8282
|
enabled: z24._default(boolean2(), true),
|
|
8232
8283
|
threshold: number2(),
|
|
8233
8284
|
threshold_type: CustomerThresholdType$inboundSchema,
|
|
8234
|
-
name: optional3(string4())
|
|
8285
|
+
name: optional3(string4()),
|
|
8286
|
+
source: optional3(UsageAlertSource$inboundSchema)
|
|
8235
8287
|
}),
|
|
8236
8288
|
z24.transform((v) => {
|
|
8237
8289
|
return remap(v, {
|
|
@@ -8240,10 +8292,12 @@ var CustomerUsageAlert$inboundSchema = z24.pipe(
|
|
|
8240
8292
|
});
|
|
8241
8293
|
})
|
|
8242
8294
|
);
|
|
8295
|
+
var OverageAllowedSource$inboundSchema = inboundSchema(OverageAllowedSource);
|
|
8243
8296
|
var CustomerOverageAllowed$inboundSchema = z24.pipe(
|
|
8244
8297
|
z24.object({
|
|
8245
8298
|
feature_id: string4(),
|
|
8246
|
-
enabled: z24._default(boolean2(), false)
|
|
8299
|
+
enabled: z24._default(boolean2(), false),
|
|
8300
|
+
source: optional3(OverageAllowedSource$inboundSchema)
|
|
8247
8301
|
}),
|
|
8248
8302
|
z24.transform((v) => {
|
|
8249
8303
|
return remap(v, {
|
|
@@ -8748,22 +8802,42 @@ var GetCustomerPurchaseLimitInterval1 = {
|
|
|
8748
8802
|
Week: "week",
|
|
8749
8803
|
Month: "month"
|
|
8750
8804
|
};
|
|
8805
|
+
var GetCustomerAutoTopupSource = {
|
|
8806
|
+
Customer: "customer",
|
|
8807
|
+
Plan: "plan"
|
|
8808
|
+
};
|
|
8751
8809
|
var GetCustomerLimitType = {
|
|
8752
8810
|
Absolute: "absolute",
|
|
8753
8811
|
UsagePercentage: "usage_percentage"
|
|
8754
8812
|
};
|
|
8813
|
+
var GetCustomerSpendLimitSource = {
|
|
8814
|
+
Customer: "customer",
|
|
8815
|
+
Plan: "plan"
|
|
8816
|
+
};
|
|
8755
8817
|
var GetCustomerUsageLimitInterval = {
|
|
8756
8818
|
Day: "day",
|
|
8757
8819
|
Week: "week",
|
|
8758
8820
|
Month: "month",
|
|
8759
8821
|
Year: "year"
|
|
8760
8822
|
};
|
|
8823
|
+
var GetCustomerUsageLimitSource = {
|
|
8824
|
+
Customer: "customer",
|
|
8825
|
+
Plan: "plan"
|
|
8826
|
+
};
|
|
8761
8827
|
var GetCustomerThresholdType = {
|
|
8762
8828
|
Usage: "usage",
|
|
8763
8829
|
UsagePercentage: "usage_percentage",
|
|
8764
8830
|
Remaining: "remaining",
|
|
8765
8831
|
RemainingPercentage: "remaining_percentage"
|
|
8766
8832
|
};
|
|
8833
|
+
var GetCustomerUsageAlertSource = {
|
|
8834
|
+
Customer: "customer",
|
|
8835
|
+
Plan: "plan"
|
|
8836
|
+
};
|
|
8837
|
+
var GetCustomerOverageAllowedSource = {
|
|
8838
|
+
Customer: "customer",
|
|
8839
|
+
Plan: "plan"
|
|
8840
|
+
};
|
|
8767
8841
|
var GetCustomerStatus = {
|
|
8768
8842
|
Active: "active",
|
|
8769
8843
|
Scheduled: "scheduled"
|
|
@@ -8817,36 +8891,37 @@ var GetCustomerEnv$inboundSchema = inboundSchema(GetCustomerEnv);
|
|
|
8817
8891
|
var GetCustomerPurchaseLimitInterval2$inboundSchema = inboundSchema(GetCustomerPurchaseLimitInterval2);
|
|
8818
8892
|
var GetCustomerPurchaseLimit2$inboundSchema = z31.pipe(
|
|
8819
8893
|
z31.object({
|
|
8820
|
-
interval:
|
|
8821
|
-
interval_count:
|
|
8822
|
-
limit:
|
|
8823
|
-
count: number2(),
|
|
8824
|
-
next_reset_at: number2()
|
|
8894
|
+
interval: GetCustomerPurchaseLimitInterval2$inboundSchema,
|
|
8895
|
+
interval_count: z31._default(number2(), 1),
|
|
8896
|
+
limit: number2()
|
|
8825
8897
|
}),
|
|
8826
8898
|
z31.transform((v) => {
|
|
8827
8899
|
return remap(v, {
|
|
8828
|
-
"interval_count": "intervalCount"
|
|
8829
|
-
"next_reset_at": "nextResetAt"
|
|
8900
|
+
"interval_count": "intervalCount"
|
|
8830
8901
|
});
|
|
8831
8902
|
})
|
|
8832
8903
|
);
|
|
8833
8904
|
var GetCustomerPurchaseLimitInterval1$inboundSchema = inboundSchema(GetCustomerPurchaseLimitInterval1);
|
|
8834
8905
|
var GetCustomerPurchaseLimit1$inboundSchema = z31.pipe(
|
|
8835
8906
|
z31.object({
|
|
8836
|
-
interval: GetCustomerPurchaseLimitInterval1$inboundSchema,
|
|
8837
|
-
interval_count:
|
|
8838
|
-
limit: number2()
|
|
8907
|
+
interval: nullable(GetCustomerPurchaseLimitInterval1$inboundSchema),
|
|
8908
|
+
interval_count: nullable(number2()),
|
|
8909
|
+
limit: nullable(number2()),
|
|
8910
|
+
count: number2(),
|
|
8911
|
+
next_reset_at: number2()
|
|
8839
8912
|
}),
|
|
8840
8913
|
z31.transform((v) => {
|
|
8841
8914
|
return remap(v, {
|
|
8842
|
-
"interval_count": "intervalCount"
|
|
8915
|
+
"interval_count": "intervalCount",
|
|
8916
|
+
"next_reset_at": "nextResetAt"
|
|
8843
8917
|
});
|
|
8844
8918
|
})
|
|
8845
8919
|
);
|
|
8846
8920
|
var GetCustomerPurchaseLimitUnion$inboundSchema = smartUnion([
|
|
8847
|
-
z31.lazy(() =>
|
|
8848
|
-
z31.lazy(() =>
|
|
8921
|
+
z31.lazy(() => GetCustomerPurchaseLimit1$inboundSchema),
|
|
8922
|
+
z31.lazy(() => GetCustomerPurchaseLimit2$inboundSchema)
|
|
8849
8923
|
]);
|
|
8924
|
+
var GetCustomerAutoTopupSource$inboundSchema = inboundSchema(GetCustomerAutoTopupSource);
|
|
8850
8925
|
var GetCustomerAutoTopup$inboundSchema = z31.pipe(
|
|
8851
8926
|
z31.object({
|
|
8852
8927
|
feature_id: string4(),
|
|
@@ -8854,10 +8929,11 @@ var GetCustomerAutoTopup$inboundSchema = z31.pipe(
|
|
|
8854
8929
|
threshold: number2(),
|
|
8855
8930
|
quantity: number2(),
|
|
8856
8931
|
purchase_limit: optional3(smartUnion([
|
|
8857
|
-
z31.lazy(() =>
|
|
8858
|
-
z31.lazy(() =>
|
|
8932
|
+
z31.lazy(() => GetCustomerPurchaseLimit1$inboundSchema),
|
|
8933
|
+
z31.lazy(() => GetCustomerPurchaseLimit2$inboundSchema)
|
|
8859
8934
|
])),
|
|
8860
|
-
invoice_mode: optional3(boolean2())
|
|
8935
|
+
invoice_mode: optional3(boolean2()),
|
|
8936
|
+
source: optional3(GetCustomerAutoTopupSource$inboundSchema)
|
|
8861
8937
|
}),
|
|
8862
8938
|
z31.transform((v) => {
|
|
8863
8939
|
return remap(v, {
|
|
@@ -8868,13 +8944,15 @@ var GetCustomerAutoTopup$inboundSchema = z31.pipe(
|
|
|
8868
8944
|
})
|
|
8869
8945
|
);
|
|
8870
8946
|
var GetCustomerLimitType$inboundSchema = inboundSchema(GetCustomerLimitType);
|
|
8947
|
+
var GetCustomerSpendLimitSource$inboundSchema = inboundSchema(GetCustomerSpendLimitSource);
|
|
8871
8948
|
var GetCustomerSpendLimit$inboundSchema = z31.pipe(
|
|
8872
8949
|
z31.object({
|
|
8873
8950
|
feature_id: optional3(string4()),
|
|
8874
8951
|
enabled: z31._default(boolean2(), false),
|
|
8875
8952
|
limit_type: optional3(GetCustomerLimitType$inboundSchema),
|
|
8876
8953
|
overage_limit: optional3(number2()),
|
|
8877
|
-
skip_overage_billing: optional3(boolean2())
|
|
8954
|
+
skip_overage_billing: optional3(boolean2()),
|
|
8955
|
+
source: optional3(GetCustomerSpendLimitSource$inboundSchema)
|
|
8878
8956
|
}),
|
|
8879
8957
|
z31.transform((v) => {
|
|
8880
8958
|
return remap(v, {
|
|
@@ -8889,6 +8967,7 @@ var GetCustomerUsageLimitInterval$inboundSchema = inboundSchema(GetCustomerUsage
|
|
|
8889
8967
|
var GetCustomerFilter$inboundSchema = z31.object({
|
|
8890
8968
|
properties: z31.record(z31.string(), z31.any())
|
|
8891
8969
|
});
|
|
8970
|
+
var GetCustomerUsageLimitSource$inboundSchema = inboundSchema(GetCustomerUsageLimitSource);
|
|
8892
8971
|
var GetCustomerUsageLimit$inboundSchema = z31.pipe(
|
|
8893
8972
|
z31.object({
|
|
8894
8973
|
feature_id: string4(),
|
|
@@ -8896,7 +8975,8 @@ var GetCustomerUsageLimit$inboundSchema = z31.pipe(
|
|
|
8896
8975
|
limit: number2(),
|
|
8897
8976
|
interval: GetCustomerUsageLimitInterval$inboundSchema,
|
|
8898
8977
|
filter: optional3(z31.lazy(() => GetCustomerFilter$inboundSchema)),
|
|
8899
|
-
usage: optional3(number2())
|
|
8978
|
+
usage: optional3(number2()),
|
|
8979
|
+
source: optional3(GetCustomerUsageLimitSource$inboundSchema)
|
|
8900
8980
|
}),
|
|
8901
8981
|
z31.transform((v) => {
|
|
8902
8982
|
return remap(v, {
|
|
@@ -8905,13 +8985,15 @@ var GetCustomerUsageLimit$inboundSchema = z31.pipe(
|
|
|
8905
8985
|
})
|
|
8906
8986
|
);
|
|
8907
8987
|
var GetCustomerThresholdType$inboundSchema = inboundSchema(GetCustomerThresholdType);
|
|
8988
|
+
var GetCustomerUsageAlertSource$inboundSchema = inboundSchema(GetCustomerUsageAlertSource);
|
|
8908
8989
|
var GetCustomerUsageAlert$inboundSchema = z31.pipe(
|
|
8909
8990
|
z31.object({
|
|
8910
8991
|
feature_id: optional3(string4()),
|
|
8911
8992
|
enabled: z31._default(boolean2(), true),
|
|
8912
8993
|
threshold: number2(),
|
|
8913
8994
|
threshold_type: GetCustomerThresholdType$inboundSchema,
|
|
8914
|
-
name: optional3(string4())
|
|
8995
|
+
name: optional3(string4()),
|
|
8996
|
+
source: optional3(GetCustomerUsageAlertSource$inboundSchema)
|
|
8915
8997
|
}),
|
|
8916
8998
|
z31.transform((v) => {
|
|
8917
8999
|
return remap(v, {
|
|
@@ -8920,10 +9002,12 @@ var GetCustomerUsageAlert$inboundSchema = z31.pipe(
|
|
|
8920
9002
|
});
|
|
8921
9003
|
})
|
|
8922
9004
|
);
|
|
9005
|
+
var GetCustomerOverageAllowedSource$inboundSchema = inboundSchema(GetCustomerOverageAllowedSource);
|
|
8923
9006
|
var GetCustomerOverageAllowed$inboundSchema = z31.pipe(
|
|
8924
9007
|
z31.object({
|
|
8925
9008
|
feature_id: string4(),
|
|
8926
|
-
enabled: z31._default(boolean2(), false)
|
|
9009
|
+
enabled: z31._default(boolean2(), false),
|
|
9010
|
+
source: optional3(GetCustomerOverageAllowedSource$inboundSchema)
|
|
8927
9011
|
}),
|
|
8928
9012
|
z31.transform((v) => {
|
|
8929
9013
|
return remap(v, {
|
|
@@ -9312,18 +9396,34 @@ var GetEntityLimitType = {
|
|
|
9312
9396
|
Absolute: "absolute",
|
|
9313
9397
|
UsagePercentage: "usage_percentage"
|
|
9314
9398
|
};
|
|
9399
|
+
var GetEntitySpendLimitSource = {
|
|
9400
|
+
Customer: "customer",
|
|
9401
|
+
Plan: "plan"
|
|
9402
|
+
};
|
|
9315
9403
|
var GetEntityInterval = {
|
|
9316
9404
|
Day: "day",
|
|
9317
9405
|
Week: "week",
|
|
9318
9406
|
Month: "month",
|
|
9319
9407
|
Year: "year"
|
|
9320
9408
|
};
|
|
9409
|
+
var GetEntityUsageLimitSource = {
|
|
9410
|
+
Customer: "customer",
|
|
9411
|
+
Plan: "plan"
|
|
9412
|
+
};
|
|
9321
9413
|
var GetEntityThresholdType = {
|
|
9322
9414
|
Usage: "usage",
|
|
9323
9415
|
UsagePercentage: "usage_percentage",
|
|
9324
9416
|
Remaining: "remaining",
|
|
9325
9417
|
RemainingPercentage: "remaining_percentage"
|
|
9326
9418
|
};
|
|
9419
|
+
var GetEntityUsageAlertSource = {
|
|
9420
|
+
Customer: "customer",
|
|
9421
|
+
Plan: "plan"
|
|
9422
|
+
};
|
|
9423
|
+
var GetEntityOverageAllowedSource = {
|
|
9424
|
+
Customer: "customer",
|
|
9425
|
+
Plan: "plan"
|
|
9426
|
+
};
|
|
9327
9427
|
var GetEntityProcessorType = {
|
|
9328
9428
|
Stripe: "stripe",
|
|
9329
9429
|
Revenuecat: "revenuecat"
|
|
@@ -9478,13 +9578,15 @@ var GetEntityFlags$inboundSchema = z32.pipe(
|
|
|
9478
9578
|
})
|
|
9479
9579
|
);
|
|
9480
9580
|
var GetEntityLimitType$inboundSchema = inboundSchema(GetEntityLimitType);
|
|
9581
|
+
var GetEntitySpendLimitSource$inboundSchema = inboundSchema(GetEntitySpendLimitSource);
|
|
9481
9582
|
var GetEntitySpendLimit$inboundSchema = z32.pipe(
|
|
9482
9583
|
z32.object({
|
|
9483
9584
|
feature_id: optional3(string4()),
|
|
9484
9585
|
enabled: z32._default(boolean2(), false),
|
|
9485
9586
|
limit_type: optional3(GetEntityLimitType$inboundSchema),
|
|
9486
9587
|
overage_limit: optional3(number2()),
|
|
9487
|
-
skip_overage_billing: optional3(boolean2())
|
|
9588
|
+
skip_overage_billing: optional3(boolean2()),
|
|
9589
|
+
source: optional3(GetEntitySpendLimitSource$inboundSchema)
|
|
9488
9590
|
}),
|
|
9489
9591
|
z32.transform((v) => {
|
|
9490
9592
|
return remap(v, {
|
|
@@ -9499,6 +9601,7 @@ var GetEntityInterval$inboundSchema = inboundSchema(GetEntityInterval);
|
|
|
9499
9601
|
var GetEntityFilter$inboundSchema = z32.object({
|
|
9500
9602
|
properties: z32.record(z32.string(), z32.any())
|
|
9501
9603
|
});
|
|
9604
|
+
var GetEntityUsageLimitSource$inboundSchema = inboundSchema(GetEntityUsageLimitSource);
|
|
9502
9605
|
var GetEntityUsageLimit$inboundSchema = z32.pipe(
|
|
9503
9606
|
z32.object({
|
|
9504
9607
|
feature_id: string4(),
|
|
@@ -9506,7 +9609,8 @@ var GetEntityUsageLimit$inboundSchema = z32.pipe(
|
|
|
9506
9609
|
limit: number2(),
|
|
9507
9610
|
interval: GetEntityInterval$inboundSchema,
|
|
9508
9611
|
filter: optional3(z32.lazy(() => GetEntityFilter$inboundSchema)),
|
|
9509
|
-
usage: optional3(number2())
|
|
9612
|
+
usage: optional3(number2()),
|
|
9613
|
+
source: optional3(GetEntityUsageLimitSource$inboundSchema)
|
|
9510
9614
|
}),
|
|
9511
9615
|
z32.transform((v) => {
|
|
9512
9616
|
return remap(v, {
|
|
@@ -9515,13 +9619,15 @@ var GetEntityUsageLimit$inboundSchema = z32.pipe(
|
|
|
9515
9619
|
})
|
|
9516
9620
|
);
|
|
9517
9621
|
var GetEntityThresholdType$inboundSchema = inboundSchema(GetEntityThresholdType);
|
|
9622
|
+
var GetEntityUsageAlertSource$inboundSchema = inboundSchema(GetEntityUsageAlertSource);
|
|
9518
9623
|
var GetEntityUsageAlert$inboundSchema = z32.pipe(
|
|
9519
9624
|
z32.object({
|
|
9520
9625
|
feature_id: optional3(string4()),
|
|
9521
9626
|
enabled: z32._default(boolean2(), true),
|
|
9522
9627
|
threshold: number2(),
|
|
9523
9628
|
threshold_type: GetEntityThresholdType$inboundSchema,
|
|
9524
|
-
name: optional3(string4())
|
|
9629
|
+
name: optional3(string4()),
|
|
9630
|
+
source: optional3(GetEntityUsageAlertSource$inboundSchema)
|
|
9525
9631
|
}),
|
|
9526
9632
|
z32.transform((v) => {
|
|
9527
9633
|
return remap(v, {
|
|
@@ -9530,10 +9636,12 @@ var GetEntityUsageAlert$inboundSchema = z32.pipe(
|
|
|
9530
9636
|
});
|
|
9531
9637
|
})
|
|
9532
9638
|
);
|
|
9639
|
+
var GetEntityOverageAllowedSource$inboundSchema = inboundSchema(GetEntityOverageAllowedSource);
|
|
9533
9640
|
var GetEntityOverageAllowed$inboundSchema = z32.pipe(
|
|
9534
9641
|
z32.object({
|
|
9535
9642
|
feature_id: string4(),
|
|
9536
|
-
enabled: z32._default(boolean2(), false)
|
|
9643
|
+
enabled: z32._default(boolean2(), false),
|
|
9644
|
+
source: optional3(GetEntityOverageAllowedSource$inboundSchema)
|
|
9537
9645
|
}),
|
|
9538
9646
|
z32.transform((v) => {
|
|
9539
9647
|
return remap(v, {
|
|
@@ -11140,22 +11248,42 @@ var ListCustomersPurchaseLimitInterval1 = {
|
|
|
11140
11248
|
Week: "week",
|
|
11141
11249
|
Month: "month"
|
|
11142
11250
|
};
|
|
11251
|
+
var ListCustomersAutoTopupSource = {
|
|
11252
|
+
Customer: "customer",
|
|
11253
|
+
Plan: "plan"
|
|
11254
|
+
};
|
|
11143
11255
|
var ListCustomersLimitType = {
|
|
11144
11256
|
Absolute: "absolute",
|
|
11145
11257
|
UsagePercentage: "usage_percentage"
|
|
11146
11258
|
};
|
|
11259
|
+
var ListCustomersSpendLimitSource = {
|
|
11260
|
+
Customer: "customer",
|
|
11261
|
+
Plan: "plan"
|
|
11262
|
+
};
|
|
11147
11263
|
var ListCustomersUsageLimitInterval = {
|
|
11148
11264
|
Day: "day",
|
|
11149
11265
|
Week: "week",
|
|
11150
11266
|
Month: "month",
|
|
11151
11267
|
Year: "year"
|
|
11152
11268
|
};
|
|
11269
|
+
var ListCustomersUsageLimitSource = {
|
|
11270
|
+
Customer: "customer",
|
|
11271
|
+
Plan: "plan"
|
|
11272
|
+
};
|
|
11153
11273
|
var ListCustomersThresholdType = {
|
|
11154
11274
|
Usage: "usage",
|
|
11155
11275
|
UsagePercentage: "usage_percentage",
|
|
11156
11276
|
Remaining: "remaining",
|
|
11157
11277
|
RemainingPercentage: "remaining_percentage"
|
|
11158
11278
|
};
|
|
11279
|
+
var ListCustomersUsageAlertSource = {
|
|
11280
|
+
Customer: "customer",
|
|
11281
|
+
Plan: "plan"
|
|
11282
|
+
};
|
|
11283
|
+
var ListCustomersOverageAllowedSource = {
|
|
11284
|
+
Customer: "customer",
|
|
11285
|
+
Plan: "plan"
|
|
11286
|
+
};
|
|
11159
11287
|
var ListCustomersStatus = {
|
|
11160
11288
|
Active: "active",
|
|
11161
11289
|
Scheduled: "scheduled"
|
|
@@ -11202,36 +11330,37 @@ var ListCustomersEnv$inboundSchema = inboundSchema(ListCustomersEnv);
|
|
|
11202
11330
|
var ListCustomersPurchaseLimitInterval2$inboundSchema = inboundSchema(ListCustomersPurchaseLimitInterval2);
|
|
11203
11331
|
var ListCustomersPurchaseLimit2$inboundSchema = z39.pipe(
|
|
11204
11332
|
z39.object({
|
|
11205
|
-
interval:
|
|
11206
|
-
interval_count:
|
|
11207
|
-
limit:
|
|
11208
|
-
count: number2(),
|
|
11209
|
-
next_reset_at: number2()
|
|
11333
|
+
interval: ListCustomersPurchaseLimitInterval2$inboundSchema,
|
|
11334
|
+
interval_count: z39._default(number2(), 1),
|
|
11335
|
+
limit: number2()
|
|
11210
11336
|
}),
|
|
11211
11337
|
z39.transform((v) => {
|
|
11212
11338
|
return remap(v, {
|
|
11213
|
-
"interval_count": "intervalCount"
|
|
11214
|
-
"next_reset_at": "nextResetAt"
|
|
11339
|
+
"interval_count": "intervalCount"
|
|
11215
11340
|
});
|
|
11216
11341
|
})
|
|
11217
11342
|
);
|
|
11218
11343
|
var ListCustomersPurchaseLimitInterval1$inboundSchema = inboundSchema(ListCustomersPurchaseLimitInterval1);
|
|
11219
11344
|
var ListCustomersPurchaseLimit1$inboundSchema = z39.pipe(
|
|
11220
11345
|
z39.object({
|
|
11221
|
-
interval: ListCustomersPurchaseLimitInterval1$inboundSchema,
|
|
11222
|
-
interval_count:
|
|
11223
|
-
limit: number2()
|
|
11346
|
+
interval: nullable(ListCustomersPurchaseLimitInterval1$inboundSchema),
|
|
11347
|
+
interval_count: nullable(number2()),
|
|
11348
|
+
limit: nullable(number2()),
|
|
11349
|
+
count: number2(),
|
|
11350
|
+
next_reset_at: number2()
|
|
11224
11351
|
}),
|
|
11225
11352
|
z39.transform((v) => {
|
|
11226
11353
|
return remap(v, {
|
|
11227
|
-
"interval_count": "intervalCount"
|
|
11354
|
+
"interval_count": "intervalCount",
|
|
11355
|
+
"next_reset_at": "nextResetAt"
|
|
11228
11356
|
});
|
|
11229
11357
|
})
|
|
11230
11358
|
);
|
|
11231
11359
|
var ListCustomersPurchaseLimitUnion$inboundSchema = smartUnion([
|
|
11232
|
-
z39.lazy(() =>
|
|
11233
|
-
z39.lazy(() =>
|
|
11360
|
+
z39.lazy(() => ListCustomersPurchaseLimit1$inboundSchema),
|
|
11361
|
+
z39.lazy(() => ListCustomersPurchaseLimit2$inboundSchema)
|
|
11234
11362
|
]);
|
|
11363
|
+
var ListCustomersAutoTopupSource$inboundSchema = inboundSchema(ListCustomersAutoTopupSource);
|
|
11235
11364
|
var ListCustomersAutoTopup$inboundSchema = z39.pipe(
|
|
11236
11365
|
z39.object({
|
|
11237
11366
|
feature_id: string4(),
|
|
@@ -11239,10 +11368,11 @@ var ListCustomersAutoTopup$inboundSchema = z39.pipe(
|
|
|
11239
11368
|
threshold: number2(),
|
|
11240
11369
|
quantity: number2(),
|
|
11241
11370
|
purchase_limit: optional3(smartUnion([
|
|
11242
|
-
z39.lazy(() =>
|
|
11243
|
-
z39.lazy(() =>
|
|
11371
|
+
z39.lazy(() => ListCustomersPurchaseLimit1$inboundSchema),
|
|
11372
|
+
z39.lazy(() => ListCustomersPurchaseLimit2$inboundSchema)
|
|
11244
11373
|
])),
|
|
11245
|
-
invoice_mode: optional3(boolean2())
|
|
11374
|
+
invoice_mode: optional3(boolean2()),
|
|
11375
|
+
source: optional3(ListCustomersAutoTopupSource$inboundSchema)
|
|
11246
11376
|
}),
|
|
11247
11377
|
z39.transform((v) => {
|
|
11248
11378
|
return remap(v, {
|
|
@@ -11253,13 +11383,15 @@ var ListCustomersAutoTopup$inboundSchema = z39.pipe(
|
|
|
11253
11383
|
})
|
|
11254
11384
|
);
|
|
11255
11385
|
var ListCustomersLimitType$inboundSchema = inboundSchema(ListCustomersLimitType);
|
|
11386
|
+
var ListCustomersSpendLimitSource$inboundSchema = inboundSchema(ListCustomersSpendLimitSource);
|
|
11256
11387
|
var ListCustomersSpendLimit$inboundSchema = z39.pipe(
|
|
11257
11388
|
z39.object({
|
|
11258
11389
|
feature_id: optional3(string4()),
|
|
11259
11390
|
enabled: z39._default(boolean2(), false),
|
|
11260
11391
|
limit_type: optional3(ListCustomersLimitType$inboundSchema),
|
|
11261
11392
|
overage_limit: optional3(number2()),
|
|
11262
|
-
skip_overage_billing: optional3(boolean2())
|
|
11393
|
+
skip_overage_billing: optional3(boolean2()),
|
|
11394
|
+
source: optional3(ListCustomersSpendLimitSource$inboundSchema)
|
|
11263
11395
|
}),
|
|
11264
11396
|
z39.transform((v) => {
|
|
11265
11397
|
return remap(v, {
|
|
@@ -11274,6 +11406,7 @@ var ListCustomersUsageLimitInterval$inboundSchema = inboundSchema(ListCustomersU
|
|
|
11274
11406
|
var ListCustomersFilter$inboundSchema = z39.object({
|
|
11275
11407
|
properties: z39.record(z39.string(), z39.any())
|
|
11276
11408
|
});
|
|
11409
|
+
var ListCustomersUsageLimitSource$inboundSchema = inboundSchema(ListCustomersUsageLimitSource);
|
|
11277
11410
|
var ListCustomersUsageLimit$inboundSchema = z39.pipe(
|
|
11278
11411
|
z39.object({
|
|
11279
11412
|
feature_id: string4(),
|
|
@@ -11281,7 +11414,8 @@ var ListCustomersUsageLimit$inboundSchema = z39.pipe(
|
|
|
11281
11414
|
limit: number2(),
|
|
11282
11415
|
interval: ListCustomersUsageLimitInterval$inboundSchema,
|
|
11283
11416
|
filter: optional3(z39.lazy(() => ListCustomersFilter$inboundSchema)),
|
|
11284
|
-
usage: optional3(number2())
|
|
11417
|
+
usage: optional3(number2()),
|
|
11418
|
+
source: optional3(ListCustomersUsageLimitSource$inboundSchema)
|
|
11285
11419
|
}),
|
|
11286
11420
|
z39.transform((v) => {
|
|
11287
11421
|
return remap(v, {
|
|
@@ -11290,13 +11424,15 @@ var ListCustomersUsageLimit$inboundSchema = z39.pipe(
|
|
|
11290
11424
|
})
|
|
11291
11425
|
);
|
|
11292
11426
|
var ListCustomersThresholdType$inboundSchema = inboundSchema(ListCustomersThresholdType);
|
|
11427
|
+
var ListCustomersUsageAlertSource$inboundSchema = inboundSchema(ListCustomersUsageAlertSource);
|
|
11293
11428
|
var ListCustomersUsageAlert$inboundSchema = z39.pipe(
|
|
11294
11429
|
z39.object({
|
|
11295
11430
|
feature_id: optional3(string4()),
|
|
11296
11431
|
enabled: z39._default(boolean2(), true),
|
|
11297
11432
|
threshold: number2(),
|
|
11298
11433
|
threshold_type: ListCustomersThresholdType$inboundSchema,
|
|
11299
|
-
name: optional3(string4())
|
|
11434
|
+
name: optional3(string4()),
|
|
11435
|
+
source: optional3(ListCustomersUsageAlertSource$inboundSchema)
|
|
11300
11436
|
}),
|
|
11301
11437
|
z39.transform((v) => {
|
|
11302
11438
|
return remap(v, {
|
|
@@ -11305,10 +11441,12 @@ var ListCustomersUsageAlert$inboundSchema = z39.pipe(
|
|
|
11305
11441
|
});
|
|
11306
11442
|
})
|
|
11307
11443
|
);
|
|
11444
|
+
var ListCustomersOverageAllowedSource$inboundSchema = inboundSchema(ListCustomersOverageAllowedSource);
|
|
11308
11445
|
var ListCustomersOverageAllowed$inboundSchema = z39.pipe(
|
|
11309
11446
|
z39.object({
|
|
11310
11447
|
feature_id: string4(),
|
|
11311
|
-
enabled: z39._default(boolean2(), false)
|
|
11448
|
+
enabled: z39._default(boolean2(), false),
|
|
11449
|
+
source: optional3(ListCustomersOverageAllowedSource$inboundSchema)
|
|
11312
11450
|
}),
|
|
11313
11451
|
z39.transform((v) => {
|
|
11314
11452
|
return remap(v, {
|
|
@@ -11598,18 +11736,34 @@ var ListEntitiesLimitType = {
|
|
|
11598
11736
|
Absolute: "absolute",
|
|
11599
11737
|
UsagePercentage: "usage_percentage"
|
|
11600
11738
|
};
|
|
11739
|
+
var ListEntitiesSpendLimitSource = {
|
|
11740
|
+
Customer: "customer",
|
|
11741
|
+
Plan: "plan"
|
|
11742
|
+
};
|
|
11601
11743
|
var ListEntitiesInterval = {
|
|
11602
11744
|
Day: "day",
|
|
11603
11745
|
Week: "week",
|
|
11604
11746
|
Month: "month",
|
|
11605
11747
|
Year: "year"
|
|
11606
11748
|
};
|
|
11749
|
+
var ListEntitiesUsageLimitSource = {
|
|
11750
|
+
Customer: "customer",
|
|
11751
|
+
Plan: "plan"
|
|
11752
|
+
};
|
|
11607
11753
|
var ListEntitiesThresholdType = {
|
|
11608
11754
|
Usage: "usage",
|
|
11609
11755
|
UsagePercentage: "usage_percentage",
|
|
11610
11756
|
Remaining: "remaining",
|
|
11611
11757
|
RemainingPercentage: "remaining_percentage"
|
|
11612
11758
|
};
|
|
11759
|
+
var ListEntitiesUsageAlertSource = {
|
|
11760
|
+
Customer: "customer",
|
|
11761
|
+
Plan: "plan"
|
|
11762
|
+
};
|
|
11763
|
+
var ListEntitiesOverageAllowedSource = {
|
|
11764
|
+
Customer: "customer",
|
|
11765
|
+
Plan: "plan"
|
|
11766
|
+
};
|
|
11613
11767
|
var ListEntitiesProcessorType = {
|
|
11614
11768
|
Stripe: "stripe",
|
|
11615
11769
|
Revenuecat: "revenuecat"
|
|
@@ -11778,13 +11932,15 @@ var ListEntitiesFlags$inboundSchema = z40.pipe(
|
|
|
11778
11932
|
})
|
|
11779
11933
|
);
|
|
11780
11934
|
var ListEntitiesLimitType$inboundSchema = inboundSchema(ListEntitiesLimitType);
|
|
11935
|
+
var ListEntitiesSpendLimitSource$inboundSchema = inboundSchema(ListEntitiesSpendLimitSource);
|
|
11781
11936
|
var ListEntitiesSpendLimit$inboundSchema = z40.pipe(
|
|
11782
11937
|
z40.object({
|
|
11783
11938
|
feature_id: optional3(string4()),
|
|
11784
11939
|
enabled: z40._default(boolean2(), false),
|
|
11785
11940
|
limit_type: optional3(ListEntitiesLimitType$inboundSchema),
|
|
11786
11941
|
overage_limit: optional3(number2()),
|
|
11787
|
-
skip_overage_billing: optional3(boolean2())
|
|
11942
|
+
skip_overage_billing: optional3(boolean2()),
|
|
11943
|
+
source: optional3(ListEntitiesSpendLimitSource$inboundSchema)
|
|
11788
11944
|
}),
|
|
11789
11945
|
z40.transform((v) => {
|
|
11790
11946
|
return remap(v, {
|
|
@@ -11799,6 +11955,7 @@ var ListEntitiesInterval$inboundSchema = inboundSchema(ListEntitiesInterval);
|
|
|
11799
11955
|
var ListEntitiesFilter$inboundSchema = z40.object({
|
|
11800
11956
|
properties: z40.record(z40.string(), z40.any())
|
|
11801
11957
|
});
|
|
11958
|
+
var ListEntitiesUsageLimitSource$inboundSchema = inboundSchema(ListEntitiesUsageLimitSource);
|
|
11802
11959
|
var ListEntitiesUsageLimit$inboundSchema = z40.pipe(
|
|
11803
11960
|
z40.object({
|
|
11804
11961
|
feature_id: string4(),
|
|
@@ -11806,7 +11963,8 @@ var ListEntitiesUsageLimit$inboundSchema = z40.pipe(
|
|
|
11806
11963
|
limit: number2(),
|
|
11807
11964
|
interval: ListEntitiesInterval$inboundSchema,
|
|
11808
11965
|
filter: optional3(z40.lazy(() => ListEntitiesFilter$inboundSchema)),
|
|
11809
|
-
usage: optional3(number2())
|
|
11966
|
+
usage: optional3(number2()),
|
|
11967
|
+
source: optional3(ListEntitiesUsageLimitSource$inboundSchema)
|
|
11810
11968
|
}),
|
|
11811
11969
|
z40.transform((v) => {
|
|
11812
11970
|
return remap(v, {
|
|
@@ -11815,13 +11973,15 @@ var ListEntitiesUsageLimit$inboundSchema = z40.pipe(
|
|
|
11815
11973
|
})
|
|
11816
11974
|
);
|
|
11817
11975
|
var ListEntitiesThresholdType$inboundSchema = inboundSchema(ListEntitiesThresholdType);
|
|
11976
|
+
var ListEntitiesUsageAlertSource$inboundSchema = inboundSchema(ListEntitiesUsageAlertSource);
|
|
11818
11977
|
var ListEntitiesUsageAlert$inboundSchema = z40.pipe(
|
|
11819
11978
|
z40.object({
|
|
11820
11979
|
feature_id: optional3(string4()),
|
|
11821
11980
|
enabled: z40._default(boolean2(), true),
|
|
11822
11981
|
threshold: number2(),
|
|
11823
11982
|
threshold_type: ListEntitiesThresholdType$inboundSchema,
|
|
11824
|
-
name: optional3(string4())
|
|
11983
|
+
name: optional3(string4()),
|
|
11984
|
+
source: optional3(ListEntitiesUsageAlertSource$inboundSchema)
|
|
11825
11985
|
}),
|
|
11826
11986
|
z40.transform((v) => {
|
|
11827
11987
|
return remap(v, {
|
|
@@ -11830,10 +11990,12 @@ var ListEntitiesUsageAlert$inboundSchema = z40.pipe(
|
|
|
11830
11990
|
});
|
|
11831
11991
|
})
|
|
11832
11992
|
);
|
|
11993
|
+
var ListEntitiesOverageAllowedSource$inboundSchema = inboundSchema(ListEntitiesOverageAllowedSource);
|
|
11833
11994
|
var ListEntitiesOverageAllowed$inboundSchema = z40.pipe(
|
|
11834
11995
|
z40.object({
|
|
11835
11996
|
feature_id: string4(),
|
|
11836
|
-
enabled: z40._default(boolean2(), false)
|
|
11997
|
+
enabled: z40._default(boolean2(), false),
|
|
11998
|
+
source: optional3(ListEntitiesOverageAllowedSource$inboundSchema)
|
|
11837
11999
|
}),
|
|
11838
12000
|
z40.transform((v) => {
|
|
11839
12001
|
return remap(v, {
|
|
@@ -17928,7 +18090,8 @@ var UpdateBalanceParams$outboundSchema = z61.pipe(
|
|
|
17928
18090
|
interval: z61.optional(UpdateBalanceInterval$outboundSchema),
|
|
17929
18091
|
includedGrant: z61.optional(z61.number()),
|
|
17930
18092
|
balanceId: z61.optional(z61.string()),
|
|
17931
|
-
nextResetAt: z61.optional(z61.number())
|
|
18093
|
+
nextResetAt: z61.optional(z61.number()),
|
|
18094
|
+
expiresAt: z61.optional(z61.number())
|
|
17932
18095
|
}),
|
|
17933
18096
|
z61.transform((v) => {
|
|
17934
18097
|
return remap(v, {
|
|
@@ -17938,7 +18101,8 @@ var UpdateBalanceParams$outboundSchema = z61.pipe(
|
|
|
17938
18101
|
addToBalance: "add_to_balance",
|
|
17939
18102
|
includedGrant: "included_grant",
|
|
17940
18103
|
balanceId: "balance_id",
|
|
17941
|
-
nextResetAt: "next_reset_at"
|
|
18104
|
+
nextResetAt: "next_reset_at",
|
|
18105
|
+
expiresAt: "expires_at"
|
|
17942
18106
|
});
|
|
17943
18107
|
})
|
|
17944
18108
|
);
|
|
@@ -17986,22 +18150,42 @@ var UpdateCustomerPurchaseLimitIntervalResponse1 = {
|
|
|
17986
18150
|
Week: "week",
|
|
17987
18151
|
Month: "month"
|
|
17988
18152
|
};
|
|
18153
|
+
var UpdateCustomerAutoTopupSource = {
|
|
18154
|
+
Customer: "customer",
|
|
18155
|
+
Plan: "plan"
|
|
18156
|
+
};
|
|
17989
18157
|
var UpdateCustomerLimitTypeResponse = {
|
|
17990
18158
|
Absolute: "absolute",
|
|
17991
18159
|
UsagePercentage: "usage_percentage"
|
|
17992
18160
|
};
|
|
18161
|
+
var UpdateCustomerSpendLimitSource = {
|
|
18162
|
+
Customer: "customer",
|
|
18163
|
+
Plan: "plan"
|
|
18164
|
+
};
|
|
17993
18165
|
var UpdateCustomerUsageLimitIntervalResponse = {
|
|
17994
18166
|
Day: "day",
|
|
17995
18167
|
Week: "week",
|
|
17996
18168
|
Month: "month",
|
|
17997
18169
|
Year: "year"
|
|
17998
18170
|
};
|
|
18171
|
+
var UpdateCustomerUsageLimitSource = {
|
|
18172
|
+
Customer: "customer",
|
|
18173
|
+
Plan: "plan"
|
|
18174
|
+
};
|
|
17999
18175
|
var UpdateCustomerThresholdTypeResponse = {
|
|
18000
18176
|
Usage: "usage",
|
|
18001
18177
|
UsagePercentage: "usage_percentage",
|
|
18002
18178
|
Remaining: "remaining",
|
|
18003
18179
|
RemainingPercentage: "remaining_percentage"
|
|
18004
18180
|
};
|
|
18181
|
+
var UpdateCustomerUsageAlertSource = {
|
|
18182
|
+
Customer: "customer",
|
|
18183
|
+
Plan: "plan"
|
|
18184
|
+
};
|
|
18185
|
+
var UpdateCustomerOverageAllowedSource = {
|
|
18186
|
+
Customer: "customer",
|
|
18187
|
+
Plan: "plan"
|
|
18188
|
+
};
|
|
18005
18189
|
var UpdateCustomerStatus = {
|
|
18006
18190
|
Active: "active",
|
|
18007
18191
|
Scheduled: "scheduled"
|
|
@@ -18198,38 +18382,39 @@ var UpdateCustomerEnv$inboundSchema = inboundSchema(UpdateCustomerEnv);
|
|
|
18198
18382
|
var UpdateCustomerPurchaseLimitIntervalResponse2$inboundSchema = inboundSchema(UpdateCustomerPurchaseLimitIntervalResponse2);
|
|
18199
18383
|
var UpdateCustomerPurchaseLimitResponse2$inboundSchema = z62.pipe(
|
|
18200
18384
|
z62.object({
|
|
18201
|
-
interval:
|
|
18202
|
-
|
|
18203
|
-
)
|
|
18204
|
-
interval_count: nullable(number2()),
|
|
18205
|
-
limit: nullable(number2()),
|
|
18206
|
-
count: number2(),
|
|
18207
|
-
next_reset_at: number2()
|
|
18385
|
+
interval: UpdateCustomerPurchaseLimitIntervalResponse2$inboundSchema,
|
|
18386
|
+
interval_count: z62._default(number2(), 1),
|
|
18387
|
+
limit: number2()
|
|
18208
18388
|
}),
|
|
18209
18389
|
z62.transform((v) => {
|
|
18210
18390
|
return remap(v, {
|
|
18211
|
-
"interval_count": "intervalCount"
|
|
18212
|
-
"next_reset_at": "nextResetAt"
|
|
18391
|
+
"interval_count": "intervalCount"
|
|
18213
18392
|
});
|
|
18214
18393
|
})
|
|
18215
18394
|
);
|
|
18216
18395
|
var UpdateCustomerPurchaseLimitIntervalResponse1$inboundSchema = inboundSchema(UpdateCustomerPurchaseLimitIntervalResponse1);
|
|
18217
18396
|
var UpdateCustomerPurchaseLimitResponse1$inboundSchema = z62.pipe(
|
|
18218
18397
|
z62.object({
|
|
18219
|
-
interval:
|
|
18220
|
-
|
|
18221
|
-
|
|
18398
|
+
interval: nullable(
|
|
18399
|
+
UpdateCustomerPurchaseLimitIntervalResponse1$inboundSchema
|
|
18400
|
+
),
|
|
18401
|
+
interval_count: nullable(number2()),
|
|
18402
|
+
limit: nullable(number2()),
|
|
18403
|
+
count: number2(),
|
|
18404
|
+
next_reset_at: number2()
|
|
18222
18405
|
}),
|
|
18223
18406
|
z62.transform((v) => {
|
|
18224
18407
|
return remap(v, {
|
|
18225
|
-
"interval_count": "intervalCount"
|
|
18408
|
+
"interval_count": "intervalCount",
|
|
18409
|
+
"next_reset_at": "nextResetAt"
|
|
18226
18410
|
});
|
|
18227
18411
|
})
|
|
18228
18412
|
);
|
|
18229
18413
|
var UpdateCustomerPurchaseLimitUnion$inboundSchema = smartUnion([
|
|
18230
|
-
z62.lazy(() =>
|
|
18231
|
-
z62.lazy(() =>
|
|
18414
|
+
z62.lazy(() => UpdateCustomerPurchaseLimitResponse1$inboundSchema),
|
|
18415
|
+
z62.lazy(() => UpdateCustomerPurchaseLimitResponse2$inboundSchema)
|
|
18232
18416
|
]);
|
|
18417
|
+
var UpdateCustomerAutoTopupSource$inboundSchema = inboundSchema(UpdateCustomerAutoTopupSource);
|
|
18233
18418
|
var UpdateCustomerAutoTopupResponse$inboundSchema = z62.pipe(
|
|
18234
18419
|
z62.object({
|
|
18235
18420
|
feature_id: string4(),
|
|
@@ -18237,10 +18422,11 @@ var UpdateCustomerAutoTopupResponse$inboundSchema = z62.pipe(
|
|
|
18237
18422
|
threshold: number2(),
|
|
18238
18423
|
quantity: number2(),
|
|
18239
18424
|
purchase_limit: optional3(smartUnion([
|
|
18240
|
-
z62.lazy(() =>
|
|
18241
|
-
z62.lazy(() =>
|
|
18425
|
+
z62.lazy(() => UpdateCustomerPurchaseLimitResponse1$inboundSchema),
|
|
18426
|
+
z62.lazy(() => UpdateCustomerPurchaseLimitResponse2$inboundSchema)
|
|
18242
18427
|
])),
|
|
18243
|
-
invoice_mode: optional3(boolean2())
|
|
18428
|
+
invoice_mode: optional3(boolean2()),
|
|
18429
|
+
source: optional3(UpdateCustomerAutoTopupSource$inboundSchema)
|
|
18244
18430
|
}),
|
|
18245
18431
|
z62.transform((v) => {
|
|
18246
18432
|
return remap(v, {
|
|
@@ -18251,13 +18437,15 @@ var UpdateCustomerAutoTopupResponse$inboundSchema = z62.pipe(
|
|
|
18251
18437
|
})
|
|
18252
18438
|
);
|
|
18253
18439
|
var UpdateCustomerLimitTypeResponse$inboundSchema = inboundSchema(UpdateCustomerLimitTypeResponse);
|
|
18440
|
+
var UpdateCustomerSpendLimitSource$inboundSchema = inboundSchema(UpdateCustomerSpendLimitSource);
|
|
18254
18441
|
var UpdateCustomerSpendLimitResponse$inboundSchema = z62.pipe(
|
|
18255
18442
|
z62.object({
|
|
18256
18443
|
feature_id: optional3(string4()),
|
|
18257
18444
|
enabled: z62._default(boolean2(), false),
|
|
18258
18445
|
limit_type: optional3(UpdateCustomerLimitTypeResponse$inboundSchema),
|
|
18259
18446
|
overage_limit: optional3(number2()),
|
|
18260
|
-
skip_overage_billing: optional3(boolean2())
|
|
18447
|
+
skip_overage_billing: optional3(boolean2()),
|
|
18448
|
+
source: optional3(UpdateCustomerSpendLimitSource$inboundSchema)
|
|
18261
18449
|
}),
|
|
18262
18450
|
z62.transform((v) => {
|
|
18263
18451
|
return remap(v, {
|
|
@@ -18272,6 +18460,7 @@ var UpdateCustomerUsageLimitIntervalResponse$inboundSchema = inboundSchema(Updat
|
|
|
18272
18460
|
var UpdateCustomerFilterResponse$inboundSchema = z62.object({
|
|
18273
18461
|
properties: z62.record(z62.string(), z62.any())
|
|
18274
18462
|
});
|
|
18463
|
+
var UpdateCustomerUsageLimitSource$inboundSchema = inboundSchema(UpdateCustomerUsageLimitSource);
|
|
18275
18464
|
var UpdateCustomerUsageLimitResponse$inboundSchema = z62.pipe(
|
|
18276
18465
|
z62.object({
|
|
18277
18466
|
feature_id: string4(),
|
|
@@ -18281,7 +18470,8 @@ var UpdateCustomerUsageLimitResponse$inboundSchema = z62.pipe(
|
|
|
18281
18470
|
filter: optional3(
|
|
18282
18471
|
z62.lazy(() => UpdateCustomerFilterResponse$inboundSchema)
|
|
18283
18472
|
),
|
|
18284
|
-
usage: optional3(number2())
|
|
18473
|
+
usage: optional3(number2()),
|
|
18474
|
+
source: optional3(UpdateCustomerUsageLimitSource$inboundSchema)
|
|
18285
18475
|
}),
|
|
18286
18476
|
z62.transform((v) => {
|
|
18287
18477
|
return remap(v, {
|
|
@@ -18290,13 +18480,15 @@ var UpdateCustomerUsageLimitResponse$inboundSchema = z62.pipe(
|
|
|
18290
18480
|
})
|
|
18291
18481
|
);
|
|
18292
18482
|
var UpdateCustomerThresholdTypeResponse$inboundSchema = inboundSchema(UpdateCustomerThresholdTypeResponse);
|
|
18483
|
+
var UpdateCustomerUsageAlertSource$inboundSchema = inboundSchema(UpdateCustomerUsageAlertSource);
|
|
18293
18484
|
var UpdateCustomerUsageAlertResponse$inboundSchema = z62.pipe(
|
|
18294
18485
|
z62.object({
|
|
18295
18486
|
feature_id: optional3(string4()),
|
|
18296
18487
|
enabled: z62._default(boolean2(), true),
|
|
18297
18488
|
threshold: number2(),
|
|
18298
18489
|
threshold_type: UpdateCustomerThresholdTypeResponse$inboundSchema,
|
|
18299
|
-
name: optional3(string4())
|
|
18490
|
+
name: optional3(string4()),
|
|
18491
|
+
source: optional3(UpdateCustomerUsageAlertSource$inboundSchema)
|
|
18300
18492
|
}),
|
|
18301
18493
|
z62.transform((v) => {
|
|
18302
18494
|
return remap(v, {
|
|
@@ -18305,10 +18497,12 @@ var UpdateCustomerUsageAlertResponse$inboundSchema = z62.pipe(
|
|
|
18305
18497
|
});
|
|
18306
18498
|
})
|
|
18307
18499
|
);
|
|
18500
|
+
var UpdateCustomerOverageAllowedSource$inboundSchema = inboundSchema(UpdateCustomerOverageAllowedSource);
|
|
18308
18501
|
var UpdateCustomerOverageAllowedResponse$inboundSchema = z62.pipe(
|
|
18309
18502
|
z62.object({
|
|
18310
18503
|
feature_id: string4(),
|
|
18311
|
-
enabled: z62._default(boolean2(), false)
|
|
18504
|
+
enabled: z62._default(boolean2(), false),
|
|
18505
|
+
source: optional3(UpdateCustomerOverageAllowedSource$inboundSchema)
|
|
18312
18506
|
}),
|
|
18313
18507
|
z62.transform((v) => {
|
|
18314
18508
|
return remap(v, {
|
|
@@ -18601,18 +18795,34 @@ var UpdateEntityLimitTypeResponse = {
|
|
|
18601
18795
|
Absolute: "absolute",
|
|
18602
18796
|
UsagePercentage: "usage_percentage"
|
|
18603
18797
|
};
|
|
18798
|
+
var UpdateEntitySpendLimitSource = {
|
|
18799
|
+
Customer: "customer",
|
|
18800
|
+
Plan: "plan"
|
|
18801
|
+
};
|
|
18604
18802
|
var UpdateEntityIntervalResponse = {
|
|
18605
18803
|
Day: "day",
|
|
18606
18804
|
Week: "week",
|
|
18607
18805
|
Month: "month",
|
|
18608
18806
|
Year: "year"
|
|
18609
18807
|
};
|
|
18808
|
+
var UpdateEntityUsageLimitSource = {
|
|
18809
|
+
Customer: "customer",
|
|
18810
|
+
Plan: "plan"
|
|
18811
|
+
};
|
|
18610
18812
|
var UpdateEntityThresholdTypeResponse = {
|
|
18611
18813
|
Usage: "usage",
|
|
18612
18814
|
UsagePercentage: "usage_percentage",
|
|
18613
18815
|
Remaining: "remaining",
|
|
18614
18816
|
RemainingPercentage: "remaining_percentage"
|
|
18615
18817
|
};
|
|
18818
|
+
var UpdateEntityUsageAlertSource = {
|
|
18819
|
+
Customer: "customer",
|
|
18820
|
+
Plan: "plan"
|
|
18821
|
+
};
|
|
18822
|
+
var UpdateEntityOverageAllowedSource = {
|
|
18823
|
+
Customer: "customer",
|
|
18824
|
+
Plan: "plan"
|
|
18825
|
+
};
|
|
18616
18826
|
var UpdateEntityProcessorType = {
|
|
18617
18827
|
Stripe: "stripe",
|
|
18618
18828
|
Revenuecat: "revenuecat"
|
|
@@ -18862,13 +19072,15 @@ var UpdateEntityFlags$inboundSchema = z63.pipe(
|
|
|
18862
19072
|
})
|
|
18863
19073
|
);
|
|
18864
19074
|
var UpdateEntityLimitTypeResponse$inboundSchema = inboundSchema(UpdateEntityLimitTypeResponse);
|
|
19075
|
+
var UpdateEntitySpendLimitSource$inboundSchema = inboundSchema(UpdateEntitySpendLimitSource);
|
|
18865
19076
|
var UpdateEntitySpendLimitResponse$inboundSchema = z63.pipe(
|
|
18866
19077
|
z63.object({
|
|
18867
19078
|
feature_id: optional3(string4()),
|
|
18868
19079
|
enabled: z63._default(boolean2(), false),
|
|
18869
19080
|
limit_type: optional3(UpdateEntityLimitTypeResponse$inboundSchema),
|
|
18870
19081
|
overage_limit: optional3(number2()),
|
|
18871
|
-
skip_overage_billing: optional3(boolean2())
|
|
19082
|
+
skip_overage_billing: optional3(boolean2()),
|
|
19083
|
+
source: optional3(UpdateEntitySpendLimitSource$inboundSchema)
|
|
18872
19084
|
}),
|
|
18873
19085
|
z63.transform((v) => {
|
|
18874
19086
|
return remap(v, {
|
|
@@ -18883,6 +19095,7 @@ var UpdateEntityIntervalResponse$inboundSchema = inboundSchema(UpdateEntityInter
|
|
|
18883
19095
|
var UpdateEntityFilterResponse$inboundSchema = z63.object({
|
|
18884
19096
|
properties: z63.record(z63.string(), z63.any())
|
|
18885
19097
|
});
|
|
19098
|
+
var UpdateEntityUsageLimitSource$inboundSchema = inboundSchema(UpdateEntityUsageLimitSource);
|
|
18886
19099
|
var UpdateEntityUsageLimitResponse$inboundSchema = z63.pipe(
|
|
18887
19100
|
z63.object({
|
|
18888
19101
|
feature_id: string4(),
|
|
@@ -18892,7 +19105,8 @@ var UpdateEntityUsageLimitResponse$inboundSchema = z63.pipe(
|
|
|
18892
19105
|
filter: optional3(
|
|
18893
19106
|
z63.lazy(() => UpdateEntityFilterResponse$inboundSchema)
|
|
18894
19107
|
),
|
|
18895
|
-
usage: optional3(number2())
|
|
19108
|
+
usage: optional3(number2()),
|
|
19109
|
+
source: optional3(UpdateEntityUsageLimitSource$inboundSchema)
|
|
18896
19110
|
}),
|
|
18897
19111
|
z63.transform((v) => {
|
|
18898
19112
|
return remap(v, {
|
|
@@ -18901,13 +19115,15 @@ var UpdateEntityUsageLimitResponse$inboundSchema = z63.pipe(
|
|
|
18901
19115
|
})
|
|
18902
19116
|
);
|
|
18903
19117
|
var UpdateEntityThresholdTypeResponse$inboundSchema = inboundSchema(UpdateEntityThresholdTypeResponse);
|
|
19118
|
+
var UpdateEntityUsageAlertSource$inboundSchema = inboundSchema(UpdateEntityUsageAlertSource);
|
|
18904
19119
|
var UpdateEntityUsageAlertResponse$inboundSchema = z63.pipe(
|
|
18905
19120
|
z63.object({
|
|
18906
19121
|
feature_id: optional3(string4()),
|
|
18907
19122
|
enabled: z63._default(boolean2(), true),
|
|
18908
19123
|
threshold: number2(),
|
|
18909
19124
|
threshold_type: UpdateEntityThresholdTypeResponse$inboundSchema,
|
|
18910
|
-
name: optional3(string4())
|
|
19125
|
+
name: optional3(string4()),
|
|
19126
|
+
source: optional3(UpdateEntityUsageAlertSource$inboundSchema)
|
|
18911
19127
|
}),
|
|
18912
19128
|
z63.transform((v) => {
|
|
18913
19129
|
return remap(v, {
|
|
@@ -18916,10 +19132,12 @@ var UpdateEntityUsageAlertResponse$inboundSchema = z63.pipe(
|
|
|
18916
19132
|
});
|
|
18917
19133
|
})
|
|
18918
19134
|
);
|
|
19135
|
+
var UpdateEntityOverageAllowedSource$inboundSchema = inboundSchema(UpdateEntityOverageAllowedSource);
|
|
18919
19136
|
var UpdateEntityOverageAllowedResponse$inboundSchema = z63.pipe(
|
|
18920
19137
|
z63.object({
|
|
18921
19138
|
feature_id: string4(),
|
|
18922
|
-
enabled: z63._default(boolean2(), false)
|
|
19139
|
+
enabled: z63._default(boolean2(), false),
|
|
19140
|
+
source: optional3(UpdateEntityOverageAllowedSource$inboundSchema)
|
|
18923
19141
|
}),
|
|
18924
19142
|
z63.transform((v) => {
|
|
18925
19143
|
return remap(v, {
|
|
@@ -23264,7 +23482,7 @@ var Billing = class extends ClientSDK {
|
|
|
23264
23482
|
* @example
|
|
23265
23483
|
* ```typescript
|
|
23266
23484
|
* // Schedule a transition from a trial plan to a paid plan
|
|
23267
|
-
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":
|
|
23485
|
+
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1783701939170,"plans":[{"planId":"trial_plan"}]},{"startsAt":1784911539170,"plans":[{"planId":"pro_plan"}]}] });
|
|
23268
23486
|
* ```
|
|
23269
23487
|
*
|
|
23270
23488
|
* @param customerId - The ID of the customer to create the schedule for.
|