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
|
@@ -5387,18 +5387,34 @@ var CreateEntityLimitTypeResponse = {
|
|
|
5387
5387
|
Absolute: "absolute",
|
|
5388
5388
|
UsagePercentage: "usage_percentage"
|
|
5389
5389
|
};
|
|
5390
|
+
var CreateEntitySpendLimitSource = {
|
|
5391
|
+
Customer: "customer",
|
|
5392
|
+
Plan: "plan"
|
|
5393
|
+
};
|
|
5390
5394
|
var CreateEntityIntervalResponse = {
|
|
5391
5395
|
Day: "day",
|
|
5392
5396
|
Week: "week",
|
|
5393
5397
|
Month: "month",
|
|
5394
5398
|
Year: "year"
|
|
5395
5399
|
};
|
|
5400
|
+
var CreateEntityUsageLimitSource = {
|
|
5401
|
+
Customer: "customer",
|
|
5402
|
+
Plan: "plan"
|
|
5403
|
+
};
|
|
5396
5404
|
var CreateEntityThresholdTypeResponse = {
|
|
5397
5405
|
Usage: "usage",
|
|
5398
5406
|
UsagePercentage: "usage_percentage",
|
|
5399
5407
|
Remaining: "remaining",
|
|
5400
5408
|
RemainingPercentage: "remaining_percentage"
|
|
5401
5409
|
};
|
|
5410
|
+
var CreateEntityUsageAlertSource = {
|
|
5411
|
+
Customer: "customer",
|
|
5412
|
+
Plan: "plan"
|
|
5413
|
+
};
|
|
5414
|
+
var CreateEntityOverageAllowedSource = {
|
|
5415
|
+
Customer: "customer",
|
|
5416
|
+
Plan: "plan"
|
|
5417
|
+
};
|
|
5402
5418
|
var CreateEntityProcessorType = {
|
|
5403
5419
|
Stripe: "stripe",
|
|
5404
5420
|
Revenuecat: "revenuecat"
|
|
@@ -5653,13 +5669,15 @@ var CreateEntityFlags$inboundSchema = z18.pipe(
|
|
|
5653
5669
|
})
|
|
5654
5670
|
);
|
|
5655
5671
|
var CreateEntityLimitTypeResponse$inboundSchema = inboundSchema(CreateEntityLimitTypeResponse);
|
|
5672
|
+
var CreateEntitySpendLimitSource$inboundSchema = inboundSchema(CreateEntitySpendLimitSource);
|
|
5656
5673
|
var CreateEntitySpendLimitResponse$inboundSchema = z18.pipe(
|
|
5657
5674
|
z18.object({
|
|
5658
5675
|
feature_id: optional3(string4()),
|
|
5659
5676
|
enabled: z18._default(boolean2(), false),
|
|
5660
5677
|
limit_type: optional3(CreateEntityLimitTypeResponse$inboundSchema),
|
|
5661
5678
|
overage_limit: optional3(number2()),
|
|
5662
|
-
skip_overage_billing: optional3(boolean2())
|
|
5679
|
+
skip_overage_billing: optional3(boolean2()),
|
|
5680
|
+
source: optional3(CreateEntitySpendLimitSource$inboundSchema)
|
|
5663
5681
|
}),
|
|
5664
5682
|
z18.transform((v) => {
|
|
5665
5683
|
return remap(v, {
|
|
@@ -5674,6 +5692,7 @@ var CreateEntityIntervalResponse$inboundSchema = inboundSchema(CreateEntityInter
|
|
|
5674
5692
|
var CreateEntityFilterResponse$inboundSchema = z18.object({
|
|
5675
5693
|
properties: z18.record(z18.string(), z18.any())
|
|
5676
5694
|
});
|
|
5695
|
+
var CreateEntityUsageLimitSource$inboundSchema = inboundSchema(CreateEntityUsageLimitSource);
|
|
5677
5696
|
var CreateEntityUsageLimitResponse$inboundSchema = z18.pipe(
|
|
5678
5697
|
z18.object({
|
|
5679
5698
|
feature_id: string4(),
|
|
@@ -5683,7 +5702,8 @@ var CreateEntityUsageLimitResponse$inboundSchema = z18.pipe(
|
|
|
5683
5702
|
filter: optional3(
|
|
5684
5703
|
z18.lazy(() => CreateEntityFilterResponse$inboundSchema)
|
|
5685
5704
|
),
|
|
5686
|
-
usage: optional3(number2())
|
|
5705
|
+
usage: optional3(number2()),
|
|
5706
|
+
source: optional3(CreateEntityUsageLimitSource$inboundSchema)
|
|
5687
5707
|
}),
|
|
5688
5708
|
z18.transform((v) => {
|
|
5689
5709
|
return remap(v, {
|
|
@@ -5692,13 +5712,15 @@ var CreateEntityUsageLimitResponse$inboundSchema = z18.pipe(
|
|
|
5692
5712
|
})
|
|
5693
5713
|
);
|
|
5694
5714
|
var CreateEntityThresholdTypeResponse$inboundSchema = inboundSchema(CreateEntityThresholdTypeResponse);
|
|
5715
|
+
var CreateEntityUsageAlertSource$inboundSchema = inboundSchema(CreateEntityUsageAlertSource);
|
|
5695
5716
|
var CreateEntityUsageAlertResponse$inboundSchema = z18.pipe(
|
|
5696
5717
|
z18.object({
|
|
5697
5718
|
feature_id: optional3(string4()),
|
|
5698
5719
|
enabled: z18._default(boolean2(), true),
|
|
5699
5720
|
threshold: number2(),
|
|
5700
5721
|
threshold_type: CreateEntityThresholdTypeResponse$inboundSchema,
|
|
5701
|
-
name: optional3(string4())
|
|
5722
|
+
name: optional3(string4()),
|
|
5723
|
+
source: optional3(CreateEntityUsageAlertSource$inboundSchema)
|
|
5702
5724
|
}),
|
|
5703
5725
|
z18.transform((v) => {
|
|
5704
5726
|
return remap(v, {
|
|
@@ -5707,10 +5729,12 @@ var CreateEntityUsageAlertResponse$inboundSchema = z18.pipe(
|
|
|
5707
5729
|
});
|
|
5708
5730
|
})
|
|
5709
5731
|
);
|
|
5732
|
+
var CreateEntityOverageAllowedSource$inboundSchema = inboundSchema(CreateEntityOverageAllowedSource);
|
|
5710
5733
|
var CreateEntityOverageAllowedResponse$inboundSchema = z18.pipe(
|
|
5711
5734
|
z18.object({
|
|
5712
5735
|
feature_id: string4(),
|
|
5713
|
-
enabled: z18._default(boolean2(), false)
|
|
5736
|
+
enabled: z18._default(boolean2(), false),
|
|
5737
|
+
source: optional3(CreateEntityOverageAllowedSource$inboundSchema)
|
|
5714
5738
|
}),
|
|
5715
5739
|
z18.transform((v) => {
|
|
5716
5740
|
return remap(v, {
|
|
@@ -8082,22 +8106,42 @@ var CustomerPurchaseLimitInterval1 = {
|
|
|
8082
8106
|
Week: "week",
|
|
8083
8107
|
Month: "month"
|
|
8084
8108
|
};
|
|
8109
|
+
var AutoTopupSource = {
|
|
8110
|
+
Customer: "customer",
|
|
8111
|
+
Plan: "plan"
|
|
8112
|
+
};
|
|
8085
8113
|
var CustomerLimitType = {
|
|
8086
8114
|
Absolute: "absolute",
|
|
8087
8115
|
UsagePercentage: "usage_percentage"
|
|
8088
8116
|
};
|
|
8117
|
+
var SpendLimitSource = {
|
|
8118
|
+
Customer: "customer",
|
|
8119
|
+
Plan: "plan"
|
|
8120
|
+
};
|
|
8089
8121
|
var CustomerUsageLimitInterval = {
|
|
8090
8122
|
Day: "day",
|
|
8091
8123
|
Week: "week",
|
|
8092
8124
|
Month: "month",
|
|
8093
8125
|
Year: "year"
|
|
8094
8126
|
};
|
|
8127
|
+
var UsageLimitSource = {
|
|
8128
|
+
Customer: "customer",
|
|
8129
|
+
Plan: "plan"
|
|
8130
|
+
};
|
|
8095
8131
|
var CustomerThresholdType = {
|
|
8096
8132
|
Usage: "usage",
|
|
8097
8133
|
UsagePercentage: "usage_percentage",
|
|
8098
8134
|
Remaining: "remaining",
|
|
8099
8135
|
RemainingPercentage: "remaining_percentage"
|
|
8100
8136
|
};
|
|
8137
|
+
var UsageAlertSource = {
|
|
8138
|
+
Customer: "customer",
|
|
8139
|
+
Plan: "plan"
|
|
8140
|
+
};
|
|
8141
|
+
var OverageAllowedSource = {
|
|
8142
|
+
Customer: "customer",
|
|
8143
|
+
Plan: "plan"
|
|
8144
|
+
};
|
|
8101
8145
|
var CustomerStatus = {
|
|
8102
8146
|
Active: "active",
|
|
8103
8147
|
Scheduled: "scheduled"
|
|
@@ -8140,36 +8184,37 @@ var CustomerEnv$inboundSchema = inboundSchema(CustomerEnv);
|
|
|
8140
8184
|
var CustomerPurchaseLimitInterval2$inboundSchema = inboundSchema(CustomerPurchaseLimitInterval2);
|
|
8141
8185
|
var CustomerPurchaseLimit2$inboundSchema = z24.pipe(
|
|
8142
8186
|
z24.object({
|
|
8143
|
-
interval:
|
|
8144
|
-
interval_count:
|
|
8145
|
-
limit:
|
|
8146
|
-
count: number2(),
|
|
8147
|
-
next_reset_at: number2()
|
|
8187
|
+
interval: CustomerPurchaseLimitInterval2$inboundSchema,
|
|
8188
|
+
interval_count: z24._default(number2(), 1),
|
|
8189
|
+
limit: number2()
|
|
8148
8190
|
}),
|
|
8149
8191
|
z24.transform((v) => {
|
|
8150
8192
|
return remap(v, {
|
|
8151
|
-
"interval_count": "intervalCount"
|
|
8152
|
-
"next_reset_at": "nextResetAt"
|
|
8193
|
+
"interval_count": "intervalCount"
|
|
8153
8194
|
});
|
|
8154
8195
|
})
|
|
8155
8196
|
);
|
|
8156
8197
|
var CustomerPurchaseLimitInterval1$inboundSchema = inboundSchema(CustomerPurchaseLimitInterval1);
|
|
8157
8198
|
var CustomerPurchaseLimit1$inboundSchema = z24.pipe(
|
|
8158
8199
|
z24.object({
|
|
8159
|
-
interval: CustomerPurchaseLimitInterval1$inboundSchema,
|
|
8160
|
-
interval_count:
|
|
8161
|
-
limit: number2()
|
|
8200
|
+
interval: nullable(CustomerPurchaseLimitInterval1$inboundSchema),
|
|
8201
|
+
interval_count: nullable(number2()),
|
|
8202
|
+
limit: nullable(number2()),
|
|
8203
|
+
count: number2(),
|
|
8204
|
+
next_reset_at: number2()
|
|
8162
8205
|
}),
|
|
8163
8206
|
z24.transform((v) => {
|
|
8164
8207
|
return remap(v, {
|
|
8165
|
-
"interval_count": "intervalCount"
|
|
8208
|
+
"interval_count": "intervalCount",
|
|
8209
|
+
"next_reset_at": "nextResetAt"
|
|
8166
8210
|
});
|
|
8167
8211
|
})
|
|
8168
8212
|
);
|
|
8169
8213
|
var CustomerPurchaseLimitUnion$inboundSchema = smartUnion([
|
|
8170
|
-
z24.lazy(() =>
|
|
8171
|
-
z24.lazy(() =>
|
|
8214
|
+
z24.lazy(() => CustomerPurchaseLimit1$inboundSchema),
|
|
8215
|
+
z24.lazy(() => CustomerPurchaseLimit2$inboundSchema)
|
|
8172
8216
|
]);
|
|
8217
|
+
var AutoTopupSource$inboundSchema = inboundSchema(AutoTopupSource);
|
|
8173
8218
|
var CustomerAutoTopup$inboundSchema = z24.pipe(
|
|
8174
8219
|
z24.object({
|
|
8175
8220
|
feature_id: string4(),
|
|
@@ -8177,10 +8222,11 @@ var CustomerAutoTopup$inboundSchema = z24.pipe(
|
|
|
8177
8222
|
threshold: number2(),
|
|
8178
8223
|
quantity: number2(),
|
|
8179
8224
|
purchase_limit: optional3(smartUnion([
|
|
8180
|
-
z24.lazy(() =>
|
|
8181
|
-
z24.lazy(() =>
|
|
8225
|
+
z24.lazy(() => CustomerPurchaseLimit1$inboundSchema),
|
|
8226
|
+
z24.lazy(() => CustomerPurchaseLimit2$inboundSchema)
|
|
8182
8227
|
])),
|
|
8183
|
-
invoice_mode: optional3(boolean2())
|
|
8228
|
+
invoice_mode: optional3(boolean2()),
|
|
8229
|
+
source: optional3(AutoTopupSource$inboundSchema)
|
|
8184
8230
|
}),
|
|
8185
8231
|
z24.transform((v) => {
|
|
8186
8232
|
return remap(v, {
|
|
@@ -8191,13 +8237,15 @@ var CustomerAutoTopup$inboundSchema = z24.pipe(
|
|
|
8191
8237
|
})
|
|
8192
8238
|
);
|
|
8193
8239
|
var CustomerLimitType$inboundSchema = inboundSchema(CustomerLimitType);
|
|
8240
|
+
var SpendLimitSource$inboundSchema = inboundSchema(SpendLimitSource);
|
|
8194
8241
|
var CustomerSpendLimit$inboundSchema = z24.pipe(
|
|
8195
8242
|
z24.object({
|
|
8196
8243
|
feature_id: optional3(string4()),
|
|
8197
8244
|
enabled: z24._default(boolean2(), false),
|
|
8198
8245
|
limit_type: optional3(CustomerLimitType$inboundSchema),
|
|
8199
8246
|
overage_limit: optional3(number2()),
|
|
8200
|
-
skip_overage_billing: optional3(boolean2())
|
|
8247
|
+
skip_overage_billing: optional3(boolean2()),
|
|
8248
|
+
source: optional3(SpendLimitSource$inboundSchema)
|
|
8201
8249
|
}),
|
|
8202
8250
|
z24.transform((v) => {
|
|
8203
8251
|
return remap(v, {
|
|
@@ -8212,6 +8260,7 @@ var CustomerUsageLimitInterval$inboundSchema = inboundSchema(CustomerUsageLimitI
|
|
|
8212
8260
|
var CustomerFilter$inboundSchema = z24.object({
|
|
8213
8261
|
properties: z24.record(z24.string(), z24.any())
|
|
8214
8262
|
});
|
|
8263
|
+
var UsageLimitSource$inboundSchema = inboundSchema(UsageLimitSource);
|
|
8215
8264
|
var CustomerUsageLimit$inboundSchema = z24.pipe(
|
|
8216
8265
|
z24.object({
|
|
8217
8266
|
feature_id: string4(),
|
|
@@ -8219,7 +8268,8 @@ var CustomerUsageLimit$inboundSchema = z24.pipe(
|
|
|
8219
8268
|
limit: number2(),
|
|
8220
8269
|
interval: CustomerUsageLimitInterval$inboundSchema,
|
|
8221
8270
|
filter: optional3(z24.lazy(() => CustomerFilter$inboundSchema)),
|
|
8222
|
-
usage: optional3(number2())
|
|
8271
|
+
usage: optional3(number2()),
|
|
8272
|
+
source: optional3(UsageLimitSource$inboundSchema)
|
|
8223
8273
|
}),
|
|
8224
8274
|
z24.transform((v) => {
|
|
8225
8275
|
return remap(v, {
|
|
@@ -8228,13 +8278,15 @@ var CustomerUsageLimit$inboundSchema = z24.pipe(
|
|
|
8228
8278
|
})
|
|
8229
8279
|
);
|
|
8230
8280
|
var CustomerThresholdType$inboundSchema = inboundSchema(CustomerThresholdType);
|
|
8281
|
+
var UsageAlertSource$inboundSchema = inboundSchema(UsageAlertSource);
|
|
8231
8282
|
var CustomerUsageAlert$inboundSchema = z24.pipe(
|
|
8232
8283
|
z24.object({
|
|
8233
8284
|
feature_id: optional3(string4()),
|
|
8234
8285
|
enabled: z24._default(boolean2(), true),
|
|
8235
8286
|
threshold: number2(),
|
|
8236
8287
|
threshold_type: CustomerThresholdType$inboundSchema,
|
|
8237
|
-
name: optional3(string4())
|
|
8288
|
+
name: optional3(string4()),
|
|
8289
|
+
source: optional3(UsageAlertSource$inboundSchema)
|
|
8238
8290
|
}),
|
|
8239
8291
|
z24.transform((v) => {
|
|
8240
8292
|
return remap(v, {
|
|
@@ -8243,10 +8295,12 @@ var CustomerUsageAlert$inboundSchema = z24.pipe(
|
|
|
8243
8295
|
});
|
|
8244
8296
|
})
|
|
8245
8297
|
);
|
|
8298
|
+
var OverageAllowedSource$inboundSchema = inboundSchema(OverageAllowedSource);
|
|
8246
8299
|
var CustomerOverageAllowed$inboundSchema = z24.pipe(
|
|
8247
8300
|
z24.object({
|
|
8248
8301
|
feature_id: string4(),
|
|
8249
|
-
enabled: z24._default(boolean2(), false)
|
|
8302
|
+
enabled: z24._default(boolean2(), false),
|
|
8303
|
+
source: optional3(OverageAllowedSource$inboundSchema)
|
|
8250
8304
|
}),
|
|
8251
8305
|
z24.transform((v) => {
|
|
8252
8306
|
return remap(v, {
|
|
@@ -8751,22 +8805,42 @@ var GetCustomerPurchaseLimitInterval1 = {
|
|
|
8751
8805
|
Week: "week",
|
|
8752
8806
|
Month: "month"
|
|
8753
8807
|
};
|
|
8808
|
+
var GetCustomerAutoTopupSource = {
|
|
8809
|
+
Customer: "customer",
|
|
8810
|
+
Plan: "plan"
|
|
8811
|
+
};
|
|
8754
8812
|
var GetCustomerLimitType = {
|
|
8755
8813
|
Absolute: "absolute",
|
|
8756
8814
|
UsagePercentage: "usage_percentage"
|
|
8757
8815
|
};
|
|
8816
|
+
var GetCustomerSpendLimitSource = {
|
|
8817
|
+
Customer: "customer",
|
|
8818
|
+
Plan: "plan"
|
|
8819
|
+
};
|
|
8758
8820
|
var GetCustomerUsageLimitInterval = {
|
|
8759
8821
|
Day: "day",
|
|
8760
8822
|
Week: "week",
|
|
8761
8823
|
Month: "month",
|
|
8762
8824
|
Year: "year"
|
|
8763
8825
|
};
|
|
8826
|
+
var GetCustomerUsageLimitSource = {
|
|
8827
|
+
Customer: "customer",
|
|
8828
|
+
Plan: "plan"
|
|
8829
|
+
};
|
|
8764
8830
|
var GetCustomerThresholdType = {
|
|
8765
8831
|
Usage: "usage",
|
|
8766
8832
|
UsagePercentage: "usage_percentage",
|
|
8767
8833
|
Remaining: "remaining",
|
|
8768
8834
|
RemainingPercentage: "remaining_percentage"
|
|
8769
8835
|
};
|
|
8836
|
+
var GetCustomerUsageAlertSource = {
|
|
8837
|
+
Customer: "customer",
|
|
8838
|
+
Plan: "plan"
|
|
8839
|
+
};
|
|
8840
|
+
var GetCustomerOverageAllowedSource = {
|
|
8841
|
+
Customer: "customer",
|
|
8842
|
+
Plan: "plan"
|
|
8843
|
+
};
|
|
8770
8844
|
var GetCustomerStatus = {
|
|
8771
8845
|
Active: "active",
|
|
8772
8846
|
Scheduled: "scheduled"
|
|
@@ -8820,36 +8894,37 @@ var GetCustomerEnv$inboundSchema = inboundSchema(GetCustomerEnv);
|
|
|
8820
8894
|
var GetCustomerPurchaseLimitInterval2$inboundSchema = inboundSchema(GetCustomerPurchaseLimitInterval2);
|
|
8821
8895
|
var GetCustomerPurchaseLimit2$inboundSchema = z31.pipe(
|
|
8822
8896
|
z31.object({
|
|
8823
|
-
interval:
|
|
8824
|
-
interval_count:
|
|
8825
|
-
limit:
|
|
8826
|
-
count: number2(),
|
|
8827
|
-
next_reset_at: number2()
|
|
8897
|
+
interval: GetCustomerPurchaseLimitInterval2$inboundSchema,
|
|
8898
|
+
interval_count: z31._default(number2(), 1),
|
|
8899
|
+
limit: number2()
|
|
8828
8900
|
}),
|
|
8829
8901
|
z31.transform((v) => {
|
|
8830
8902
|
return remap(v, {
|
|
8831
|
-
"interval_count": "intervalCount"
|
|
8832
|
-
"next_reset_at": "nextResetAt"
|
|
8903
|
+
"interval_count": "intervalCount"
|
|
8833
8904
|
});
|
|
8834
8905
|
})
|
|
8835
8906
|
);
|
|
8836
8907
|
var GetCustomerPurchaseLimitInterval1$inboundSchema = inboundSchema(GetCustomerPurchaseLimitInterval1);
|
|
8837
8908
|
var GetCustomerPurchaseLimit1$inboundSchema = z31.pipe(
|
|
8838
8909
|
z31.object({
|
|
8839
|
-
interval: GetCustomerPurchaseLimitInterval1$inboundSchema,
|
|
8840
|
-
interval_count:
|
|
8841
|
-
limit: number2()
|
|
8910
|
+
interval: nullable(GetCustomerPurchaseLimitInterval1$inboundSchema),
|
|
8911
|
+
interval_count: nullable(number2()),
|
|
8912
|
+
limit: nullable(number2()),
|
|
8913
|
+
count: number2(),
|
|
8914
|
+
next_reset_at: number2()
|
|
8842
8915
|
}),
|
|
8843
8916
|
z31.transform((v) => {
|
|
8844
8917
|
return remap(v, {
|
|
8845
|
-
"interval_count": "intervalCount"
|
|
8918
|
+
"interval_count": "intervalCount",
|
|
8919
|
+
"next_reset_at": "nextResetAt"
|
|
8846
8920
|
});
|
|
8847
8921
|
})
|
|
8848
8922
|
);
|
|
8849
8923
|
var GetCustomerPurchaseLimitUnion$inboundSchema = smartUnion([
|
|
8850
|
-
z31.lazy(() =>
|
|
8851
|
-
z31.lazy(() =>
|
|
8924
|
+
z31.lazy(() => GetCustomerPurchaseLimit1$inboundSchema),
|
|
8925
|
+
z31.lazy(() => GetCustomerPurchaseLimit2$inboundSchema)
|
|
8852
8926
|
]);
|
|
8927
|
+
var GetCustomerAutoTopupSource$inboundSchema = inboundSchema(GetCustomerAutoTopupSource);
|
|
8853
8928
|
var GetCustomerAutoTopup$inboundSchema = z31.pipe(
|
|
8854
8929
|
z31.object({
|
|
8855
8930
|
feature_id: string4(),
|
|
@@ -8857,10 +8932,11 @@ var GetCustomerAutoTopup$inboundSchema = z31.pipe(
|
|
|
8857
8932
|
threshold: number2(),
|
|
8858
8933
|
quantity: number2(),
|
|
8859
8934
|
purchase_limit: optional3(smartUnion([
|
|
8860
|
-
z31.lazy(() =>
|
|
8861
|
-
z31.lazy(() =>
|
|
8935
|
+
z31.lazy(() => GetCustomerPurchaseLimit1$inboundSchema),
|
|
8936
|
+
z31.lazy(() => GetCustomerPurchaseLimit2$inboundSchema)
|
|
8862
8937
|
])),
|
|
8863
|
-
invoice_mode: optional3(boolean2())
|
|
8938
|
+
invoice_mode: optional3(boolean2()),
|
|
8939
|
+
source: optional3(GetCustomerAutoTopupSource$inboundSchema)
|
|
8864
8940
|
}),
|
|
8865
8941
|
z31.transform((v) => {
|
|
8866
8942
|
return remap(v, {
|
|
@@ -8871,13 +8947,15 @@ var GetCustomerAutoTopup$inboundSchema = z31.pipe(
|
|
|
8871
8947
|
})
|
|
8872
8948
|
);
|
|
8873
8949
|
var GetCustomerLimitType$inboundSchema = inboundSchema(GetCustomerLimitType);
|
|
8950
|
+
var GetCustomerSpendLimitSource$inboundSchema = inboundSchema(GetCustomerSpendLimitSource);
|
|
8874
8951
|
var GetCustomerSpendLimit$inboundSchema = z31.pipe(
|
|
8875
8952
|
z31.object({
|
|
8876
8953
|
feature_id: optional3(string4()),
|
|
8877
8954
|
enabled: z31._default(boolean2(), false),
|
|
8878
8955
|
limit_type: optional3(GetCustomerLimitType$inboundSchema),
|
|
8879
8956
|
overage_limit: optional3(number2()),
|
|
8880
|
-
skip_overage_billing: optional3(boolean2())
|
|
8957
|
+
skip_overage_billing: optional3(boolean2()),
|
|
8958
|
+
source: optional3(GetCustomerSpendLimitSource$inboundSchema)
|
|
8881
8959
|
}),
|
|
8882
8960
|
z31.transform((v) => {
|
|
8883
8961
|
return remap(v, {
|
|
@@ -8892,6 +8970,7 @@ var GetCustomerUsageLimitInterval$inboundSchema = inboundSchema(GetCustomerUsage
|
|
|
8892
8970
|
var GetCustomerFilter$inboundSchema = z31.object({
|
|
8893
8971
|
properties: z31.record(z31.string(), z31.any())
|
|
8894
8972
|
});
|
|
8973
|
+
var GetCustomerUsageLimitSource$inboundSchema = inboundSchema(GetCustomerUsageLimitSource);
|
|
8895
8974
|
var GetCustomerUsageLimit$inboundSchema = z31.pipe(
|
|
8896
8975
|
z31.object({
|
|
8897
8976
|
feature_id: string4(),
|
|
@@ -8899,7 +8978,8 @@ var GetCustomerUsageLimit$inboundSchema = z31.pipe(
|
|
|
8899
8978
|
limit: number2(),
|
|
8900
8979
|
interval: GetCustomerUsageLimitInterval$inboundSchema,
|
|
8901
8980
|
filter: optional3(z31.lazy(() => GetCustomerFilter$inboundSchema)),
|
|
8902
|
-
usage: optional3(number2())
|
|
8981
|
+
usage: optional3(number2()),
|
|
8982
|
+
source: optional3(GetCustomerUsageLimitSource$inboundSchema)
|
|
8903
8983
|
}),
|
|
8904
8984
|
z31.transform((v) => {
|
|
8905
8985
|
return remap(v, {
|
|
@@ -8908,13 +8988,15 @@ var GetCustomerUsageLimit$inboundSchema = z31.pipe(
|
|
|
8908
8988
|
})
|
|
8909
8989
|
);
|
|
8910
8990
|
var GetCustomerThresholdType$inboundSchema = inboundSchema(GetCustomerThresholdType);
|
|
8991
|
+
var GetCustomerUsageAlertSource$inboundSchema = inboundSchema(GetCustomerUsageAlertSource);
|
|
8911
8992
|
var GetCustomerUsageAlert$inboundSchema = z31.pipe(
|
|
8912
8993
|
z31.object({
|
|
8913
8994
|
feature_id: optional3(string4()),
|
|
8914
8995
|
enabled: z31._default(boolean2(), true),
|
|
8915
8996
|
threshold: number2(),
|
|
8916
8997
|
threshold_type: GetCustomerThresholdType$inboundSchema,
|
|
8917
|
-
name: optional3(string4())
|
|
8998
|
+
name: optional3(string4()),
|
|
8999
|
+
source: optional3(GetCustomerUsageAlertSource$inboundSchema)
|
|
8918
9000
|
}),
|
|
8919
9001
|
z31.transform((v) => {
|
|
8920
9002
|
return remap(v, {
|
|
@@ -8923,10 +9005,12 @@ var GetCustomerUsageAlert$inboundSchema = z31.pipe(
|
|
|
8923
9005
|
});
|
|
8924
9006
|
})
|
|
8925
9007
|
);
|
|
9008
|
+
var GetCustomerOverageAllowedSource$inboundSchema = inboundSchema(GetCustomerOverageAllowedSource);
|
|
8926
9009
|
var GetCustomerOverageAllowed$inboundSchema = z31.pipe(
|
|
8927
9010
|
z31.object({
|
|
8928
9011
|
feature_id: string4(),
|
|
8929
|
-
enabled: z31._default(boolean2(), false)
|
|
9012
|
+
enabled: z31._default(boolean2(), false),
|
|
9013
|
+
source: optional3(GetCustomerOverageAllowedSource$inboundSchema)
|
|
8930
9014
|
}),
|
|
8931
9015
|
z31.transform((v) => {
|
|
8932
9016
|
return remap(v, {
|
|
@@ -9315,18 +9399,34 @@ var GetEntityLimitType = {
|
|
|
9315
9399
|
Absolute: "absolute",
|
|
9316
9400
|
UsagePercentage: "usage_percentage"
|
|
9317
9401
|
};
|
|
9402
|
+
var GetEntitySpendLimitSource = {
|
|
9403
|
+
Customer: "customer",
|
|
9404
|
+
Plan: "plan"
|
|
9405
|
+
};
|
|
9318
9406
|
var GetEntityInterval = {
|
|
9319
9407
|
Day: "day",
|
|
9320
9408
|
Week: "week",
|
|
9321
9409
|
Month: "month",
|
|
9322
9410
|
Year: "year"
|
|
9323
9411
|
};
|
|
9412
|
+
var GetEntityUsageLimitSource = {
|
|
9413
|
+
Customer: "customer",
|
|
9414
|
+
Plan: "plan"
|
|
9415
|
+
};
|
|
9324
9416
|
var GetEntityThresholdType = {
|
|
9325
9417
|
Usage: "usage",
|
|
9326
9418
|
UsagePercentage: "usage_percentage",
|
|
9327
9419
|
Remaining: "remaining",
|
|
9328
9420
|
RemainingPercentage: "remaining_percentage"
|
|
9329
9421
|
};
|
|
9422
|
+
var GetEntityUsageAlertSource = {
|
|
9423
|
+
Customer: "customer",
|
|
9424
|
+
Plan: "plan"
|
|
9425
|
+
};
|
|
9426
|
+
var GetEntityOverageAllowedSource = {
|
|
9427
|
+
Customer: "customer",
|
|
9428
|
+
Plan: "plan"
|
|
9429
|
+
};
|
|
9330
9430
|
var GetEntityProcessorType = {
|
|
9331
9431
|
Stripe: "stripe",
|
|
9332
9432
|
Revenuecat: "revenuecat"
|
|
@@ -9481,13 +9581,15 @@ var GetEntityFlags$inboundSchema = z32.pipe(
|
|
|
9481
9581
|
})
|
|
9482
9582
|
);
|
|
9483
9583
|
var GetEntityLimitType$inboundSchema = inboundSchema(GetEntityLimitType);
|
|
9584
|
+
var GetEntitySpendLimitSource$inboundSchema = inboundSchema(GetEntitySpendLimitSource);
|
|
9484
9585
|
var GetEntitySpendLimit$inboundSchema = z32.pipe(
|
|
9485
9586
|
z32.object({
|
|
9486
9587
|
feature_id: optional3(string4()),
|
|
9487
9588
|
enabled: z32._default(boolean2(), false),
|
|
9488
9589
|
limit_type: optional3(GetEntityLimitType$inboundSchema),
|
|
9489
9590
|
overage_limit: optional3(number2()),
|
|
9490
|
-
skip_overage_billing: optional3(boolean2())
|
|
9591
|
+
skip_overage_billing: optional3(boolean2()),
|
|
9592
|
+
source: optional3(GetEntitySpendLimitSource$inboundSchema)
|
|
9491
9593
|
}),
|
|
9492
9594
|
z32.transform((v) => {
|
|
9493
9595
|
return remap(v, {
|
|
@@ -9502,6 +9604,7 @@ var GetEntityInterval$inboundSchema = inboundSchema(GetEntityInterval);
|
|
|
9502
9604
|
var GetEntityFilter$inboundSchema = z32.object({
|
|
9503
9605
|
properties: z32.record(z32.string(), z32.any())
|
|
9504
9606
|
});
|
|
9607
|
+
var GetEntityUsageLimitSource$inboundSchema = inboundSchema(GetEntityUsageLimitSource);
|
|
9505
9608
|
var GetEntityUsageLimit$inboundSchema = z32.pipe(
|
|
9506
9609
|
z32.object({
|
|
9507
9610
|
feature_id: string4(),
|
|
@@ -9509,7 +9612,8 @@ var GetEntityUsageLimit$inboundSchema = z32.pipe(
|
|
|
9509
9612
|
limit: number2(),
|
|
9510
9613
|
interval: GetEntityInterval$inboundSchema,
|
|
9511
9614
|
filter: optional3(z32.lazy(() => GetEntityFilter$inboundSchema)),
|
|
9512
|
-
usage: optional3(number2())
|
|
9615
|
+
usage: optional3(number2()),
|
|
9616
|
+
source: optional3(GetEntityUsageLimitSource$inboundSchema)
|
|
9513
9617
|
}),
|
|
9514
9618
|
z32.transform((v) => {
|
|
9515
9619
|
return remap(v, {
|
|
@@ -9518,13 +9622,15 @@ var GetEntityUsageLimit$inboundSchema = z32.pipe(
|
|
|
9518
9622
|
})
|
|
9519
9623
|
);
|
|
9520
9624
|
var GetEntityThresholdType$inboundSchema = inboundSchema(GetEntityThresholdType);
|
|
9625
|
+
var GetEntityUsageAlertSource$inboundSchema = inboundSchema(GetEntityUsageAlertSource);
|
|
9521
9626
|
var GetEntityUsageAlert$inboundSchema = z32.pipe(
|
|
9522
9627
|
z32.object({
|
|
9523
9628
|
feature_id: optional3(string4()),
|
|
9524
9629
|
enabled: z32._default(boolean2(), true),
|
|
9525
9630
|
threshold: number2(),
|
|
9526
9631
|
threshold_type: GetEntityThresholdType$inboundSchema,
|
|
9527
|
-
name: optional3(string4())
|
|
9632
|
+
name: optional3(string4()),
|
|
9633
|
+
source: optional3(GetEntityUsageAlertSource$inboundSchema)
|
|
9528
9634
|
}),
|
|
9529
9635
|
z32.transform((v) => {
|
|
9530
9636
|
return remap(v, {
|
|
@@ -9533,10 +9639,12 @@ var GetEntityUsageAlert$inboundSchema = z32.pipe(
|
|
|
9533
9639
|
});
|
|
9534
9640
|
})
|
|
9535
9641
|
);
|
|
9642
|
+
var GetEntityOverageAllowedSource$inboundSchema = inboundSchema(GetEntityOverageAllowedSource);
|
|
9536
9643
|
var GetEntityOverageAllowed$inboundSchema = z32.pipe(
|
|
9537
9644
|
z32.object({
|
|
9538
9645
|
feature_id: string4(),
|
|
9539
|
-
enabled: z32._default(boolean2(), false)
|
|
9646
|
+
enabled: z32._default(boolean2(), false),
|
|
9647
|
+
source: optional3(GetEntityOverageAllowedSource$inboundSchema)
|
|
9540
9648
|
}),
|
|
9541
9649
|
z32.transform((v) => {
|
|
9542
9650
|
return remap(v, {
|
|
@@ -11143,22 +11251,42 @@ var ListCustomersPurchaseLimitInterval1 = {
|
|
|
11143
11251
|
Week: "week",
|
|
11144
11252
|
Month: "month"
|
|
11145
11253
|
};
|
|
11254
|
+
var ListCustomersAutoTopupSource = {
|
|
11255
|
+
Customer: "customer",
|
|
11256
|
+
Plan: "plan"
|
|
11257
|
+
};
|
|
11146
11258
|
var ListCustomersLimitType = {
|
|
11147
11259
|
Absolute: "absolute",
|
|
11148
11260
|
UsagePercentage: "usage_percentage"
|
|
11149
11261
|
};
|
|
11262
|
+
var ListCustomersSpendLimitSource = {
|
|
11263
|
+
Customer: "customer",
|
|
11264
|
+
Plan: "plan"
|
|
11265
|
+
};
|
|
11150
11266
|
var ListCustomersUsageLimitInterval = {
|
|
11151
11267
|
Day: "day",
|
|
11152
11268
|
Week: "week",
|
|
11153
11269
|
Month: "month",
|
|
11154
11270
|
Year: "year"
|
|
11155
11271
|
};
|
|
11272
|
+
var ListCustomersUsageLimitSource = {
|
|
11273
|
+
Customer: "customer",
|
|
11274
|
+
Plan: "plan"
|
|
11275
|
+
};
|
|
11156
11276
|
var ListCustomersThresholdType = {
|
|
11157
11277
|
Usage: "usage",
|
|
11158
11278
|
UsagePercentage: "usage_percentage",
|
|
11159
11279
|
Remaining: "remaining",
|
|
11160
11280
|
RemainingPercentage: "remaining_percentage"
|
|
11161
11281
|
};
|
|
11282
|
+
var ListCustomersUsageAlertSource = {
|
|
11283
|
+
Customer: "customer",
|
|
11284
|
+
Plan: "plan"
|
|
11285
|
+
};
|
|
11286
|
+
var ListCustomersOverageAllowedSource = {
|
|
11287
|
+
Customer: "customer",
|
|
11288
|
+
Plan: "plan"
|
|
11289
|
+
};
|
|
11162
11290
|
var ListCustomersStatus = {
|
|
11163
11291
|
Active: "active",
|
|
11164
11292
|
Scheduled: "scheduled"
|
|
@@ -11205,36 +11333,37 @@ var ListCustomersEnv$inboundSchema = inboundSchema(ListCustomersEnv);
|
|
|
11205
11333
|
var ListCustomersPurchaseLimitInterval2$inboundSchema = inboundSchema(ListCustomersPurchaseLimitInterval2);
|
|
11206
11334
|
var ListCustomersPurchaseLimit2$inboundSchema = z39.pipe(
|
|
11207
11335
|
z39.object({
|
|
11208
|
-
interval:
|
|
11209
|
-
interval_count:
|
|
11210
|
-
limit:
|
|
11211
|
-
count: number2(),
|
|
11212
|
-
next_reset_at: number2()
|
|
11336
|
+
interval: ListCustomersPurchaseLimitInterval2$inboundSchema,
|
|
11337
|
+
interval_count: z39._default(number2(), 1),
|
|
11338
|
+
limit: number2()
|
|
11213
11339
|
}),
|
|
11214
11340
|
z39.transform((v) => {
|
|
11215
11341
|
return remap(v, {
|
|
11216
|
-
"interval_count": "intervalCount"
|
|
11217
|
-
"next_reset_at": "nextResetAt"
|
|
11342
|
+
"interval_count": "intervalCount"
|
|
11218
11343
|
});
|
|
11219
11344
|
})
|
|
11220
11345
|
);
|
|
11221
11346
|
var ListCustomersPurchaseLimitInterval1$inboundSchema = inboundSchema(ListCustomersPurchaseLimitInterval1);
|
|
11222
11347
|
var ListCustomersPurchaseLimit1$inboundSchema = z39.pipe(
|
|
11223
11348
|
z39.object({
|
|
11224
|
-
interval: ListCustomersPurchaseLimitInterval1$inboundSchema,
|
|
11225
|
-
interval_count:
|
|
11226
|
-
limit: number2()
|
|
11349
|
+
interval: nullable(ListCustomersPurchaseLimitInterval1$inboundSchema),
|
|
11350
|
+
interval_count: nullable(number2()),
|
|
11351
|
+
limit: nullable(number2()),
|
|
11352
|
+
count: number2(),
|
|
11353
|
+
next_reset_at: number2()
|
|
11227
11354
|
}),
|
|
11228
11355
|
z39.transform((v) => {
|
|
11229
11356
|
return remap(v, {
|
|
11230
|
-
"interval_count": "intervalCount"
|
|
11357
|
+
"interval_count": "intervalCount",
|
|
11358
|
+
"next_reset_at": "nextResetAt"
|
|
11231
11359
|
});
|
|
11232
11360
|
})
|
|
11233
11361
|
);
|
|
11234
11362
|
var ListCustomersPurchaseLimitUnion$inboundSchema = smartUnion([
|
|
11235
|
-
z39.lazy(() =>
|
|
11236
|
-
z39.lazy(() =>
|
|
11363
|
+
z39.lazy(() => ListCustomersPurchaseLimit1$inboundSchema),
|
|
11364
|
+
z39.lazy(() => ListCustomersPurchaseLimit2$inboundSchema)
|
|
11237
11365
|
]);
|
|
11366
|
+
var ListCustomersAutoTopupSource$inboundSchema = inboundSchema(ListCustomersAutoTopupSource);
|
|
11238
11367
|
var ListCustomersAutoTopup$inboundSchema = z39.pipe(
|
|
11239
11368
|
z39.object({
|
|
11240
11369
|
feature_id: string4(),
|
|
@@ -11242,10 +11371,11 @@ var ListCustomersAutoTopup$inboundSchema = z39.pipe(
|
|
|
11242
11371
|
threshold: number2(),
|
|
11243
11372
|
quantity: number2(),
|
|
11244
11373
|
purchase_limit: optional3(smartUnion([
|
|
11245
|
-
z39.lazy(() =>
|
|
11246
|
-
z39.lazy(() =>
|
|
11374
|
+
z39.lazy(() => ListCustomersPurchaseLimit1$inboundSchema),
|
|
11375
|
+
z39.lazy(() => ListCustomersPurchaseLimit2$inboundSchema)
|
|
11247
11376
|
])),
|
|
11248
|
-
invoice_mode: optional3(boolean2())
|
|
11377
|
+
invoice_mode: optional3(boolean2()),
|
|
11378
|
+
source: optional3(ListCustomersAutoTopupSource$inboundSchema)
|
|
11249
11379
|
}),
|
|
11250
11380
|
z39.transform((v) => {
|
|
11251
11381
|
return remap(v, {
|
|
@@ -11256,13 +11386,15 @@ var ListCustomersAutoTopup$inboundSchema = z39.pipe(
|
|
|
11256
11386
|
})
|
|
11257
11387
|
);
|
|
11258
11388
|
var ListCustomersLimitType$inboundSchema = inboundSchema(ListCustomersLimitType);
|
|
11389
|
+
var ListCustomersSpendLimitSource$inboundSchema = inboundSchema(ListCustomersSpendLimitSource);
|
|
11259
11390
|
var ListCustomersSpendLimit$inboundSchema = z39.pipe(
|
|
11260
11391
|
z39.object({
|
|
11261
11392
|
feature_id: optional3(string4()),
|
|
11262
11393
|
enabled: z39._default(boolean2(), false),
|
|
11263
11394
|
limit_type: optional3(ListCustomersLimitType$inboundSchema),
|
|
11264
11395
|
overage_limit: optional3(number2()),
|
|
11265
|
-
skip_overage_billing: optional3(boolean2())
|
|
11396
|
+
skip_overage_billing: optional3(boolean2()),
|
|
11397
|
+
source: optional3(ListCustomersSpendLimitSource$inboundSchema)
|
|
11266
11398
|
}),
|
|
11267
11399
|
z39.transform((v) => {
|
|
11268
11400
|
return remap(v, {
|
|
@@ -11277,6 +11409,7 @@ var ListCustomersUsageLimitInterval$inboundSchema = inboundSchema(ListCustomersU
|
|
|
11277
11409
|
var ListCustomersFilter$inboundSchema = z39.object({
|
|
11278
11410
|
properties: z39.record(z39.string(), z39.any())
|
|
11279
11411
|
});
|
|
11412
|
+
var ListCustomersUsageLimitSource$inboundSchema = inboundSchema(ListCustomersUsageLimitSource);
|
|
11280
11413
|
var ListCustomersUsageLimit$inboundSchema = z39.pipe(
|
|
11281
11414
|
z39.object({
|
|
11282
11415
|
feature_id: string4(),
|
|
@@ -11284,7 +11417,8 @@ var ListCustomersUsageLimit$inboundSchema = z39.pipe(
|
|
|
11284
11417
|
limit: number2(),
|
|
11285
11418
|
interval: ListCustomersUsageLimitInterval$inboundSchema,
|
|
11286
11419
|
filter: optional3(z39.lazy(() => ListCustomersFilter$inboundSchema)),
|
|
11287
|
-
usage: optional3(number2())
|
|
11420
|
+
usage: optional3(number2()),
|
|
11421
|
+
source: optional3(ListCustomersUsageLimitSource$inboundSchema)
|
|
11288
11422
|
}),
|
|
11289
11423
|
z39.transform((v) => {
|
|
11290
11424
|
return remap(v, {
|
|
@@ -11293,13 +11427,15 @@ var ListCustomersUsageLimit$inboundSchema = z39.pipe(
|
|
|
11293
11427
|
})
|
|
11294
11428
|
);
|
|
11295
11429
|
var ListCustomersThresholdType$inboundSchema = inboundSchema(ListCustomersThresholdType);
|
|
11430
|
+
var ListCustomersUsageAlertSource$inboundSchema = inboundSchema(ListCustomersUsageAlertSource);
|
|
11296
11431
|
var ListCustomersUsageAlert$inboundSchema = z39.pipe(
|
|
11297
11432
|
z39.object({
|
|
11298
11433
|
feature_id: optional3(string4()),
|
|
11299
11434
|
enabled: z39._default(boolean2(), true),
|
|
11300
11435
|
threshold: number2(),
|
|
11301
11436
|
threshold_type: ListCustomersThresholdType$inboundSchema,
|
|
11302
|
-
name: optional3(string4())
|
|
11437
|
+
name: optional3(string4()),
|
|
11438
|
+
source: optional3(ListCustomersUsageAlertSource$inboundSchema)
|
|
11303
11439
|
}),
|
|
11304
11440
|
z39.transform((v) => {
|
|
11305
11441
|
return remap(v, {
|
|
@@ -11308,10 +11444,12 @@ var ListCustomersUsageAlert$inboundSchema = z39.pipe(
|
|
|
11308
11444
|
});
|
|
11309
11445
|
})
|
|
11310
11446
|
);
|
|
11447
|
+
var ListCustomersOverageAllowedSource$inboundSchema = inboundSchema(ListCustomersOverageAllowedSource);
|
|
11311
11448
|
var ListCustomersOverageAllowed$inboundSchema = z39.pipe(
|
|
11312
11449
|
z39.object({
|
|
11313
11450
|
feature_id: string4(),
|
|
11314
|
-
enabled: z39._default(boolean2(), false)
|
|
11451
|
+
enabled: z39._default(boolean2(), false),
|
|
11452
|
+
source: optional3(ListCustomersOverageAllowedSource$inboundSchema)
|
|
11315
11453
|
}),
|
|
11316
11454
|
z39.transform((v) => {
|
|
11317
11455
|
return remap(v, {
|
|
@@ -11601,18 +11739,34 @@ var ListEntitiesLimitType = {
|
|
|
11601
11739
|
Absolute: "absolute",
|
|
11602
11740
|
UsagePercentage: "usage_percentage"
|
|
11603
11741
|
};
|
|
11742
|
+
var ListEntitiesSpendLimitSource = {
|
|
11743
|
+
Customer: "customer",
|
|
11744
|
+
Plan: "plan"
|
|
11745
|
+
};
|
|
11604
11746
|
var ListEntitiesInterval = {
|
|
11605
11747
|
Day: "day",
|
|
11606
11748
|
Week: "week",
|
|
11607
11749
|
Month: "month",
|
|
11608
11750
|
Year: "year"
|
|
11609
11751
|
};
|
|
11752
|
+
var ListEntitiesUsageLimitSource = {
|
|
11753
|
+
Customer: "customer",
|
|
11754
|
+
Plan: "plan"
|
|
11755
|
+
};
|
|
11610
11756
|
var ListEntitiesThresholdType = {
|
|
11611
11757
|
Usage: "usage",
|
|
11612
11758
|
UsagePercentage: "usage_percentage",
|
|
11613
11759
|
Remaining: "remaining",
|
|
11614
11760
|
RemainingPercentage: "remaining_percentage"
|
|
11615
11761
|
};
|
|
11762
|
+
var ListEntitiesUsageAlertSource = {
|
|
11763
|
+
Customer: "customer",
|
|
11764
|
+
Plan: "plan"
|
|
11765
|
+
};
|
|
11766
|
+
var ListEntitiesOverageAllowedSource = {
|
|
11767
|
+
Customer: "customer",
|
|
11768
|
+
Plan: "plan"
|
|
11769
|
+
};
|
|
11616
11770
|
var ListEntitiesProcessorType = {
|
|
11617
11771
|
Stripe: "stripe",
|
|
11618
11772
|
Revenuecat: "revenuecat"
|
|
@@ -11781,13 +11935,15 @@ var ListEntitiesFlags$inboundSchema = z40.pipe(
|
|
|
11781
11935
|
})
|
|
11782
11936
|
);
|
|
11783
11937
|
var ListEntitiesLimitType$inboundSchema = inboundSchema(ListEntitiesLimitType);
|
|
11938
|
+
var ListEntitiesSpendLimitSource$inboundSchema = inboundSchema(ListEntitiesSpendLimitSource);
|
|
11784
11939
|
var ListEntitiesSpendLimit$inboundSchema = z40.pipe(
|
|
11785
11940
|
z40.object({
|
|
11786
11941
|
feature_id: optional3(string4()),
|
|
11787
11942
|
enabled: z40._default(boolean2(), false),
|
|
11788
11943
|
limit_type: optional3(ListEntitiesLimitType$inboundSchema),
|
|
11789
11944
|
overage_limit: optional3(number2()),
|
|
11790
|
-
skip_overage_billing: optional3(boolean2())
|
|
11945
|
+
skip_overage_billing: optional3(boolean2()),
|
|
11946
|
+
source: optional3(ListEntitiesSpendLimitSource$inboundSchema)
|
|
11791
11947
|
}),
|
|
11792
11948
|
z40.transform((v) => {
|
|
11793
11949
|
return remap(v, {
|
|
@@ -11802,6 +11958,7 @@ var ListEntitiesInterval$inboundSchema = inboundSchema(ListEntitiesInterval);
|
|
|
11802
11958
|
var ListEntitiesFilter$inboundSchema = z40.object({
|
|
11803
11959
|
properties: z40.record(z40.string(), z40.any())
|
|
11804
11960
|
});
|
|
11961
|
+
var ListEntitiesUsageLimitSource$inboundSchema = inboundSchema(ListEntitiesUsageLimitSource);
|
|
11805
11962
|
var ListEntitiesUsageLimit$inboundSchema = z40.pipe(
|
|
11806
11963
|
z40.object({
|
|
11807
11964
|
feature_id: string4(),
|
|
@@ -11809,7 +11966,8 @@ var ListEntitiesUsageLimit$inboundSchema = z40.pipe(
|
|
|
11809
11966
|
limit: number2(),
|
|
11810
11967
|
interval: ListEntitiesInterval$inboundSchema,
|
|
11811
11968
|
filter: optional3(z40.lazy(() => ListEntitiesFilter$inboundSchema)),
|
|
11812
|
-
usage: optional3(number2())
|
|
11969
|
+
usage: optional3(number2()),
|
|
11970
|
+
source: optional3(ListEntitiesUsageLimitSource$inboundSchema)
|
|
11813
11971
|
}),
|
|
11814
11972
|
z40.transform((v) => {
|
|
11815
11973
|
return remap(v, {
|
|
@@ -11818,13 +11976,15 @@ var ListEntitiesUsageLimit$inboundSchema = z40.pipe(
|
|
|
11818
11976
|
})
|
|
11819
11977
|
);
|
|
11820
11978
|
var ListEntitiesThresholdType$inboundSchema = inboundSchema(ListEntitiesThresholdType);
|
|
11979
|
+
var ListEntitiesUsageAlertSource$inboundSchema = inboundSchema(ListEntitiesUsageAlertSource);
|
|
11821
11980
|
var ListEntitiesUsageAlert$inboundSchema = z40.pipe(
|
|
11822
11981
|
z40.object({
|
|
11823
11982
|
feature_id: optional3(string4()),
|
|
11824
11983
|
enabled: z40._default(boolean2(), true),
|
|
11825
11984
|
threshold: number2(),
|
|
11826
11985
|
threshold_type: ListEntitiesThresholdType$inboundSchema,
|
|
11827
|
-
name: optional3(string4())
|
|
11986
|
+
name: optional3(string4()),
|
|
11987
|
+
source: optional3(ListEntitiesUsageAlertSource$inboundSchema)
|
|
11828
11988
|
}),
|
|
11829
11989
|
z40.transform((v) => {
|
|
11830
11990
|
return remap(v, {
|
|
@@ -11833,10 +11993,12 @@ var ListEntitiesUsageAlert$inboundSchema = z40.pipe(
|
|
|
11833
11993
|
});
|
|
11834
11994
|
})
|
|
11835
11995
|
);
|
|
11996
|
+
var ListEntitiesOverageAllowedSource$inboundSchema = inboundSchema(ListEntitiesOverageAllowedSource);
|
|
11836
11997
|
var ListEntitiesOverageAllowed$inboundSchema = z40.pipe(
|
|
11837
11998
|
z40.object({
|
|
11838
11999
|
feature_id: string4(),
|
|
11839
|
-
enabled: z40._default(boolean2(), false)
|
|
12000
|
+
enabled: z40._default(boolean2(), false),
|
|
12001
|
+
source: optional3(ListEntitiesOverageAllowedSource$inboundSchema)
|
|
11840
12002
|
}),
|
|
11841
12003
|
z40.transform((v) => {
|
|
11842
12004
|
return remap(v, {
|
|
@@ -17931,7 +18093,8 @@ var UpdateBalanceParams$outboundSchema = z61.pipe(
|
|
|
17931
18093
|
interval: z61.optional(UpdateBalanceInterval$outboundSchema),
|
|
17932
18094
|
includedGrant: z61.optional(z61.number()),
|
|
17933
18095
|
balanceId: z61.optional(z61.string()),
|
|
17934
|
-
nextResetAt: z61.optional(z61.number())
|
|
18096
|
+
nextResetAt: z61.optional(z61.number()),
|
|
18097
|
+
expiresAt: z61.optional(z61.number())
|
|
17935
18098
|
}),
|
|
17936
18099
|
z61.transform((v) => {
|
|
17937
18100
|
return remap(v, {
|
|
@@ -17941,7 +18104,8 @@ var UpdateBalanceParams$outboundSchema = z61.pipe(
|
|
|
17941
18104
|
addToBalance: "add_to_balance",
|
|
17942
18105
|
includedGrant: "included_grant",
|
|
17943
18106
|
balanceId: "balance_id",
|
|
17944
|
-
nextResetAt: "next_reset_at"
|
|
18107
|
+
nextResetAt: "next_reset_at",
|
|
18108
|
+
expiresAt: "expires_at"
|
|
17945
18109
|
});
|
|
17946
18110
|
})
|
|
17947
18111
|
);
|
|
@@ -17989,22 +18153,42 @@ var UpdateCustomerPurchaseLimitIntervalResponse1 = {
|
|
|
17989
18153
|
Week: "week",
|
|
17990
18154
|
Month: "month"
|
|
17991
18155
|
};
|
|
18156
|
+
var UpdateCustomerAutoTopupSource = {
|
|
18157
|
+
Customer: "customer",
|
|
18158
|
+
Plan: "plan"
|
|
18159
|
+
};
|
|
17992
18160
|
var UpdateCustomerLimitTypeResponse = {
|
|
17993
18161
|
Absolute: "absolute",
|
|
17994
18162
|
UsagePercentage: "usage_percentage"
|
|
17995
18163
|
};
|
|
18164
|
+
var UpdateCustomerSpendLimitSource = {
|
|
18165
|
+
Customer: "customer",
|
|
18166
|
+
Plan: "plan"
|
|
18167
|
+
};
|
|
17996
18168
|
var UpdateCustomerUsageLimitIntervalResponse = {
|
|
17997
18169
|
Day: "day",
|
|
17998
18170
|
Week: "week",
|
|
17999
18171
|
Month: "month",
|
|
18000
18172
|
Year: "year"
|
|
18001
18173
|
};
|
|
18174
|
+
var UpdateCustomerUsageLimitSource = {
|
|
18175
|
+
Customer: "customer",
|
|
18176
|
+
Plan: "plan"
|
|
18177
|
+
};
|
|
18002
18178
|
var UpdateCustomerThresholdTypeResponse = {
|
|
18003
18179
|
Usage: "usage",
|
|
18004
18180
|
UsagePercentage: "usage_percentage",
|
|
18005
18181
|
Remaining: "remaining",
|
|
18006
18182
|
RemainingPercentage: "remaining_percentage"
|
|
18007
18183
|
};
|
|
18184
|
+
var UpdateCustomerUsageAlertSource = {
|
|
18185
|
+
Customer: "customer",
|
|
18186
|
+
Plan: "plan"
|
|
18187
|
+
};
|
|
18188
|
+
var UpdateCustomerOverageAllowedSource = {
|
|
18189
|
+
Customer: "customer",
|
|
18190
|
+
Plan: "plan"
|
|
18191
|
+
};
|
|
18008
18192
|
var UpdateCustomerStatus = {
|
|
18009
18193
|
Active: "active",
|
|
18010
18194
|
Scheduled: "scheduled"
|
|
@@ -18201,38 +18385,39 @@ var UpdateCustomerEnv$inboundSchema = inboundSchema(UpdateCustomerEnv);
|
|
|
18201
18385
|
var UpdateCustomerPurchaseLimitIntervalResponse2$inboundSchema = inboundSchema(UpdateCustomerPurchaseLimitIntervalResponse2);
|
|
18202
18386
|
var UpdateCustomerPurchaseLimitResponse2$inboundSchema = z62.pipe(
|
|
18203
18387
|
z62.object({
|
|
18204
|
-
interval:
|
|
18205
|
-
|
|
18206
|
-
)
|
|
18207
|
-
interval_count: nullable(number2()),
|
|
18208
|
-
limit: nullable(number2()),
|
|
18209
|
-
count: number2(),
|
|
18210
|
-
next_reset_at: number2()
|
|
18388
|
+
interval: UpdateCustomerPurchaseLimitIntervalResponse2$inboundSchema,
|
|
18389
|
+
interval_count: z62._default(number2(), 1),
|
|
18390
|
+
limit: number2()
|
|
18211
18391
|
}),
|
|
18212
18392
|
z62.transform((v) => {
|
|
18213
18393
|
return remap(v, {
|
|
18214
|
-
"interval_count": "intervalCount"
|
|
18215
|
-
"next_reset_at": "nextResetAt"
|
|
18394
|
+
"interval_count": "intervalCount"
|
|
18216
18395
|
});
|
|
18217
18396
|
})
|
|
18218
18397
|
);
|
|
18219
18398
|
var UpdateCustomerPurchaseLimitIntervalResponse1$inboundSchema = inboundSchema(UpdateCustomerPurchaseLimitIntervalResponse1);
|
|
18220
18399
|
var UpdateCustomerPurchaseLimitResponse1$inboundSchema = z62.pipe(
|
|
18221
18400
|
z62.object({
|
|
18222
|
-
interval:
|
|
18223
|
-
|
|
18224
|
-
|
|
18401
|
+
interval: nullable(
|
|
18402
|
+
UpdateCustomerPurchaseLimitIntervalResponse1$inboundSchema
|
|
18403
|
+
),
|
|
18404
|
+
interval_count: nullable(number2()),
|
|
18405
|
+
limit: nullable(number2()),
|
|
18406
|
+
count: number2(),
|
|
18407
|
+
next_reset_at: number2()
|
|
18225
18408
|
}),
|
|
18226
18409
|
z62.transform((v) => {
|
|
18227
18410
|
return remap(v, {
|
|
18228
|
-
"interval_count": "intervalCount"
|
|
18411
|
+
"interval_count": "intervalCount",
|
|
18412
|
+
"next_reset_at": "nextResetAt"
|
|
18229
18413
|
});
|
|
18230
18414
|
})
|
|
18231
18415
|
);
|
|
18232
18416
|
var UpdateCustomerPurchaseLimitUnion$inboundSchema = smartUnion([
|
|
18233
|
-
z62.lazy(() =>
|
|
18234
|
-
z62.lazy(() =>
|
|
18417
|
+
z62.lazy(() => UpdateCustomerPurchaseLimitResponse1$inboundSchema),
|
|
18418
|
+
z62.lazy(() => UpdateCustomerPurchaseLimitResponse2$inboundSchema)
|
|
18235
18419
|
]);
|
|
18420
|
+
var UpdateCustomerAutoTopupSource$inboundSchema = inboundSchema(UpdateCustomerAutoTopupSource);
|
|
18236
18421
|
var UpdateCustomerAutoTopupResponse$inboundSchema = z62.pipe(
|
|
18237
18422
|
z62.object({
|
|
18238
18423
|
feature_id: string4(),
|
|
@@ -18240,10 +18425,11 @@ var UpdateCustomerAutoTopupResponse$inboundSchema = z62.pipe(
|
|
|
18240
18425
|
threshold: number2(),
|
|
18241
18426
|
quantity: number2(),
|
|
18242
18427
|
purchase_limit: optional3(smartUnion([
|
|
18243
|
-
z62.lazy(() =>
|
|
18244
|
-
z62.lazy(() =>
|
|
18428
|
+
z62.lazy(() => UpdateCustomerPurchaseLimitResponse1$inboundSchema),
|
|
18429
|
+
z62.lazy(() => UpdateCustomerPurchaseLimitResponse2$inboundSchema)
|
|
18245
18430
|
])),
|
|
18246
|
-
invoice_mode: optional3(boolean2())
|
|
18431
|
+
invoice_mode: optional3(boolean2()),
|
|
18432
|
+
source: optional3(UpdateCustomerAutoTopupSource$inboundSchema)
|
|
18247
18433
|
}),
|
|
18248
18434
|
z62.transform((v) => {
|
|
18249
18435
|
return remap(v, {
|
|
@@ -18254,13 +18440,15 @@ var UpdateCustomerAutoTopupResponse$inboundSchema = z62.pipe(
|
|
|
18254
18440
|
})
|
|
18255
18441
|
);
|
|
18256
18442
|
var UpdateCustomerLimitTypeResponse$inboundSchema = inboundSchema(UpdateCustomerLimitTypeResponse);
|
|
18443
|
+
var UpdateCustomerSpendLimitSource$inboundSchema = inboundSchema(UpdateCustomerSpendLimitSource);
|
|
18257
18444
|
var UpdateCustomerSpendLimitResponse$inboundSchema = z62.pipe(
|
|
18258
18445
|
z62.object({
|
|
18259
18446
|
feature_id: optional3(string4()),
|
|
18260
18447
|
enabled: z62._default(boolean2(), false),
|
|
18261
18448
|
limit_type: optional3(UpdateCustomerLimitTypeResponse$inboundSchema),
|
|
18262
18449
|
overage_limit: optional3(number2()),
|
|
18263
|
-
skip_overage_billing: optional3(boolean2())
|
|
18450
|
+
skip_overage_billing: optional3(boolean2()),
|
|
18451
|
+
source: optional3(UpdateCustomerSpendLimitSource$inboundSchema)
|
|
18264
18452
|
}),
|
|
18265
18453
|
z62.transform((v) => {
|
|
18266
18454
|
return remap(v, {
|
|
@@ -18275,6 +18463,7 @@ var UpdateCustomerUsageLimitIntervalResponse$inboundSchema = inboundSchema(Updat
|
|
|
18275
18463
|
var UpdateCustomerFilterResponse$inboundSchema = z62.object({
|
|
18276
18464
|
properties: z62.record(z62.string(), z62.any())
|
|
18277
18465
|
});
|
|
18466
|
+
var UpdateCustomerUsageLimitSource$inboundSchema = inboundSchema(UpdateCustomerUsageLimitSource);
|
|
18278
18467
|
var UpdateCustomerUsageLimitResponse$inboundSchema = z62.pipe(
|
|
18279
18468
|
z62.object({
|
|
18280
18469
|
feature_id: string4(),
|
|
@@ -18284,7 +18473,8 @@ var UpdateCustomerUsageLimitResponse$inboundSchema = z62.pipe(
|
|
|
18284
18473
|
filter: optional3(
|
|
18285
18474
|
z62.lazy(() => UpdateCustomerFilterResponse$inboundSchema)
|
|
18286
18475
|
),
|
|
18287
|
-
usage: optional3(number2())
|
|
18476
|
+
usage: optional3(number2()),
|
|
18477
|
+
source: optional3(UpdateCustomerUsageLimitSource$inboundSchema)
|
|
18288
18478
|
}),
|
|
18289
18479
|
z62.transform((v) => {
|
|
18290
18480
|
return remap(v, {
|
|
@@ -18293,13 +18483,15 @@ var UpdateCustomerUsageLimitResponse$inboundSchema = z62.pipe(
|
|
|
18293
18483
|
})
|
|
18294
18484
|
);
|
|
18295
18485
|
var UpdateCustomerThresholdTypeResponse$inboundSchema = inboundSchema(UpdateCustomerThresholdTypeResponse);
|
|
18486
|
+
var UpdateCustomerUsageAlertSource$inboundSchema = inboundSchema(UpdateCustomerUsageAlertSource);
|
|
18296
18487
|
var UpdateCustomerUsageAlertResponse$inboundSchema = z62.pipe(
|
|
18297
18488
|
z62.object({
|
|
18298
18489
|
feature_id: optional3(string4()),
|
|
18299
18490
|
enabled: z62._default(boolean2(), true),
|
|
18300
18491
|
threshold: number2(),
|
|
18301
18492
|
threshold_type: UpdateCustomerThresholdTypeResponse$inboundSchema,
|
|
18302
|
-
name: optional3(string4())
|
|
18493
|
+
name: optional3(string4()),
|
|
18494
|
+
source: optional3(UpdateCustomerUsageAlertSource$inboundSchema)
|
|
18303
18495
|
}),
|
|
18304
18496
|
z62.transform((v) => {
|
|
18305
18497
|
return remap(v, {
|
|
@@ -18308,10 +18500,12 @@ var UpdateCustomerUsageAlertResponse$inboundSchema = z62.pipe(
|
|
|
18308
18500
|
});
|
|
18309
18501
|
})
|
|
18310
18502
|
);
|
|
18503
|
+
var UpdateCustomerOverageAllowedSource$inboundSchema = inboundSchema(UpdateCustomerOverageAllowedSource);
|
|
18311
18504
|
var UpdateCustomerOverageAllowedResponse$inboundSchema = z62.pipe(
|
|
18312
18505
|
z62.object({
|
|
18313
18506
|
feature_id: string4(),
|
|
18314
|
-
enabled: z62._default(boolean2(), false)
|
|
18507
|
+
enabled: z62._default(boolean2(), false),
|
|
18508
|
+
source: optional3(UpdateCustomerOverageAllowedSource$inboundSchema)
|
|
18315
18509
|
}),
|
|
18316
18510
|
z62.transform((v) => {
|
|
18317
18511
|
return remap(v, {
|
|
@@ -18604,18 +18798,34 @@ var UpdateEntityLimitTypeResponse = {
|
|
|
18604
18798
|
Absolute: "absolute",
|
|
18605
18799
|
UsagePercentage: "usage_percentage"
|
|
18606
18800
|
};
|
|
18801
|
+
var UpdateEntitySpendLimitSource = {
|
|
18802
|
+
Customer: "customer",
|
|
18803
|
+
Plan: "plan"
|
|
18804
|
+
};
|
|
18607
18805
|
var UpdateEntityIntervalResponse = {
|
|
18608
18806
|
Day: "day",
|
|
18609
18807
|
Week: "week",
|
|
18610
18808
|
Month: "month",
|
|
18611
18809
|
Year: "year"
|
|
18612
18810
|
};
|
|
18811
|
+
var UpdateEntityUsageLimitSource = {
|
|
18812
|
+
Customer: "customer",
|
|
18813
|
+
Plan: "plan"
|
|
18814
|
+
};
|
|
18613
18815
|
var UpdateEntityThresholdTypeResponse = {
|
|
18614
18816
|
Usage: "usage",
|
|
18615
18817
|
UsagePercentage: "usage_percentage",
|
|
18616
18818
|
Remaining: "remaining",
|
|
18617
18819
|
RemainingPercentage: "remaining_percentage"
|
|
18618
18820
|
};
|
|
18821
|
+
var UpdateEntityUsageAlertSource = {
|
|
18822
|
+
Customer: "customer",
|
|
18823
|
+
Plan: "plan"
|
|
18824
|
+
};
|
|
18825
|
+
var UpdateEntityOverageAllowedSource = {
|
|
18826
|
+
Customer: "customer",
|
|
18827
|
+
Plan: "plan"
|
|
18828
|
+
};
|
|
18619
18829
|
var UpdateEntityProcessorType = {
|
|
18620
18830
|
Stripe: "stripe",
|
|
18621
18831
|
Revenuecat: "revenuecat"
|
|
@@ -18865,13 +19075,15 @@ var UpdateEntityFlags$inboundSchema = z63.pipe(
|
|
|
18865
19075
|
})
|
|
18866
19076
|
);
|
|
18867
19077
|
var UpdateEntityLimitTypeResponse$inboundSchema = inboundSchema(UpdateEntityLimitTypeResponse);
|
|
19078
|
+
var UpdateEntitySpendLimitSource$inboundSchema = inboundSchema(UpdateEntitySpendLimitSource);
|
|
18868
19079
|
var UpdateEntitySpendLimitResponse$inboundSchema = z63.pipe(
|
|
18869
19080
|
z63.object({
|
|
18870
19081
|
feature_id: optional3(string4()),
|
|
18871
19082
|
enabled: z63._default(boolean2(), false),
|
|
18872
19083
|
limit_type: optional3(UpdateEntityLimitTypeResponse$inboundSchema),
|
|
18873
19084
|
overage_limit: optional3(number2()),
|
|
18874
|
-
skip_overage_billing: optional3(boolean2())
|
|
19085
|
+
skip_overage_billing: optional3(boolean2()),
|
|
19086
|
+
source: optional3(UpdateEntitySpendLimitSource$inboundSchema)
|
|
18875
19087
|
}),
|
|
18876
19088
|
z63.transform((v) => {
|
|
18877
19089
|
return remap(v, {
|
|
@@ -18886,6 +19098,7 @@ var UpdateEntityIntervalResponse$inboundSchema = inboundSchema(UpdateEntityInter
|
|
|
18886
19098
|
var UpdateEntityFilterResponse$inboundSchema = z63.object({
|
|
18887
19099
|
properties: z63.record(z63.string(), z63.any())
|
|
18888
19100
|
});
|
|
19101
|
+
var UpdateEntityUsageLimitSource$inboundSchema = inboundSchema(UpdateEntityUsageLimitSource);
|
|
18889
19102
|
var UpdateEntityUsageLimitResponse$inboundSchema = z63.pipe(
|
|
18890
19103
|
z63.object({
|
|
18891
19104
|
feature_id: string4(),
|
|
@@ -18895,7 +19108,8 @@ var UpdateEntityUsageLimitResponse$inboundSchema = z63.pipe(
|
|
|
18895
19108
|
filter: optional3(
|
|
18896
19109
|
z63.lazy(() => UpdateEntityFilterResponse$inboundSchema)
|
|
18897
19110
|
),
|
|
18898
|
-
usage: optional3(number2())
|
|
19111
|
+
usage: optional3(number2()),
|
|
19112
|
+
source: optional3(UpdateEntityUsageLimitSource$inboundSchema)
|
|
18899
19113
|
}),
|
|
18900
19114
|
z63.transform((v) => {
|
|
18901
19115
|
return remap(v, {
|
|
@@ -18904,13 +19118,15 @@ var UpdateEntityUsageLimitResponse$inboundSchema = z63.pipe(
|
|
|
18904
19118
|
})
|
|
18905
19119
|
);
|
|
18906
19120
|
var UpdateEntityThresholdTypeResponse$inboundSchema = inboundSchema(UpdateEntityThresholdTypeResponse);
|
|
19121
|
+
var UpdateEntityUsageAlertSource$inboundSchema = inboundSchema(UpdateEntityUsageAlertSource);
|
|
18907
19122
|
var UpdateEntityUsageAlertResponse$inboundSchema = z63.pipe(
|
|
18908
19123
|
z63.object({
|
|
18909
19124
|
feature_id: optional3(string4()),
|
|
18910
19125
|
enabled: z63._default(boolean2(), true),
|
|
18911
19126
|
threshold: number2(),
|
|
18912
19127
|
threshold_type: UpdateEntityThresholdTypeResponse$inboundSchema,
|
|
18913
|
-
name: optional3(string4())
|
|
19128
|
+
name: optional3(string4()),
|
|
19129
|
+
source: optional3(UpdateEntityUsageAlertSource$inboundSchema)
|
|
18914
19130
|
}),
|
|
18915
19131
|
z63.transform((v) => {
|
|
18916
19132
|
return remap(v, {
|
|
@@ -18919,10 +19135,12 @@ var UpdateEntityUsageAlertResponse$inboundSchema = z63.pipe(
|
|
|
18919
19135
|
});
|
|
18920
19136
|
})
|
|
18921
19137
|
);
|
|
19138
|
+
var UpdateEntityOverageAllowedSource$inboundSchema = inboundSchema(UpdateEntityOverageAllowedSource);
|
|
18922
19139
|
var UpdateEntityOverageAllowedResponse$inboundSchema = z63.pipe(
|
|
18923
19140
|
z63.object({
|
|
18924
19141
|
feature_id: string4(),
|
|
18925
|
-
enabled: z63._default(boolean2(), false)
|
|
19142
|
+
enabled: z63._default(boolean2(), false),
|
|
19143
|
+
source: optional3(UpdateEntityOverageAllowedSource$inboundSchema)
|
|
18926
19144
|
}),
|
|
18927
19145
|
z63.transform((v) => {
|
|
18928
19146
|
return remap(v, {
|
|
@@ -23267,7 +23485,7 @@ var Billing = class extends ClientSDK {
|
|
|
23267
23485
|
* @example
|
|
23268
23486
|
* ```typescript
|
|
23269
23487
|
* // Schedule a transition from a trial plan to a paid plan
|
|
23270
|
-
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":
|
|
23488
|
+
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1783701939170,"plans":[{"planId":"trial_plan"}]},{"startsAt":1784911539170,"plans":[{"planId":"pro_plan"}]}] });
|
|
23271
23489
|
* ```
|
|
23272
23490
|
*
|
|
23273
23491
|
* @param customerId - The ID of the customer to create the schedule for.
|