autumn-js 1.3.28 → 1.3.30
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 +1231 -375
- package/dist/backend/adapters/express.mjs +8 -8
- package/dist/backend/adapters/fetch.js +1231 -375
- package/dist/backend/adapters/fetch.mjs +8 -8
- package/dist/backend/adapters/hono.js +1231 -375
- package/dist/backend/adapters/hono.mjs +8 -8
- package/dist/backend/adapters/index.js +1231 -375
- package/dist/backend/adapters/index.mjs +11 -11
- package/dist/backend/adapters/next.js +1231 -375
- package/dist/backend/adapters/next.mjs +8 -8
- package/dist/backend/{chunk-RPS2BYZQ.mjs → chunk-MRFQEKBR.mjs} +1 -1
- package/dist/backend/{chunk-FMYC62PB.mjs → chunk-N4L4DLFM.mjs} +6 -6
- package/dist/backend/{chunk-QMG7DDIG.mjs → chunk-OWSZPOV7.mjs} +1 -1
- package/dist/backend/{chunk-746ER4JF.mjs → chunk-QRJFDPO4.mjs} +1231 -375
- package/dist/backend/{chunk-Y4KIFJY4.mjs → chunk-SAUYRKWO.mjs} +1 -1
- package/dist/backend/{chunk-BQADVXTY.mjs → chunk-SESSECCJ.mjs} +1 -1
- package/dist/backend/{chunk-MZAOYQT4.mjs → chunk-YFZ7FT2F.mjs} +4 -4
- 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 +1231 -375
- 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 +1231 -375
- 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 +1231 -375
- 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 +1231 -375
- 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 +1231 -375
- package/dist/backend/index.mjs +9 -9
- package/dist/backend/{routeTypes-HV2JbO7a.d.ts → routeTypes-DoJj_pOC.d.ts} +882 -57
- package/dist/backend/{routeTypes-CRMMAwhb.d.mts → routeTypes-fIoCsrzJ.d.mts} +882 -57
- package/dist/better-auth/{chunk-EBLVOVTN.mjs → chunk-FOW6KLFG.mjs} +1231 -375
- package/dist/better-auth/index.js +1231 -375
- package/dist/better-auth/index.mjs +1 -1
- package/dist/better-auth/utils/handleBetterAuthRoute.js +1231 -375
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +1 -1
- package/dist/better-auth/utils/index.js +1231 -375
- package/dist/better-auth/utils/index.mjs +1 -1
- package/dist/react/AutumnContext.d.mts +1 -1
- package/dist/react/AutumnContext.d.ts +1 -1
- package/dist/react/client/AutumnClient.d.mts +1 -1
- package/dist/react/client/AutumnClient.d.ts +1 -1
- package/dist/react/client/IAutumnClient.d.mts +1 -1
- package/dist/react/client/IAutumnClient.d.ts +1 -1
- package/dist/react/client/index.d.mts +1 -1
- package/dist/react/client/index.d.ts +1 -1
- package/dist/react/hooks/index.d.mts +1 -1
- package/dist/react/hooks/index.d.ts +1 -1
- package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +1 -1
- package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +1 -1
- package/dist/react/hooks/internal/useCustomerActions.d.mts +1 -1
- package/dist/react/hooks/internal/useCustomerActions.d.ts +1 -1
- 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 +1 -1
- package/dist/react/hooks/useCustomer.d.ts +1 -1
- 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 +1 -1
- package/dist/react/index.d.ts +1 -1
- package/dist/react/{params-BTjLs-GK.d.mts → params-Yk7M-n-7.d.mts} +28 -21
- package/dist/react/{params-CDDVDhfW.d.ts → params-k6ijFeOE.d.ts} +28 -21
- package/dist/sdk/index.d.mts +1162 -149
- package/dist/sdk/index.d.ts +1162 -149
- package/dist/sdk/index.js +1416 -209
- package/dist/sdk/index.mjs +1285 -210
- package/package.json +2 -2
- package/dist/backend/{chunk-MOHYGUMA.mjs → chunk-IXUCY7AU.mjs} +3 -3
|
@@ -248,7 +248,7 @@ function isAbortError(err) {
|
|
|
248
248
|
}
|
|
249
249
|
|
|
250
250
|
// ../sdk/src/funcs/batch-track.ts
|
|
251
|
-
var
|
|
251
|
+
var z118 = __toESM(require("zod/v4-mini"), 1);
|
|
252
252
|
|
|
253
253
|
// ../sdk/src/lib/base64.ts
|
|
254
254
|
var z = __toESM(require("zod/v4-mini"), 1);
|
|
@@ -3031,7 +3031,8 @@ var AttachIntervalUpsertLicenseRemoveItemEnum1 = {
|
|
|
3031
3031
|
};
|
|
3032
3032
|
var AttachProrationBehavior = {
|
|
3033
3033
|
ProrateImmediately: "prorate_immediately",
|
|
3034
|
-
None: "none"
|
|
3034
|
+
None: "none",
|
|
3035
|
+
BillDifference: "bill_difference"
|
|
3035
3036
|
};
|
|
3036
3037
|
var AttachRedirectMode = {
|
|
3037
3038
|
Always: "always",
|
|
@@ -5655,7 +5656,8 @@ var BillingUpdateIntervalUpsertLicenseRemoveItemEnum1 = {
|
|
|
5655
5656
|
};
|
|
5656
5657
|
var BillingUpdateProrationBehavior = {
|
|
5657
5658
|
ProrateImmediately: "prorate_immediately",
|
|
5658
|
-
None: "none"
|
|
5659
|
+
None: "none",
|
|
5660
|
+
BillDifference: "bill_difference"
|
|
5659
5661
|
};
|
|
5660
5662
|
var BillingUpdateRedirectMode = {
|
|
5661
5663
|
Always: "always",
|
|
@@ -16509,10 +16511,10 @@ var CreateSandboxResponse$inboundSchema = z33.pipe(
|
|
|
16509
16511
|
// ../sdk/src/models/create-schedule-response.ts
|
|
16510
16512
|
var z36 = __toESM(require("zod/v4-mini"), 1);
|
|
16511
16513
|
|
|
16512
|
-
// ../sdk/src/models/phase-start-
|
|
16514
|
+
// ../sdk/src/models/phase-start-add-item-feature-override.ts
|
|
16513
16515
|
var z35 = __toESM(require("zod/v4-mini"), 1);
|
|
16514
16516
|
|
|
16515
|
-
// ../sdk/src/models/unscheduled-plan-upsert-license-
|
|
16517
|
+
// ../sdk/src/models/unscheduled-plan-upsert-license-proration.ts
|
|
16516
16518
|
var z34 = __toESM(require("zod/v4-mini"), 1);
|
|
16517
16519
|
var CreateScheduleFreeTrialDurationType = {
|
|
16518
16520
|
Day: "day",
|
|
@@ -16530,7 +16532,8 @@ var CreateScheduleRedirectMode = {
|
|
|
16530
16532
|
};
|
|
16531
16533
|
var CreateScheduleBillingBehavior = {
|
|
16532
16534
|
ProrateImmediately: "prorate_immediately",
|
|
16533
|
-
None: "none"
|
|
16535
|
+
None: "none",
|
|
16536
|
+
BillDifference: "bill_difference"
|
|
16534
16537
|
};
|
|
16535
16538
|
var PriceUnscheduledPlanInterval = {
|
|
16536
16539
|
OneOff: "one_off",
|
|
@@ -16761,10 +16764,6 @@ var UnscheduledPlanUpsertLicenseOnDecrease = {
|
|
|
16761
16764
|
None: "none",
|
|
16762
16765
|
NoProrations: "no_prorations"
|
|
16763
16766
|
};
|
|
16764
|
-
var UnscheduledPlanUpsertLicenseExpiryDurationType = {
|
|
16765
|
-
Month: "month",
|
|
16766
|
-
Forever: "forever"
|
|
16767
|
-
};
|
|
16768
16767
|
var CreateScheduleFreeTrialDurationType$outboundSchema = z34.enum(CreateScheduleFreeTrialDurationType);
|
|
16769
16768
|
var CreateScheduleOnEnd$outboundSchema = z34.enum(CreateScheduleOnEnd);
|
|
16770
16769
|
var CreateScheduleFreeTrialParams$outboundSchema = z34.pipe(
|
|
@@ -16828,6 +16827,17 @@ var UnscheduledPlanFeatureQuantity$outboundSchema = z34.pipe(
|
|
|
16828
16827
|
});
|
|
16829
16828
|
})
|
|
16830
16829
|
);
|
|
16830
|
+
var UnscheduledPlanLicenseQuantity$outboundSchema = z34.pipe(
|
|
16831
|
+
z34.object({
|
|
16832
|
+
licensePlanId: z34.string(),
|
|
16833
|
+
quantity: z34.int()
|
|
16834
|
+
}),
|
|
16835
|
+
z34.transform((v) => {
|
|
16836
|
+
return remap(v, {
|
|
16837
|
+
licensePlanId: "license_plan_id"
|
|
16838
|
+
});
|
|
16839
|
+
})
|
|
16840
|
+
);
|
|
16831
16841
|
var PriceUnscheduledPlanInterval$outboundSchema = z34.enum(PriceUnscheduledPlanInterval);
|
|
16832
16842
|
var UnscheduledPlanAdditionalCurrency$outboundSchema = z34.object({
|
|
16833
16843
|
currency: z34.string(),
|
|
@@ -17972,11 +17982,12 @@ var UnscheduledPlanUpsertLicenseProration$outboundSchema = z34.pipe(
|
|
|
17972
17982
|
});
|
|
17973
17983
|
})
|
|
17974
17984
|
);
|
|
17975
|
-
var UnscheduledPlanUpsertLicenseExpiryDurationType$outboundSchema = z34.enum(
|
|
17976
|
-
UnscheduledPlanUpsertLicenseExpiryDurationType
|
|
17977
|
-
);
|
|
17978
17985
|
|
|
17979
|
-
// ../sdk/src/models/phase-start-
|
|
17986
|
+
// ../sdk/src/models/phase-start-add-item-feature-override.ts
|
|
17987
|
+
var UnscheduledPlanUpsertLicenseExpiryDurationType = {
|
|
17988
|
+
Month: "month",
|
|
17989
|
+
Forever: "forever"
|
|
17990
|
+
};
|
|
17980
17991
|
var UnscheduledPlanUpsertLicenseDuration = {
|
|
17981
17992
|
Day: "day",
|
|
17982
17993
|
Week: "week",
|
|
@@ -18145,10 +18156,9 @@ var PhaseStartDimensionsToAddItemEnum1 = {
|
|
|
18145
18156
|
var PhaseStartToAddItemEnum = {
|
|
18146
18157
|
Inf: "inf"
|
|
18147
18158
|
};
|
|
18148
|
-
var
|
|
18149
|
-
|
|
18150
|
-
|
|
18151
|
-
};
|
|
18159
|
+
var UnscheduledPlanUpsertLicenseExpiryDurationType$outboundSchema = z35.enum(
|
|
18160
|
+
UnscheduledPlanUpsertLicenseExpiryDurationType
|
|
18161
|
+
);
|
|
18152
18162
|
var UnscheduledPlanUpsertLicenseRollover$outboundSchema = z35.pipe(
|
|
18153
18163
|
z35.object({
|
|
18154
18164
|
max: z35.optional(z35.number()),
|
|
@@ -18584,6 +18594,9 @@ var UnscheduledPlan$outboundSchema = z35.pipe(
|
|
|
18584
18594
|
featureQuantities: z35.optional(
|
|
18585
18595
|
z35.array(UnscheduledPlanFeatureQuantity$outboundSchema)
|
|
18586
18596
|
),
|
|
18597
|
+
licenseQuantities: z35.optional(
|
|
18598
|
+
z35.array(UnscheduledPlanLicenseQuantity$outboundSchema)
|
|
18599
|
+
),
|
|
18587
18600
|
version: z35.optional(z35.number()),
|
|
18588
18601
|
customize: z35.optional(
|
|
18589
18602
|
z35.lazy(() => UnscheduledPlanCustomize$outboundSchema)
|
|
@@ -18595,6 +18608,7 @@ var UnscheduledPlan$outboundSchema = z35.pipe(
|
|
|
18595
18608
|
planId: "plan_id",
|
|
18596
18609
|
entityId: "entity_id",
|
|
18597
18610
|
featureQuantities: "feature_quantities",
|
|
18611
|
+
licenseQuantities: "license_quantities",
|
|
18598
18612
|
subscriptionId: "subscription_id"
|
|
18599
18613
|
});
|
|
18600
18614
|
})
|
|
@@ -18625,6 +18639,17 @@ var PhaseStartFeatureQuantity$outboundSchema = z35.pipe(
|
|
|
18625
18639
|
});
|
|
18626
18640
|
})
|
|
18627
18641
|
);
|
|
18642
|
+
var PhaseStartLicenseQuantity$outboundSchema = z35.pipe(
|
|
18643
|
+
z35.object({
|
|
18644
|
+
licensePlanId: z35.string(),
|
|
18645
|
+
quantity: z35.int()
|
|
18646
|
+
}),
|
|
18647
|
+
z35.transform((v) => {
|
|
18648
|
+
return remap(v, {
|
|
18649
|
+
licensePlanId: "license_plan_id"
|
|
18650
|
+
});
|
|
18651
|
+
})
|
|
18652
|
+
);
|
|
18628
18653
|
var PhaseStartPriceInterval$outboundSchema = z35.enum(PhaseStartPriceInterval);
|
|
18629
18654
|
var PhaseStartAdditionalCurrency$outboundSchema = z35.object({
|
|
18630
18655
|
currency: z35.string(),
|
|
@@ -19400,41 +19425,12 @@ var PhaseStartAddItemFeatureOverride$outboundSchema = z35.pipe(
|
|
|
19400
19425
|
});
|
|
19401
19426
|
})
|
|
19402
19427
|
);
|
|
19403
|
-
var PhaseStartAddItemPlanItem$outboundSchema = z35.pipe(
|
|
19404
|
-
z35.object({
|
|
19405
|
-
thresholdBilling: z35.optional(
|
|
19406
|
-
z35.nullable(
|
|
19407
|
-
z35.lazy(() => PhaseStartAddItemThresholdBilling$outboundSchema)
|
|
19408
|
-
)
|
|
19409
|
-
),
|
|
19410
|
-
featureId: z35.string(),
|
|
19411
|
-
included: z35.optional(z35.number()),
|
|
19412
|
-
unlimited: z35.optional(z35.boolean()),
|
|
19413
|
-
pooled: z35._default(z35.boolean(), false),
|
|
19414
|
-
reset: z35.optional(z35.lazy(() => PhaseStartAddItemReset$outboundSchema)),
|
|
19415
|
-
price: z35.optional(z35.lazy(() => PhaseStartAddItemPrice$outboundSchema)),
|
|
19416
|
-
proration: z35.optional(
|
|
19417
|
-
z35.lazy(() => PhaseStartAddItemProration$outboundSchema)
|
|
19418
|
-
),
|
|
19419
|
-
rollover: z35.optional(
|
|
19420
|
-
z35.lazy(() => PhaseStartAddItemRollover$outboundSchema)
|
|
19421
|
-
),
|
|
19422
|
-
expiry: z35.optional(z35.lazy(() => PhaseStartAddItemExpiry$outboundSchema)),
|
|
19423
|
-
featureOverride: z35.optional(
|
|
19424
|
-
z35.lazy(() => PhaseStartAddItemFeatureOverride$outboundSchema)
|
|
19425
|
-
)
|
|
19426
|
-
}),
|
|
19427
|
-
z35.transform((v) => {
|
|
19428
|
-
return remap(v, {
|
|
19429
|
-
thresholdBilling: "threshold_billing",
|
|
19430
|
-
featureId: "feature_id",
|
|
19431
|
-
featureOverride: "feature_override"
|
|
19432
|
-
});
|
|
19433
|
-
})
|
|
19434
|
-
);
|
|
19435
|
-
var PhaseStartRemoveItemBillingMethod$outboundSchema = z35.enum(PhaseStartRemoveItemBillingMethod);
|
|
19436
19428
|
|
|
19437
19429
|
// ../sdk/src/models/create-schedule-response.ts
|
|
19430
|
+
var PhaseStartRemoveItemBillingMethod = {
|
|
19431
|
+
Prepaid: "prepaid",
|
|
19432
|
+
UsageBased: "usage_based"
|
|
19433
|
+
};
|
|
19438
19434
|
var PhaseStartIntervalRemoveItemEnum2 = {
|
|
19439
19435
|
OneOff: "one_off",
|
|
19440
19436
|
Minute: "minute",
|
|
@@ -19583,6 +19579,33 @@ var CreateScheduleCode = {
|
|
|
19583
19579
|
PaymentFailed: "payment_failed",
|
|
19584
19580
|
PaymentProcessing: "payment_processing"
|
|
19585
19581
|
};
|
|
19582
|
+
var PhaseStartAddItemPlanItem$outboundSchema = z36.pipe(
|
|
19583
|
+
z36.object({
|
|
19584
|
+
thresholdBilling: z36.optional(
|
|
19585
|
+
z36.nullable(PhaseStartAddItemThresholdBilling$outboundSchema)
|
|
19586
|
+
),
|
|
19587
|
+
featureId: z36.string(),
|
|
19588
|
+
included: z36.optional(z36.number()),
|
|
19589
|
+
unlimited: z36.optional(z36.boolean()),
|
|
19590
|
+
pooled: z36._default(z36.boolean(), false),
|
|
19591
|
+
reset: z36.optional(PhaseStartAddItemReset$outboundSchema),
|
|
19592
|
+
price: z36.optional(PhaseStartAddItemPrice$outboundSchema),
|
|
19593
|
+
proration: z36.optional(PhaseStartAddItemProration$outboundSchema),
|
|
19594
|
+
rollover: z36.optional(PhaseStartAddItemRollover$outboundSchema),
|
|
19595
|
+
expiry: z36.optional(PhaseStartAddItemExpiry$outboundSchema),
|
|
19596
|
+
featureOverride: z36.optional(
|
|
19597
|
+
PhaseStartAddItemFeatureOverride$outboundSchema
|
|
19598
|
+
)
|
|
19599
|
+
}),
|
|
19600
|
+
z36.transform((v) => {
|
|
19601
|
+
return remap(v, {
|
|
19602
|
+
thresholdBilling: "threshold_billing",
|
|
19603
|
+
featureId: "feature_id",
|
|
19604
|
+
featureOverride: "feature_override"
|
|
19605
|
+
});
|
|
19606
|
+
})
|
|
19607
|
+
);
|
|
19608
|
+
var PhaseStartRemoveItemBillingMethod$outboundSchema = z36.enum(PhaseStartRemoveItemBillingMethod);
|
|
19586
19609
|
var PhaseStartIntervalRemoveItemEnum2$outboundSchema = z36.enum(PhaseStartIntervalRemoveItemEnum2);
|
|
19587
19610
|
var PhaseStartIntervalRemoveItemEnum1$outboundSchema = z36.enum(PhaseStartIntervalRemoveItemEnum1);
|
|
19588
19611
|
var PhaseStartIntervalUnion$outboundSchema = smartUnion([
|
|
@@ -20263,7 +20286,9 @@ var PhaseStartCustomize$outboundSchema = z36.pipe(
|
|
|
20263
20286
|
z36.object({
|
|
20264
20287
|
price: z36.optional(z36.nullable(PhaseStartBasePrice$outboundSchema)),
|
|
20265
20288
|
items: z36.optional(z36.array(PhaseStartItemPlanItem$outboundSchema)),
|
|
20266
|
-
addItems: z36.optional(
|
|
20289
|
+
addItems: z36.optional(
|
|
20290
|
+
z36.array(z36.lazy(() => PhaseStartAddItemPlanItem$outboundSchema))
|
|
20291
|
+
),
|
|
20267
20292
|
removeItems: z36.optional(
|
|
20268
20293
|
z36.array(z36.lazy(() => PhaseStartPlanItemFilter$outboundSchema))
|
|
20269
20294
|
),
|
|
@@ -20294,6 +20319,9 @@ var CreateSchedulePlan2$outboundSchema = z36.pipe(
|
|
|
20294
20319
|
featureQuantities: z36.optional(
|
|
20295
20320
|
z36.array(PhaseStartFeatureQuantity$outboundSchema)
|
|
20296
20321
|
),
|
|
20322
|
+
licenseQuantities: z36.optional(
|
|
20323
|
+
z36.array(PhaseStartLicenseQuantity$outboundSchema)
|
|
20324
|
+
),
|
|
20297
20325
|
version: z36.optional(z36.number()),
|
|
20298
20326
|
customize: z36.optional(z36.lazy(() => PhaseStartCustomize$outboundSchema)),
|
|
20299
20327
|
subscriptionId: z36.optional(z36.string())
|
|
@@ -20303,6 +20331,7 @@ var CreateSchedulePlan2$outboundSchema = z36.pipe(
|
|
|
20303
20331
|
planId: "plan_id",
|
|
20304
20332
|
entityId: "entity_id",
|
|
20305
20333
|
featureQuantities: "feature_quantities",
|
|
20334
|
+
licenseQuantities: "license_quantities",
|
|
20306
20335
|
subscriptionId: "subscription_id"
|
|
20307
20336
|
});
|
|
20308
20337
|
})
|
|
@@ -20447,7 +20476,7 @@ var CreateWebhookEvent$outboundSchema = z37.enum(CreateWebhookEvent);
|
|
|
20447
20476
|
var CreateWebhookParams$outboundSchema = z37.object({
|
|
20448
20477
|
id: z37.string(),
|
|
20449
20478
|
url: z37.string(),
|
|
20450
|
-
events: z37.array(CreateWebhookEvent$outboundSchema),
|
|
20479
|
+
events: z37.optional(z37.array(CreateWebhookEvent$outboundSchema)),
|
|
20451
20480
|
description: z37.optional(z37.string()),
|
|
20452
20481
|
disabled: z37.optional(z37.boolean())
|
|
20453
20482
|
});
|
|
@@ -34311,7 +34340,8 @@ var MultiAttachOnEnd = {
|
|
|
34311
34340
|
};
|
|
34312
34341
|
var MultiAttachBillingBehavior = {
|
|
34313
34342
|
ProrateImmediately: "prorate_immediately",
|
|
34314
|
-
None: "none"
|
|
34343
|
+
None: "none",
|
|
34344
|
+
BillDifference: "bill_difference"
|
|
34315
34345
|
};
|
|
34316
34346
|
var MultiAttachRedirectMode = {
|
|
34317
34347
|
Always: "always",
|
|
@@ -35059,7 +35089,8 @@ var MultiUpdateCancelAction = {
|
|
|
35059
35089
|
};
|
|
35060
35090
|
var MultiUpdateProrationBehavior = {
|
|
35061
35091
|
ProrateImmediately: "prorate_immediately",
|
|
35062
|
-
None: "none"
|
|
35092
|
+
None: "none",
|
|
35093
|
+
BillDifference: "bill_difference"
|
|
35063
35094
|
};
|
|
35064
35095
|
var MultiUpdateCode = {
|
|
35065
35096
|
ThreedsRequired: "3ds_required",
|
|
@@ -36753,7 +36784,8 @@ var PreviewAttachIntervalUpsertLicenseRemoveItemEnum1 = {
|
|
|
36753
36784
|
};
|
|
36754
36785
|
var PreviewAttachProrationBehavior = {
|
|
36755
36786
|
ProrateImmediately: "prorate_immediately",
|
|
36756
|
-
None: "none"
|
|
36787
|
+
None: "none",
|
|
36788
|
+
BillDifference: "bill_difference"
|
|
36757
36789
|
};
|
|
36758
36790
|
var PreviewAttachRedirectMode = {
|
|
36759
36791
|
Always: "always",
|
|
@@ -37676,7 +37708,8 @@ var PreviewMultiAttachOnEnd = {
|
|
|
37676
37708
|
};
|
|
37677
37709
|
var PreviewMultiAttachBillingBehavior = {
|
|
37678
37710
|
ProrateImmediately: "prorate_immediately",
|
|
37679
|
-
None: "none"
|
|
37711
|
+
None: "none",
|
|
37712
|
+
BillDifference: "bill_difference"
|
|
37680
37713
|
};
|
|
37681
37714
|
var PreviewMultiAttachRedirectMode = {
|
|
37682
37715
|
Always: "always",
|
|
@@ -38676,7 +38709,8 @@ var PreviewMultiUpdateCancelAction = {
|
|
|
38676
38709
|
};
|
|
38677
38710
|
var PreviewMultiUpdateProrationBehavior = {
|
|
38678
38711
|
ProrateImmediately: "prorate_immediately",
|
|
38679
|
-
None: "none"
|
|
38712
|
+
None: "none",
|
|
38713
|
+
BillDifference: "bill_difference"
|
|
38680
38714
|
};
|
|
38681
38715
|
var PreviewMultiUpdateRefundLastPayment$outboundSchema = z87.enum(PreviewMultiUpdateRefundLastPayment);
|
|
38682
38716
|
var PreviewMultiUpdateCancelAction$outboundSchema = z87.enum(PreviewMultiUpdateCancelAction);
|
|
@@ -38975,7 +39009,7 @@ var PreviewSyncWebhooksEvent$outboundSchema = z88.enum(PreviewSyncWebhooksEvent)
|
|
|
38975
39009
|
var PreviewSyncWebhooksWebhookRequest$outboundSchema = z88.object({
|
|
38976
39010
|
id: z88.string(),
|
|
38977
39011
|
url: z88.string(),
|
|
38978
|
-
events: z88.array(PreviewSyncWebhooksEvent$outboundSchema),
|
|
39012
|
+
events: z88.optional(z88.array(PreviewSyncWebhooksEvent$outboundSchema)),
|
|
38979
39013
|
description: z88.optional(z88.string()),
|
|
38980
39014
|
disabled: z88.optional(z88.boolean())
|
|
38981
39015
|
});
|
|
@@ -40621,7 +40655,8 @@ var PreviewUpdateIntervalUpsertLicenseRemoveItemEnum1 = {
|
|
|
40621
40655
|
};
|
|
40622
40656
|
var PreviewUpdateProrationBehavior = {
|
|
40623
40657
|
ProrateImmediately: "prorate_immediately",
|
|
40624
|
-
None: "none"
|
|
40658
|
+
None: "none",
|
|
40659
|
+
BillDifference: "bill_difference"
|
|
40625
40660
|
};
|
|
40626
40661
|
var PreviewUpdateRedirectMode = {
|
|
40627
40662
|
Always: "always",
|
|
@@ -43980,7 +44015,8 @@ var SetupPaymentIntervalUpsertLicenseRemoveItemEnum1 = {
|
|
|
43980
44015
|
};
|
|
43981
44016
|
var SetupPaymentProrationBehavior = {
|
|
43982
44017
|
ProrateImmediately: "prorate_immediately",
|
|
43983
|
-
None: "none"
|
|
44018
|
+
None: "none",
|
|
44019
|
+
BillDifference: "bill_difference"
|
|
43984
44020
|
};
|
|
43985
44021
|
var SetupPaymentUpsertLicenseDuration$outboundSchema = z100.enum(SetupPaymentUpsertLicenseDuration);
|
|
43986
44022
|
var SetupPaymentUpsertLicenseExpiry$outboundSchema = z100.object({
|
|
@@ -44639,7 +44675,7 @@ var SyncWebhooksEvent$outboundSchema = z102.enum(SyncWebhooksEvent);
|
|
|
44639
44675
|
var SyncWebhooksWebhookRequest$outboundSchema = z102.object({
|
|
44640
44676
|
id: z102.string(),
|
|
44641
44677
|
url: z102.string(),
|
|
44642
|
-
events: z102.array(SyncWebhooksEvent$outboundSchema),
|
|
44678
|
+
events: z102.optional(z102.array(SyncWebhooksEvent$outboundSchema)),
|
|
44643
44679
|
description: z102.optional(z102.string()),
|
|
44644
44680
|
disabled: z102.optional(z102.boolean())
|
|
44645
44681
|
});
|
|
@@ -53154,37 +53190,749 @@ var UpdateWebhookWebhook$inboundSchema = z115.pipe(
|
|
|
53154
53190
|
})
|
|
53155
53191
|
);
|
|
53156
53192
|
|
|
53157
|
-
// ../sdk/src/models/
|
|
53193
|
+
// ../sdk/src/models/verify-op.ts
|
|
53158
53194
|
var z116 = __toESM(require("zod/v4-mini"), 1);
|
|
53195
|
+
var CustomerMismatchSeverity12 = {
|
|
53196
|
+
Error: "error",
|
|
53197
|
+
Warning: "warning"
|
|
53198
|
+
};
|
|
53199
|
+
var CustomerMismatchSeverity11 = {
|
|
53200
|
+
Error: "error",
|
|
53201
|
+
Warning: "warning"
|
|
53202
|
+
};
|
|
53203
|
+
var CustomerMismatchSeverity10 = {
|
|
53204
|
+
Error: "error",
|
|
53205
|
+
Warning: "warning"
|
|
53206
|
+
};
|
|
53207
|
+
var CustomerMismatchSeverity9 = {
|
|
53208
|
+
Error: "error",
|
|
53209
|
+
Warning: "warning"
|
|
53210
|
+
};
|
|
53211
|
+
var CustomerMismatchSeverity8 = {
|
|
53212
|
+
Error: "error",
|
|
53213
|
+
Warning: "warning"
|
|
53214
|
+
};
|
|
53215
|
+
var CustomerMismatchSeverity7 = {
|
|
53216
|
+
Error: "error",
|
|
53217
|
+
Warning: "warning"
|
|
53218
|
+
};
|
|
53219
|
+
var CustomerMismatchSeverity6 = {
|
|
53220
|
+
Error: "error",
|
|
53221
|
+
Warning: "warning"
|
|
53222
|
+
};
|
|
53223
|
+
var CustomerMismatchSeverity5 = {
|
|
53224
|
+
Error: "error",
|
|
53225
|
+
Warning: "warning"
|
|
53226
|
+
};
|
|
53227
|
+
var CustomerMismatchReason3 = {
|
|
53228
|
+
MissingSchedule: "missing_schedule",
|
|
53229
|
+
UnexpectedSchedule: "unexpected_schedule",
|
|
53230
|
+
PhaseCountMismatch: "phase_count_mismatch",
|
|
53231
|
+
PhaseStartMismatch: "phase_start_mismatch",
|
|
53232
|
+
BillingCycleAnchorMismatch: "billing_cycle_anchor_mismatch"
|
|
53233
|
+
};
|
|
53234
|
+
var CustomerMismatchSeverity4 = {
|
|
53235
|
+
Error: "error",
|
|
53236
|
+
Warning: "warning"
|
|
53237
|
+
};
|
|
53238
|
+
var CustomerMismatchSeverity3 = {
|
|
53239
|
+
Error: "error",
|
|
53240
|
+
Warning: "warning"
|
|
53241
|
+
};
|
|
53242
|
+
var CustomerMismatchSeverity2 = {
|
|
53243
|
+
Error: "error",
|
|
53244
|
+
Warning: "warning"
|
|
53245
|
+
};
|
|
53246
|
+
var CustomerMismatchReason2 = {
|
|
53247
|
+
Missing: "missing",
|
|
53248
|
+
Unexpected: "unexpected",
|
|
53249
|
+
QuantityMismatch: "quantity_mismatch",
|
|
53250
|
+
PriceMismatch: "price_mismatch"
|
|
53251
|
+
};
|
|
53252
|
+
var CustomerMismatchPriceType = {
|
|
53253
|
+
Usage: "usage",
|
|
53254
|
+
Prepaid: "prepaid",
|
|
53255
|
+
Allocated: "allocated",
|
|
53256
|
+
Fixed: "fixed"
|
|
53257
|
+
};
|
|
53258
|
+
var CustomerMismatchSeverity1 = {
|
|
53259
|
+
Error: "error",
|
|
53260
|
+
Warning: "warning"
|
|
53261
|
+
};
|
|
53262
|
+
var CustomerMismatchReason1 = {
|
|
53263
|
+
Missing: "missing",
|
|
53264
|
+
Unexpected: "unexpected",
|
|
53265
|
+
AmountMismatch: "amount_mismatch"
|
|
53266
|
+
};
|
|
53267
|
+
var VerifyStatus = {
|
|
53268
|
+
Correct: "correct",
|
|
53269
|
+
Mismatched: "mismatched"
|
|
53270
|
+
};
|
|
53271
|
+
var MismatchSeverity12 = {
|
|
53272
|
+
Error: "error",
|
|
53273
|
+
Warning: "warning"
|
|
53274
|
+
};
|
|
53275
|
+
var MismatchSeverity11 = {
|
|
53276
|
+
Error: "error",
|
|
53277
|
+
Warning: "warning"
|
|
53278
|
+
};
|
|
53279
|
+
var MismatchSeverity10 = {
|
|
53280
|
+
Error: "error",
|
|
53281
|
+
Warning: "warning"
|
|
53282
|
+
};
|
|
53283
|
+
var MismatchSeverity9 = {
|
|
53284
|
+
Error: "error",
|
|
53285
|
+
Warning: "warning"
|
|
53286
|
+
};
|
|
53287
|
+
var MismatchSeverity8 = {
|
|
53288
|
+
Error: "error",
|
|
53289
|
+
Warning: "warning"
|
|
53290
|
+
};
|
|
53291
|
+
var MismatchSeverity7 = {
|
|
53292
|
+
Error: "error",
|
|
53293
|
+
Warning: "warning"
|
|
53294
|
+
};
|
|
53295
|
+
var MismatchSeverity6 = {
|
|
53296
|
+
Error: "error",
|
|
53297
|
+
Warning: "warning"
|
|
53298
|
+
};
|
|
53299
|
+
var MismatchSeverity5 = {
|
|
53300
|
+
Error: "error",
|
|
53301
|
+
Warning: "warning"
|
|
53302
|
+
};
|
|
53303
|
+
var MismatchReason3 = {
|
|
53304
|
+
MissingSchedule: "missing_schedule",
|
|
53305
|
+
UnexpectedSchedule: "unexpected_schedule",
|
|
53306
|
+
PhaseCountMismatch: "phase_count_mismatch",
|
|
53307
|
+
PhaseStartMismatch: "phase_start_mismatch",
|
|
53308
|
+
BillingCycleAnchorMismatch: "billing_cycle_anchor_mismatch"
|
|
53309
|
+
};
|
|
53310
|
+
var MismatchSeverity4 = {
|
|
53311
|
+
Error: "error",
|
|
53312
|
+
Warning: "warning"
|
|
53313
|
+
};
|
|
53314
|
+
var MismatchSeverity3 = {
|
|
53315
|
+
Error: "error",
|
|
53316
|
+
Warning: "warning"
|
|
53317
|
+
};
|
|
53318
|
+
var MismatchSeverity2 = {
|
|
53319
|
+
Error: "error",
|
|
53320
|
+
Warning: "warning"
|
|
53321
|
+
};
|
|
53322
|
+
var MismatchReason2 = {
|
|
53323
|
+
Missing: "missing",
|
|
53324
|
+
Unexpected: "unexpected",
|
|
53325
|
+
QuantityMismatch: "quantity_mismatch",
|
|
53326
|
+
PriceMismatch: "price_mismatch"
|
|
53327
|
+
};
|
|
53328
|
+
var MismatchPriceType = {
|
|
53329
|
+
Usage: "usage",
|
|
53330
|
+
Prepaid: "prepaid",
|
|
53331
|
+
Allocated: "allocated",
|
|
53332
|
+
Fixed: "fixed"
|
|
53333
|
+
};
|
|
53334
|
+
var MismatchSeverity1 = {
|
|
53335
|
+
Error: "error",
|
|
53336
|
+
Warning: "warning"
|
|
53337
|
+
};
|
|
53338
|
+
var MismatchReason1 = {
|
|
53339
|
+
Missing: "missing",
|
|
53340
|
+
Unexpected: "unexpected",
|
|
53341
|
+
AmountMismatch: "amount_mismatch"
|
|
53342
|
+
};
|
|
53343
|
+
var VerifyParams$outboundSchema = z116.pipe(
|
|
53344
|
+
z116.object({
|
|
53345
|
+
customerId: z116.string(),
|
|
53346
|
+
subscriptionIds: z116.optional(z116.array(z116.string())),
|
|
53347
|
+
strict: z116.optional(z116.boolean())
|
|
53348
|
+
}),
|
|
53349
|
+
z116.transform((v) => {
|
|
53350
|
+
return remap(v, {
|
|
53351
|
+
customerId: "customer_id",
|
|
53352
|
+
subscriptionIds: "subscription_ids"
|
|
53353
|
+
});
|
|
53354
|
+
})
|
|
53355
|
+
);
|
|
53356
|
+
var CustomerMismatchSeverity12$inboundSchema = inboundSchema(CustomerMismatchSeverity12);
|
|
53357
|
+
var CustomerMismatchOtherCustomer$inboundSchema = z116.object({
|
|
53358
|
+
id: string5(),
|
|
53359
|
+
name: nullable(string5()),
|
|
53360
|
+
email: nullable(string5())
|
|
53361
|
+
});
|
|
53362
|
+
var CustomerMismatch12$inboundSchema = z116.pipe(
|
|
53363
|
+
z116.object({
|
|
53364
|
+
type: literal3("shared_stripe_customer"),
|
|
53365
|
+
message: optional3(string5()),
|
|
53366
|
+
severity: optional3(CustomerMismatchSeverity12$inboundSchema),
|
|
53367
|
+
stripe_customer_id: string5(),
|
|
53368
|
+
other_customer_ids: z116.array(string5()),
|
|
53369
|
+
other_customers: optional3(
|
|
53370
|
+
z116.array(z116.lazy(() => CustomerMismatchOtherCustomer$inboundSchema))
|
|
53371
|
+
)
|
|
53372
|
+
}),
|
|
53373
|
+
z116.transform((v) => {
|
|
53374
|
+
return remap(v, {
|
|
53375
|
+
"stripe_customer_id": "stripeCustomerId",
|
|
53376
|
+
"other_customer_ids": "otherCustomerIds",
|
|
53377
|
+
"other_customers": "otherCustomers"
|
|
53378
|
+
});
|
|
53379
|
+
})
|
|
53380
|
+
);
|
|
53381
|
+
var CustomerMismatchSeverity11$inboundSchema = inboundSchema(CustomerMismatchSeverity11);
|
|
53382
|
+
var CustomerMismatch11$inboundSchema = z116.object({
|
|
53383
|
+
type: literal3("expected_state_error"),
|
|
53384
|
+
message: optional3(string5()),
|
|
53385
|
+
severity: optional3(CustomerMismatchSeverity11$inboundSchema),
|
|
53386
|
+
error: string5()
|
|
53387
|
+
});
|
|
53388
|
+
var CustomerMismatchSeverity10$inboundSchema = inboundSchema(CustomerMismatchSeverity10);
|
|
53389
|
+
var CustomerMismatch10$inboundSchema = z116.object({
|
|
53390
|
+
type: literal3("stale_subscription_link"),
|
|
53391
|
+
message: optional3(string5()),
|
|
53392
|
+
severity: optional3(CustomerMismatchSeverity10$inboundSchema)
|
|
53393
|
+
});
|
|
53394
|
+
var CustomerMismatchSeverity9$inboundSchema = inboundSchema(CustomerMismatchSeverity9);
|
|
53395
|
+
var CustomerMismatch9$inboundSchema = z116.pipe(
|
|
53396
|
+
z116.object({
|
|
53397
|
+
type: literal3("plan_on_ending_subscription"),
|
|
53398
|
+
message: optional3(string5()),
|
|
53399
|
+
severity: optional3(CustomerMismatchSeverity9$inboundSchema),
|
|
53400
|
+
ending_subscription_id: string5()
|
|
53401
|
+
}),
|
|
53402
|
+
z116.transform((v) => {
|
|
53403
|
+
return remap(v, {
|
|
53404
|
+
"ending_subscription_id": "endingSubscriptionId"
|
|
53405
|
+
});
|
|
53406
|
+
})
|
|
53407
|
+
);
|
|
53408
|
+
var CustomerMismatchSeverity8$inboundSchema = inboundSchema(CustomerMismatchSeverity8);
|
|
53409
|
+
var CustomerMismatch8$inboundSchema = z116.object({
|
|
53410
|
+
type: literal3("stripe_sub_not_in_autumn"),
|
|
53411
|
+
message: optional3(string5()),
|
|
53412
|
+
severity: optional3(CustomerMismatchSeverity8$inboundSchema)
|
|
53413
|
+
});
|
|
53414
|
+
var CustomerMismatchSeverity7$inboundSchema = inboundSchema(CustomerMismatchSeverity7);
|
|
53415
|
+
var CustomerMismatch7$inboundSchema = z116.pipe(
|
|
53416
|
+
z116.object({
|
|
53417
|
+
type: literal3("reward_mismatch"),
|
|
53418
|
+
message: optional3(string5()),
|
|
53419
|
+
severity: optional3(CustomerMismatchSeverity7$inboundSchema),
|
|
53420
|
+
missing_reward_ids: z116.array(string5()),
|
|
53421
|
+
unexpected_reward_ids: z116.array(string5())
|
|
53422
|
+
}),
|
|
53423
|
+
z116.transform((v) => {
|
|
53424
|
+
return remap(v, {
|
|
53425
|
+
"missing_reward_ids": "missingRewardIds",
|
|
53426
|
+
"unexpected_reward_ids": "unexpectedRewardIds"
|
|
53427
|
+
});
|
|
53428
|
+
})
|
|
53429
|
+
);
|
|
53430
|
+
var CustomerMismatchSeverity6$inboundSchema = inboundSchema(CustomerMismatchSeverity6);
|
|
53431
|
+
var CustomerMismatch6$inboundSchema = z116.pipe(
|
|
53432
|
+
z116.object({
|
|
53433
|
+
type: literal3("cancel_state_mismatch"),
|
|
53434
|
+
message: optional3(string5()),
|
|
53435
|
+
severity: optional3(CustomerMismatchSeverity6$inboundSchema),
|
|
53436
|
+
expected_canceling: boolean2(),
|
|
53437
|
+
actual_canceling: boolean2()
|
|
53438
|
+
}),
|
|
53439
|
+
z116.transform((v) => {
|
|
53440
|
+
return remap(v, {
|
|
53441
|
+
"expected_canceling": "expectedCanceling",
|
|
53442
|
+
"actual_canceling": "actualCanceling"
|
|
53443
|
+
});
|
|
53444
|
+
})
|
|
53445
|
+
);
|
|
53446
|
+
var CustomerMismatchSeverity5$inboundSchema = inboundSchema(CustomerMismatchSeverity5);
|
|
53447
|
+
var CustomerMismatchReason3$inboundSchema = inboundSchema(CustomerMismatchReason3);
|
|
53448
|
+
var CustomerMismatch5$inboundSchema = z116.pipe(
|
|
53449
|
+
z116.object({
|
|
53450
|
+
type: literal3("schedule_mismatch"),
|
|
53451
|
+
message: optional3(string5()),
|
|
53452
|
+
severity: optional3(CustomerMismatchSeverity5$inboundSchema),
|
|
53453
|
+
reason: CustomerMismatchReason3$inboundSchema,
|
|
53454
|
+
expected_phase_count: optional3(number2()),
|
|
53455
|
+
actual_phase_count: optional3(number2()),
|
|
53456
|
+
actual_phase_starts_at: optional3(z116.array(number2())),
|
|
53457
|
+
phase_starts_at: optional3(number2())
|
|
53458
|
+
}),
|
|
53459
|
+
z116.transform((v) => {
|
|
53460
|
+
return remap(v, {
|
|
53461
|
+
"expected_phase_count": "expectedPhaseCount",
|
|
53462
|
+
"actual_phase_count": "actualPhaseCount",
|
|
53463
|
+
"actual_phase_starts_at": "actualPhaseStartsAt",
|
|
53464
|
+
"phase_starts_at": "phaseStartsAt"
|
|
53465
|
+
});
|
|
53466
|
+
})
|
|
53467
|
+
);
|
|
53468
|
+
var CustomerMismatchSeverity4$inboundSchema = inboundSchema(CustomerMismatchSeverity4);
|
|
53469
|
+
var CustomerMismatch4$inboundSchema = z116.pipe(
|
|
53470
|
+
z116.object({
|
|
53471
|
+
type: literal3("prepaid_price_mismatch"),
|
|
53472
|
+
message: optional3(string5()),
|
|
53473
|
+
severity: optional3(CustomerMismatchSeverity4$inboundSchema),
|
|
53474
|
+
actual_price_id: optional3(string5()),
|
|
53475
|
+
feature_id: string5(),
|
|
53476
|
+
expected_unit_amount: string5(),
|
|
53477
|
+
actual_unit_amount: string5(),
|
|
53478
|
+
phase_starts_at: optional3(number2())
|
|
53479
|
+
}),
|
|
53480
|
+
z116.transform((v) => {
|
|
53481
|
+
return remap(v, {
|
|
53482
|
+
"actual_price_id": "actualPriceId",
|
|
53483
|
+
"feature_id": "featureId",
|
|
53484
|
+
"expected_unit_amount": "expectedUnitAmount",
|
|
53485
|
+
"actual_unit_amount": "actualUnitAmount",
|
|
53486
|
+
"phase_starts_at": "phaseStartsAt"
|
|
53487
|
+
});
|
|
53488
|
+
})
|
|
53489
|
+
);
|
|
53490
|
+
var CustomerMismatchSeverity3$inboundSchema = inboundSchema(CustomerMismatchSeverity3);
|
|
53491
|
+
var CustomerMismatch3$inboundSchema = z116.pipe(
|
|
53492
|
+
z116.object({
|
|
53493
|
+
type: literal3("prepaid_quantity_mismatch"),
|
|
53494
|
+
message: optional3(string5()),
|
|
53495
|
+
severity: optional3(CustomerMismatchSeverity3$inboundSchema),
|
|
53496
|
+
actual_price_id: optional3(string5()),
|
|
53497
|
+
feature_id: string5(),
|
|
53498
|
+
plan_id: optional3(string5()),
|
|
53499
|
+
expected_quantity: number2(),
|
|
53500
|
+
actual_quantity: number2(),
|
|
53501
|
+
phase_starts_at: optional3(number2())
|
|
53502
|
+
}),
|
|
53503
|
+
z116.transform((v) => {
|
|
53504
|
+
return remap(v, {
|
|
53505
|
+
"actual_price_id": "actualPriceId",
|
|
53506
|
+
"feature_id": "featureId",
|
|
53507
|
+
"plan_id": "planId",
|
|
53508
|
+
"expected_quantity": "expectedQuantity",
|
|
53509
|
+
"actual_quantity": "actualQuantity",
|
|
53510
|
+
"phase_starts_at": "phaseStartsAt"
|
|
53511
|
+
});
|
|
53512
|
+
})
|
|
53513
|
+
);
|
|
53514
|
+
var CustomerMismatchSeverity2$inboundSchema = inboundSchema(CustomerMismatchSeverity2);
|
|
53515
|
+
var CustomerMismatchReason2$inboundSchema = inboundSchema(CustomerMismatchReason2);
|
|
53516
|
+
var CustomerMismatchPriceType$inboundSchema = inboundSchema(CustomerMismatchPriceType);
|
|
53517
|
+
var CustomerMismatch2$inboundSchema = z116.pipe(
|
|
53518
|
+
z116.object({
|
|
53519
|
+
type: literal3("item_mismatch"),
|
|
53520
|
+
message: optional3(string5()),
|
|
53521
|
+
severity: optional3(CustomerMismatchSeverity2$inboundSchema),
|
|
53522
|
+
reason: CustomerMismatchReason2$inboundSchema,
|
|
53523
|
+
expected_price_id: optional3(string5()),
|
|
53524
|
+
actual_price_id: optional3(string5()),
|
|
53525
|
+
price_type: optional3(CustomerMismatchPriceType$inboundSchema),
|
|
53526
|
+
feature_id: optional3(string5()),
|
|
53527
|
+
expected_quantity: optional3(number2()),
|
|
53528
|
+
actual_quantity: optional3(number2()),
|
|
53529
|
+
plan_name: optional3(string5()),
|
|
53530
|
+
plan_id: optional3(string5()),
|
|
53531
|
+
price_amount: optional3(number2()),
|
|
53532
|
+
price_interval: optional3(string5()),
|
|
53533
|
+
price_interval_count: optional3(number2()),
|
|
53534
|
+
phase_starts_at: optional3(number2())
|
|
53535
|
+
}),
|
|
53536
|
+
z116.transform((v) => {
|
|
53537
|
+
return remap(v, {
|
|
53538
|
+
"expected_price_id": "expectedPriceId",
|
|
53539
|
+
"actual_price_id": "actualPriceId",
|
|
53540
|
+
"price_type": "priceType",
|
|
53541
|
+
"feature_id": "featureId",
|
|
53542
|
+
"expected_quantity": "expectedQuantity",
|
|
53543
|
+
"actual_quantity": "actualQuantity",
|
|
53544
|
+
"plan_name": "planName",
|
|
53545
|
+
"plan_id": "planId",
|
|
53546
|
+
"price_amount": "priceAmount",
|
|
53547
|
+
"price_interval": "priceInterval",
|
|
53548
|
+
"price_interval_count": "priceIntervalCount",
|
|
53549
|
+
"phase_starts_at": "phaseStartsAt"
|
|
53550
|
+
});
|
|
53551
|
+
})
|
|
53552
|
+
);
|
|
53553
|
+
var CustomerMismatchSeverity1$inboundSchema = inboundSchema(CustomerMismatchSeverity1);
|
|
53554
|
+
var CustomerMismatchReason1$inboundSchema = inboundSchema(CustomerMismatchReason1);
|
|
53555
|
+
var CustomerMismatch1$inboundSchema = z116.pipe(
|
|
53556
|
+
z116.object({
|
|
53557
|
+
type: literal3("base_price_mismatch"),
|
|
53558
|
+
message: optional3(string5()),
|
|
53559
|
+
severity: optional3(CustomerMismatchSeverity1$inboundSchema),
|
|
53560
|
+
reason: CustomerMismatchReason1$inboundSchema,
|
|
53561
|
+
expected_price_id: optional3(string5()),
|
|
53562
|
+
actual_price_id: optional3(string5()),
|
|
53563
|
+
expected_amount: optional3(string5()),
|
|
53564
|
+
actual_amount: optional3(string5()),
|
|
53565
|
+
plan_name: optional3(string5()),
|
|
53566
|
+
plan_id: optional3(string5()),
|
|
53567
|
+
price_amount: optional3(number2()),
|
|
53568
|
+
price_interval: optional3(string5()),
|
|
53569
|
+
price_interval_count: optional3(number2()),
|
|
53570
|
+
expected_quantity: optional3(number2()),
|
|
53571
|
+
phase_starts_at: optional3(number2())
|
|
53572
|
+
}),
|
|
53573
|
+
z116.transform((v) => {
|
|
53574
|
+
return remap(v, {
|
|
53575
|
+
"expected_price_id": "expectedPriceId",
|
|
53576
|
+
"actual_price_id": "actualPriceId",
|
|
53577
|
+
"expected_amount": "expectedAmount",
|
|
53578
|
+
"actual_amount": "actualAmount",
|
|
53579
|
+
"plan_name": "planName",
|
|
53580
|
+
"plan_id": "planId",
|
|
53581
|
+
"price_amount": "priceAmount",
|
|
53582
|
+
"price_interval": "priceInterval",
|
|
53583
|
+
"price_interval_count": "priceIntervalCount",
|
|
53584
|
+
"expected_quantity": "expectedQuantity",
|
|
53585
|
+
"phase_starts_at": "phaseStartsAt"
|
|
53586
|
+
});
|
|
53587
|
+
})
|
|
53588
|
+
);
|
|
53589
|
+
var CustomerMismatchUnion$inboundSchema = discriminatedUnion("type", {
|
|
53590
|
+
base_price_mismatch: z116.lazy(() => CustomerMismatch1$inboundSchema),
|
|
53591
|
+
item_mismatch: z116.lazy(() => CustomerMismatch2$inboundSchema),
|
|
53592
|
+
prepaid_quantity_mismatch: z116.lazy(() => CustomerMismatch3$inboundSchema),
|
|
53593
|
+
prepaid_price_mismatch: z116.lazy(() => CustomerMismatch4$inboundSchema),
|
|
53594
|
+
schedule_mismatch: z116.lazy(() => CustomerMismatch5$inboundSchema),
|
|
53595
|
+
cancel_state_mismatch: z116.lazy(() => CustomerMismatch6$inboundSchema),
|
|
53596
|
+
reward_mismatch: z116.lazy(() => CustomerMismatch7$inboundSchema),
|
|
53597
|
+
stripe_sub_not_in_autumn: z116.lazy(() => CustomerMismatch8$inboundSchema),
|
|
53598
|
+
plan_on_ending_subscription: z116.lazy(() => CustomerMismatch9$inboundSchema),
|
|
53599
|
+
stale_subscription_link: z116.lazy(() => CustomerMismatch10$inboundSchema),
|
|
53600
|
+
expected_state_error: z116.lazy(() => CustomerMismatch11$inboundSchema),
|
|
53601
|
+
shared_stripe_customer: z116.lazy(() => CustomerMismatch12$inboundSchema)
|
|
53602
|
+
});
|
|
53603
|
+
var VerifyStatus$inboundSchema = inboundSchema(VerifyStatus);
|
|
53604
|
+
var MismatchSeverity12$inboundSchema = inboundSchema(MismatchSeverity12);
|
|
53605
|
+
var MismatchOtherCustomer$inboundSchema = z116.object({
|
|
53606
|
+
id: string5(),
|
|
53607
|
+
name: nullable(string5()),
|
|
53608
|
+
email: nullable(string5())
|
|
53609
|
+
});
|
|
53610
|
+
var Mismatch12$inboundSchema = z116.pipe(
|
|
53611
|
+
z116.object({
|
|
53612
|
+
type: literal3("shared_stripe_customer"),
|
|
53613
|
+
message: optional3(string5()),
|
|
53614
|
+
severity: optional3(MismatchSeverity12$inboundSchema),
|
|
53615
|
+
stripe_customer_id: string5(),
|
|
53616
|
+
other_customer_ids: z116.array(string5()),
|
|
53617
|
+
other_customers: optional3(
|
|
53618
|
+
z116.array(z116.lazy(() => MismatchOtherCustomer$inboundSchema))
|
|
53619
|
+
)
|
|
53620
|
+
}),
|
|
53621
|
+
z116.transform((v) => {
|
|
53622
|
+
return remap(v, {
|
|
53623
|
+
"stripe_customer_id": "stripeCustomerId",
|
|
53624
|
+
"other_customer_ids": "otherCustomerIds",
|
|
53625
|
+
"other_customers": "otherCustomers"
|
|
53626
|
+
});
|
|
53627
|
+
})
|
|
53628
|
+
);
|
|
53629
|
+
var MismatchSeverity11$inboundSchema = inboundSchema(MismatchSeverity11);
|
|
53630
|
+
var Mismatch11$inboundSchema = z116.object({
|
|
53631
|
+
type: literal3("expected_state_error"),
|
|
53632
|
+
message: optional3(string5()),
|
|
53633
|
+
severity: optional3(MismatchSeverity11$inboundSchema),
|
|
53634
|
+
error: string5()
|
|
53635
|
+
});
|
|
53636
|
+
var MismatchSeverity10$inboundSchema = inboundSchema(MismatchSeverity10);
|
|
53637
|
+
var Mismatch10$inboundSchema = z116.object({
|
|
53638
|
+
type: literal3("stale_subscription_link"),
|
|
53639
|
+
message: optional3(string5()),
|
|
53640
|
+
severity: optional3(MismatchSeverity10$inboundSchema)
|
|
53641
|
+
});
|
|
53642
|
+
var MismatchSeverity9$inboundSchema = inboundSchema(MismatchSeverity9);
|
|
53643
|
+
var Mismatch9$inboundSchema = z116.pipe(
|
|
53644
|
+
z116.object({
|
|
53645
|
+
type: literal3("plan_on_ending_subscription"),
|
|
53646
|
+
message: optional3(string5()),
|
|
53647
|
+
severity: optional3(MismatchSeverity9$inboundSchema),
|
|
53648
|
+
ending_subscription_id: string5()
|
|
53649
|
+
}),
|
|
53650
|
+
z116.transform((v) => {
|
|
53651
|
+
return remap(v, {
|
|
53652
|
+
"ending_subscription_id": "endingSubscriptionId"
|
|
53653
|
+
});
|
|
53654
|
+
})
|
|
53655
|
+
);
|
|
53656
|
+
var MismatchSeverity8$inboundSchema = inboundSchema(MismatchSeverity8);
|
|
53657
|
+
var Mismatch8$inboundSchema = z116.object({
|
|
53658
|
+
type: literal3("stripe_sub_not_in_autumn"),
|
|
53659
|
+
message: optional3(string5()),
|
|
53660
|
+
severity: optional3(MismatchSeverity8$inboundSchema)
|
|
53661
|
+
});
|
|
53662
|
+
var MismatchSeverity7$inboundSchema = inboundSchema(MismatchSeverity7);
|
|
53663
|
+
var Mismatch7$inboundSchema = z116.pipe(
|
|
53664
|
+
z116.object({
|
|
53665
|
+
type: literal3("reward_mismatch"),
|
|
53666
|
+
message: optional3(string5()),
|
|
53667
|
+
severity: optional3(MismatchSeverity7$inboundSchema),
|
|
53668
|
+
missing_reward_ids: z116.array(string5()),
|
|
53669
|
+
unexpected_reward_ids: z116.array(string5())
|
|
53670
|
+
}),
|
|
53671
|
+
z116.transform((v) => {
|
|
53672
|
+
return remap(v, {
|
|
53673
|
+
"missing_reward_ids": "missingRewardIds",
|
|
53674
|
+
"unexpected_reward_ids": "unexpectedRewardIds"
|
|
53675
|
+
});
|
|
53676
|
+
})
|
|
53677
|
+
);
|
|
53678
|
+
var MismatchSeverity6$inboundSchema = inboundSchema(MismatchSeverity6);
|
|
53679
|
+
var Mismatch6$inboundSchema = z116.pipe(
|
|
53680
|
+
z116.object({
|
|
53681
|
+
type: literal3("cancel_state_mismatch"),
|
|
53682
|
+
message: optional3(string5()),
|
|
53683
|
+
severity: optional3(MismatchSeverity6$inboundSchema),
|
|
53684
|
+
expected_canceling: boolean2(),
|
|
53685
|
+
actual_canceling: boolean2()
|
|
53686
|
+
}),
|
|
53687
|
+
z116.transform((v) => {
|
|
53688
|
+
return remap(v, {
|
|
53689
|
+
"expected_canceling": "expectedCanceling",
|
|
53690
|
+
"actual_canceling": "actualCanceling"
|
|
53691
|
+
});
|
|
53692
|
+
})
|
|
53693
|
+
);
|
|
53694
|
+
var MismatchSeverity5$inboundSchema = inboundSchema(MismatchSeverity5);
|
|
53695
|
+
var MismatchReason3$inboundSchema = inboundSchema(MismatchReason3);
|
|
53696
|
+
var Mismatch5$inboundSchema = z116.pipe(
|
|
53697
|
+
z116.object({
|
|
53698
|
+
type: literal3("schedule_mismatch"),
|
|
53699
|
+
message: optional3(string5()),
|
|
53700
|
+
severity: optional3(MismatchSeverity5$inboundSchema),
|
|
53701
|
+
reason: MismatchReason3$inboundSchema,
|
|
53702
|
+
expected_phase_count: optional3(number2()),
|
|
53703
|
+
actual_phase_count: optional3(number2()),
|
|
53704
|
+
actual_phase_starts_at: optional3(z116.array(number2())),
|
|
53705
|
+
phase_starts_at: optional3(number2())
|
|
53706
|
+
}),
|
|
53707
|
+
z116.transform((v) => {
|
|
53708
|
+
return remap(v, {
|
|
53709
|
+
"expected_phase_count": "expectedPhaseCount",
|
|
53710
|
+
"actual_phase_count": "actualPhaseCount",
|
|
53711
|
+
"actual_phase_starts_at": "actualPhaseStartsAt",
|
|
53712
|
+
"phase_starts_at": "phaseStartsAt"
|
|
53713
|
+
});
|
|
53714
|
+
})
|
|
53715
|
+
);
|
|
53716
|
+
var MismatchSeverity4$inboundSchema = inboundSchema(MismatchSeverity4);
|
|
53717
|
+
var Mismatch4$inboundSchema = z116.pipe(
|
|
53718
|
+
z116.object({
|
|
53719
|
+
type: literal3("prepaid_price_mismatch"),
|
|
53720
|
+
message: optional3(string5()),
|
|
53721
|
+
severity: optional3(MismatchSeverity4$inboundSchema),
|
|
53722
|
+
actual_price_id: optional3(string5()),
|
|
53723
|
+
feature_id: string5(),
|
|
53724
|
+
expected_unit_amount: string5(),
|
|
53725
|
+
actual_unit_amount: string5(),
|
|
53726
|
+
phase_starts_at: optional3(number2())
|
|
53727
|
+
}),
|
|
53728
|
+
z116.transform((v) => {
|
|
53729
|
+
return remap(v, {
|
|
53730
|
+
"actual_price_id": "actualPriceId",
|
|
53731
|
+
"feature_id": "featureId",
|
|
53732
|
+
"expected_unit_amount": "expectedUnitAmount",
|
|
53733
|
+
"actual_unit_amount": "actualUnitAmount",
|
|
53734
|
+
"phase_starts_at": "phaseStartsAt"
|
|
53735
|
+
});
|
|
53736
|
+
})
|
|
53737
|
+
);
|
|
53738
|
+
var MismatchSeverity3$inboundSchema = inboundSchema(MismatchSeverity3);
|
|
53739
|
+
var Mismatch3$inboundSchema = z116.pipe(
|
|
53740
|
+
z116.object({
|
|
53741
|
+
type: literal3("prepaid_quantity_mismatch"),
|
|
53742
|
+
message: optional3(string5()),
|
|
53743
|
+
severity: optional3(MismatchSeverity3$inboundSchema),
|
|
53744
|
+
actual_price_id: optional3(string5()),
|
|
53745
|
+
feature_id: string5(),
|
|
53746
|
+
plan_id: optional3(string5()),
|
|
53747
|
+
expected_quantity: number2(),
|
|
53748
|
+
actual_quantity: number2(),
|
|
53749
|
+
phase_starts_at: optional3(number2())
|
|
53750
|
+
}),
|
|
53751
|
+
z116.transform((v) => {
|
|
53752
|
+
return remap(v, {
|
|
53753
|
+
"actual_price_id": "actualPriceId",
|
|
53754
|
+
"feature_id": "featureId",
|
|
53755
|
+
"plan_id": "planId",
|
|
53756
|
+
"expected_quantity": "expectedQuantity",
|
|
53757
|
+
"actual_quantity": "actualQuantity",
|
|
53758
|
+
"phase_starts_at": "phaseStartsAt"
|
|
53759
|
+
});
|
|
53760
|
+
})
|
|
53761
|
+
);
|
|
53762
|
+
var MismatchSeverity2$inboundSchema = inboundSchema(MismatchSeverity2);
|
|
53763
|
+
var MismatchReason2$inboundSchema = inboundSchema(MismatchReason2);
|
|
53764
|
+
var MismatchPriceType$inboundSchema = inboundSchema(MismatchPriceType);
|
|
53765
|
+
var Mismatch2$inboundSchema = z116.pipe(
|
|
53766
|
+
z116.object({
|
|
53767
|
+
type: literal3("item_mismatch"),
|
|
53768
|
+
message: optional3(string5()),
|
|
53769
|
+
severity: optional3(MismatchSeverity2$inboundSchema),
|
|
53770
|
+
reason: MismatchReason2$inboundSchema,
|
|
53771
|
+
expected_price_id: optional3(string5()),
|
|
53772
|
+
actual_price_id: optional3(string5()),
|
|
53773
|
+
price_type: optional3(MismatchPriceType$inboundSchema),
|
|
53774
|
+
feature_id: optional3(string5()),
|
|
53775
|
+
expected_quantity: optional3(number2()),
|
|
53776
|
+
actual_quantity: optional3(number2()),
|
|
53777
|
+
plan_name: optional3(string5()),
|
|
53778
|
+
plan_id: optional3(string5()),
|
|
53779
|
+
price_amount: optional3(number2()),
|
|
53780
|
+
price_interval: optional3(string5()),
|
|
53781
|
+
price_interval_count: optional3(number2()),
|
|
53782
|
+
phase_starts_at: optional3(number2())
|
|
53783
|
+
}),
|
|
53784
|
+
z116.transform((v) => {
|
|
53785
|
+
return remap(v, {
|
|
53786
|
+
"expected_price_id": "expectedPriceId",
|
|
53787
|
+
"actual_price_id": "actualPriceId",
|
|
53788
|
+
"price_type": "priceType",
|
|
53789
|
+
"feature_id": "featureId",
|
|
53790
|
+
"expected_quantity": "expectedQuantity",
|
|
53791
|
+
"actual_quantity": "actualQuantity",
|
|
53792
|
+
"plan_name": "planName",
|
|
53793
|
+
"plan_id": "planId",
|
|
53794
|
+
"price_amount": "priceAmount",
|
|
53795
|
+
"price_interval": "priceInterval",
|
|
53796
|
+
"price_interval_count": "priceIntervalCount",
|
|
53797
|
+
"phase_starts_at": "phaseStartsAt"
|
|
53798
|
+
});
|
|
53799
|
+
})
|
|
53800
|
+
);
|
|
53801
|
+
var MismatchSeverity1$inboundSchema = inboundSchema(MismatchSeverity1);
|
|
53802
|
+
var MismatchReason1$inboundSchema = inboundSchema(MismatchReason1);
|
|
53803
|
+
var Mismatch1$inboundSchema = z116.pipe(
|
|
53804
|
+
z116.object({
|
|
53805
|
+
type: literal3("base_price_mismatch"),
|
|
53806
|
+
message: optional3(string5()),
|
|
53807
|
+
severity: optional3(MismatchSeverity1$inboundSchema),
|
|
53808
|
+
reason: MismatchReason1$inboundSchema,
|
|
53809
|
+
expected_price_id: optional3(string5()),
|
|
53810
|
+
actual_price_id: optional3(string5()),
|
|
53811
|
+
expected_amount: optional3(string5()),
|
|
53812
|
+
actual_amount: optional3(string5()),
|
|
53813
|
+
plan_name: optional3(string5()),
|
|
53814
|
+
plan_id: optional3(string5()),
|
|
53815
|
+
price_amount: optional3(number2()),
|
|
53816
|
+
price_interval: optional3(string5()),
|
|
53817
|
+
price_interval_count: optional3(number2()),
|
|
53818
|
+
expected_quantity: optional3(number2()),
|
|
53819
|
+
phase_starts_at: optional3(number2())
|
|
53820
|
+
}),
|
|
53821
|
+
z116.transform((v) => {
|
|
53822
|
+
return remap(v, {
|
|
53823
|
+
"expected_price_id": "expectedPriceId",
|
|
53824
|
+
"actual_price_id": "actualPriceId",
|
|
53825
|
+
"expected_amount": "expectedAmount",
|
|
53826
|
+
"actual_amount": "actualAmount",
|
|
53827
|
+
"plan_name": "planName",
|
|
53828
|
+
"plan_id": "planId",
|
|
53829
|
+
"price_amount": "priceAmount",
|
|
53830
|
+
"price_interval": "priceInterval",
|
|
53831
|
+
"price_interval_count": "priceIntervalCount",
|
|
53832
|
+
"expected_quantity": "expectedQuantity",
|
|
53833
|
+
"phase_starts_at": "phaseStartsAt"
|
|
53834
|
+
});
|
|
53835
|
+
})
|
|
53836
|
+
);
|
|
53837
|
+
var MismatchUnion$inboundSchema = discriminatedUnion("type", {
|
|
53838
|
+
base_price_mismatch: z116.lazy(() => Mismatch1$inboundSchema),
|
|
53839
|
+
item_mismatch: z116.lazy(() => Mismatch2$inboundSchema),
|
|
53840
|
+
prepaid_quantity_mismatch: z116.lazy(() => Mismatch3$inboundSchema),
|
|
53841
|
+
prepaid_price_mismatch: z116.lazy(() => Mismatch4$inboundSchema),
|
|
53842
|
+
schedule_mismatch: z116.lazy(() => Mismatch5$inboundSchema),
|
|
53843
|
+
cancel_state_mismatch: z116.lazy(() => Mismatch6$inboundSchema),
|
|
53844
|
+
reward_mismatch: z116.lazy(() => Mismatch7$inboundSchema),
|
|
53845
|
+
stripe_sub_not_in_autumn: z116.lazy(() => Mismatch8$inboundSchema),
|
|
53846
|
+
plan_on_ending_subscription: z116.lazy(() => Mismatch9$inboundSchema),
|
|
53847
|
+
stale_subscription_link: z116.lazy(() => Mismatch10$inboundSchema),
|
|
53848
|
+
expected_state_error: z116.lazy(() => Mismatch11$inboundSchema),
|
|
53849
|
+
shared_stripe_customer: z116.lazy(() => Mismatch12$inboundSchema)
|
|
53850
|
+
});
|
|
53851
|
+
var VerifySubscription$inboundSchema = z116.pipe(
|
|
53852
|
+
z116.object({
|
|
53853
|
+
stripe_subscription_id: string5(),
|
|
53854
|
+
status: VerifyStatus$inboundSchema,
|
|
53855
|
+
mismatches: z116.array(discriminatedUnion("type", {
|
|
53856
|
+
base_price_mismatch: z116.lazy(() => Mismatch1$inboundSchema),
|
|
53857
|
+
item_mismatch: z116.lazy(() => Mismatch2$inboundSchema),
|
|
53858
|
+
prepaid_quantity_mismatch: z116.lazy(() => Mismatch3$inboundSchema),
|
|
53859
|
+
prepaid_price_mismatch: z116.lazy(() => Mismatch4$inboundSchema),
|
|
53860
|
+
schedule_mismatch: z116.lazy(() => Mismatch5$inboundSchema),
|
|
53861
|
+
cancel_state_mismatch: z116.lazy(() => Mismatch6$inboundSchema),
|
|
53862
|
+
reward_mismatch: z116.lazy(() => Mismatch7$inboundSchema),
|
|
53863
|
+
stripe_sub_not_in_autumn: z116.lazy(() => Mismatch8$inboundSchema),
|
|
53864
|
+
plan_on_ending_subscription: z116.lazy(() => Mismatch9$inboundSchema),
|
|
53865
|
+
stale_subscription_link: z116.lazy(() => Mismatch10$inboundSchema),
|
|
53866
|
+
expected_state_error: z116.lazy(() => Mismatch11$inboundSchema),
|
|
53867
|
+
shared_stripe_customer: z116.lazy(() => Mismatch12$inboundSchema)
|
|
53868
|
+
}))
|
|
53869
|
+
}),
|
|
53870
|
+
z116.transform((v) => {
|
|
53871
|
+
return remap(v, {
|
|
53872
|
+
"stripe_subscription_id": "stripeSubscriptionId"
|
|
53873
|
+
});
|
|
53874
|
+
})
|
|
53875
|
+
);
|
|
53876
|
+
var VerifyResponse$inboundSchema = z116.pipe(
|
|
53877
|
+
z116.object({
|
|
53878
|
+
customer_id: string5(),
|
|
53879
|
+
customer_mismatches: z116.array(discriminatedUnion("type", {
|
|
53880
|
+
base_price_mismatch: z116.lazy(() => CustomerMismatch1$inboundSchema),
|
|
53881
|
+
item_mismatch: z116.lazy(() => CustomerMismatch2$inboundSchema),
|
|
53882
|
+
prepaid_quantity_mismatch: z116.lazy(() => CustomerMismatch3$inboundSchema),
|
|
53883
|
+
prepaid_price_mismatch: z116.lazy(() => CustomerMismatch4$inboundSchema),
|
|
53884
|
+
schedule_mismatch: z116.lazy(() => CustomerMismatch5$inboundSchema),
|
|
53885
|
+
cancel_state_mismatch: z116.lazy(() => CustomerMismatch6$inboundSchema),
|
|
53886
|
+
reward_mismatch: z116.lazy(() => CustomerMismatch7$inboundSchema),
|
|
53887
|
+
stripe_sub_not_in_autumn: z116.lazy(() => CustomerMismatch8$inboundSchema),
|
|
53888
|
+
plan_on_ending_subscription: z116.lazy(
|
|
53889
|
+
() => CustomerMismatch9$inboundSchema
|
|
53890
|
+
),
|
|
53891
|
+
stale_subscription_link: z116.lazy(() => CustomerMismatch10$inboundSchema),
|
|
53892
|
+
expected_state_error: z116.lazy(() => CustomerMismatch11$inboundSchema),
|
|
53893
|
+
shared_stripe_customer: z116.lazy(() => CustomerMismatch12$inboundSchema)
|
|
53894
|
+
})),
|
|
53895
|
+
subscriptions: z116.array(z116.lazy(() => VerifySubscription$inboundSchema))
|
|
53896
|
+
}),
|
|
53897
|
+
z116.transform((v) => {
|
|
53898
|
+
return remap(v, {
|
|
53899
|
+
"customer_id": "customerId",
|
|
53900
|
+
"customer_mismatches": "customerMismatches"
|
|
53901
|
+
});
|
|
53902
|
+
})
|
|
53903
|
+
);
|
|
53904
|
+
|
|
53905
|
+
// ../sdk/src/models/void-invoice-op.ts
|
|
53906
|
+
var z117 = __toESM(require("zod/v4-mini"), 1);
|
|
53159
53907
|
var VoidInvoiceProcessorType = {
|
|
53160
53908
|
Stripe: "stripe",
|
|
53161
53909
|
Revenuecat: "revenuecat"
|
|
53162
53910
|
};
|
|
53163
|
-
var VoidInvoiceParams$outboundSchema =
|
|
53164
|
-
|
|
53165
|
-
invoiceId:
|
|
53911
|
+
var VoidInvoiceParams$outboundSchema = z117.pipe(
|
|
53912
|
+
z117.object({
|
|
53913
|
+
invoiceId: z117.string()
|
|
53166
53914
|
}),
|
|
53167
|
-
|
|
53915
|
+
z117.transform((v) => {
|
|
53168
53916
|
return remap(v, {
|
|
53169
53917
|
invoiceId: "invoice_id"
|
|
53170
53918
|
});
|
|
53171
53919
|
})
|
|
53172
53920
|
);
|
|
53173
53921
|
var VoidInvoiceProcessorType$inboundSchema = inboundSchema(VoidInvoiceProcessorType);
|
|
53174
|
-
var VoidInvoiceEntity$inboundSchema =
|
|
53175
|
-
|
|
53922
|
+
var VoidInvoiceEntity$inboundSchema = z117.pipe(
|
|
53923
|
+
z117.object({
|
|
53176
53924
|
entity_id: string5(),
|
|
53177
53925
|
quantity: nullable(number2()),
|
|
53178
53926
|
amount: number2()
|
|
53179
53927
|
}),
|
|
53180
|
-
|
|
53928
|
+
z117.transform((v) => {
|
|
53181
53929
|
return remap(v, {
|
|
53182
53930
|
"entity_id": "entityId"
|
|
53183
53931
|
});
|
|
53184
53932
|
})
|
|
53185
53933
|
);
|
|
53186
|
-
var VoidInvoiceItem$inboundSchema =
|
|
53187
|
-
|
|
53934
|
+
var VoidInvoiceItem$inboundSchema = z117.pipe(
|
|
53935
|
+
z117.object({
|
|
53188
53936
|
id: string5(),
|
|
53189
53937
|
description: string5(),
|
|
53190
53938
|
period_start: nullable(number2()),
|
|
@@ -53194,9 +53942,9 @@ var VoidInvoiceItem$inboundSchema = z116.pipe(
|
|
|
53194
53942
|
feature_name: nullable(string5()),
|
|
53195
53943
|
quantity: nullable(number2()),
|
|
53196
53944
|
amount: number2(),
|
|
53197
|
-
entities:
|
|
53945
|
+
entities: z117.array(z117.lazy(() => VoidInvoiceEntity$inboundSchema))
|
|
53198
53946
|
}),
|
|
53199
|
-
|
|
53947
|
+
z117.transform((v) => {
|
|
53200
53948
|
return remap(v, {
|
|
53201
53949
|
"period_start": "periodStart",
|
|
53202
53950
|
"period_end": "periodEnd",
|
|
@@ -53206,11 +53954,11 @@ var VoidInvoiceItem$inboundSchema = z116.pipe(
|
|
|
53206
53954
|
});
|
|
53207
53955
|
})
|
|
53208
53956
|
);
|
|
53209
|
-
var VoidInvoiceInvoice$inboundSchema =
|
|
53210
|
-
|
|
53211
|
-
plan_ids:
|
|
53957
|
+
var VoidInvoiceInvoice$inboundSchema = z117.pipe(
|
|
53958
|
+
z117.object({
|
|
53959
|
+
plan_ids: z117.array(string5()),
|
|
53212
53960
|
stripe_id: string5(),
|
|
53213
|
-
processor_type:
|
|
53961
|
+
processor_type: z117._default(
|
|
53214
53962
|
VoidInvoiceProcessorType$inboundSchema,
|
|
53215
53963
|
"stripe"
|
|
53216
53964
|
),
|
|
@@ -53218,15 +53966,15 @@ var VoidInvoiceInvoice$inboundSchema = z116.pipe(
|
|
|
53218
53966
|
total: number2(),
|
|
53219
53967
|
currency: string5(),
|
|
53220
53968
|
created_at: number2(),
|
|
53221
|
-
hosted_invoice_url:
|
|
53969
|
+
hosted_invoice_url: z117.optional(z117.nullable(string5())),
|
|
53222
53970
|
id: string5(),
|
|
53223
53971
|
customer_id: nullable(string5()),
|
|
53224
53972
|
entity_id: nullable(string5()),
|
|
53225
53973
|
amount_paid: nullable(number2()),
|
|
53226
53974
|
refunded_amount: number2(),
|
|
53227
|
-
items: optional3(
|
|
53975
|
+
items: optional3(z117.array(z117.lazy(() => VoidInvoiceItem$inboundSchema)))
|
|
53228
53976
|
}),
|
|
53229
|
-
|
|
53977
|
+
z117.transform((v) => {
|
|
53230
53978
|
return remap(v, {
|
|
53231
53979
|
"plan_ids": "planIds",
|
|
53232
53980
|
"stripe_id": "stripeId",
|
|
@@ -53240,8 +53988,8 @@ var VoidInvoiceInvoice$inboundSchema = z116.pipe(
|
|
|
53240
53988
|
});
|
|
53241
53989
|
})
|
|
53242
53990
|
);
|
|
53243
|
-
var VoidInvoiceResponse$inboundSchema =
|
|
53244
|
-
invoice:
|
|
53991
|
+
var VoidInvoiceResponse$inboundSchema = z117.object({
|
|
53992
|
+
invoice: z117.lazy(() => VoidInvoiceInvoice$inboundSchema)
|
|
53245
53993
|
});
|
|
53246
53994
|
|
|
53247
53995
|
// ../sdk/src/types/async.ts
|
|
@@ -53281,7 +54029,7 @@ function batchTrack(client, request, options) {
|
|
|
53281
54029
|
async function $do(client, request, options) {
|
|
53282
54030
|
const parsed = safeParse(
|
|
53283
54031
|
request,
|
|
53284
|
-
(value) =>
|
|
54032
|
+
(value) => z118.parse(z118.array(RequestBody$outboundSchema), value),
|
|
53285
54033
|
"Input validation failed"
|
|
53286
54034
|
);
|
|
53287
54035
|
if (!parsed.ok) {
|
|
@@ -53349,7 +54097,7 @@ async function $do(client, request, options) {
|
|
|
53349
54097
|
}
|
|
53350
54098
|
|
|
53351
54099
|
// ../sdk/src/funcs/check.ts
|
|
53352
|
-
var
|
|
54100
|
+
var z119 = __toESM(require("zod/v4-mini"), 1);
|
|
53353
54101
|
function check(client, request, options) {
|
|
53354
54102
|
return new APIPromise($do2(
|
|
53355
54103
|
client,
|
|
@@ -53360,7 +54108,7 @@ function check(client, request, options) {
|
|
|
53360
54108
|
async function $do2(client, request, options) {
|
|
53361
54109
|
const parsed = safeParse(
|
|
53362
54110
|
request,
|
|
53363
|
-
(value) =>
|
|
54111
|
+
(value) => z119.parse(CheckParams$outboundSchema, value),
|
|
53364
54112
|
"Input validation failed"
|
|
53365
54113
|
);
|
|
53366
54114
|
if (!parsed.ok) {
|
|
@@ -53428,7 +54176,7 @@ async function $do2(client, request, options) {
|
|
|
53428
54176
|
}
|
|
53429
54177
|
|
|
53430
54178
|
// ../sdk/src/funcs/track-tokens.ts
|
|
53431
|
-
var
|
|
54179
|
+
var z120 = __toESM(require("zod/v4-mini"), 1);
|
|
53432
54180
|
function trackTokens(client, request, options) {
|
|
53433
54181
|
return new APIPromise($do3(
|
|
53434
54182
|
client,
|
|
@@ -53439,7 +54187,7 @@ function trackTokens(client, request, options) {
|
|
|
53439
54187
|
async function $do3(client, request, options) {
|
|
53440
54188
|
const parsed = safeParse(
|
|
53441
54189
|
request,
|
|
53442
|
-
(value) =>
|
|
54190
|
+
(value) => z120.parse(TrackTokensParams$outboundSchema, value),
|
|
53443
54191
|
"Input validation failed"
|
|
53444
54192
|
);
|
|
53445
54193
|
if (!parsed.ok) {
|
|
@@ -53507,7 +54255,7 @@ async function $do3(client, request, options) {
|
|
|
53507
54255
|
}
|
|
53508
54256
|
|
|
53509
54257
|
// ../sdk/src/funcs/track.ts
|
|
53510
|
-
var
|
|
54258
|
+
var z121 = __toESM(require("zod/v4-mini"), 1);
|
|
53511
54259
|
function track(client, request, options) {
|
|
53512
54260
|
return new APIPromise($do4(
|
|
53513
54261
|
client,
|
|
@@ -53518,7 +54266,7 @@ function track(client, request, options) {
|
|
|
53518
54266
|
async function $do4(client, request, options) {
|
|
53519
54267
|
const parsed = safeParse(
|
|
53520
54268
|
request,
|
|
53521
|
-
(value) =>
|
|
54269
|
+
(value) => z121.parse(TrackParams$outboundSchema, value),
|
|
53522
54270
|
"Input validation failed"
|
|
53523
54271
|
);
|
|
53524
54272
|
if (!parsed.ok) {
|
|
@@ -54160,7 +54908,7 @@ async function logResponse(logger, res, req) {
|
|
|
54160
54908
|
}
|
|
54161
54909
|
|
|
54162
54910
|
// ../sdk/src/funcs/balances-create.ts
|
|
54163
|
-
var
|
|
54911
|
+
var z122 = __toESM(require("zod/v4-mini"), 1);
|
|
54164
54912
|
function balancesCreate(client, request, options) {
|
|
54165
54913
|
return new APIPromise($do5(
|
|
54166
54914
|
client,
|
|
@@ -54171,7 +54919,7 @@ function balancesCreate(client, request, options) {
|
|
|
54171
54919
|
async function $do5(client, request, options) {
|
|
54172
54920
|
const parsed = safeParse(
|
|
54173
54921
|
request,
|
|
54174
|
-
(value) =>
|
|
54922
|
+
(value) => z122.parse(CreateBalanceParams$outboundSchema, value),
|
|
54175
54923
|
"Input validation failed"
|
|
54176
54924
|
);
|
|
54177
54925
|
if (!parsed.ok) {
|
|
@@ -54238,7 +54986,7 @@ async function $do5(client, request, options) {
|
|
|
54238
54986
|
}
|
|
54239
54987
|
|
|
54240
54988
|
// ../sdk/src/funcs/balances-delete.ts
|
|
54241
|
-
var
|
|
54989
|
+
var z123 = __toESM(require("zod/v4-mini"), 1);
|
|
54242
54990
|
function balancesDelete(client, request, options) {
|
|
54243
54991
|
return new APIPromise($do6(
|
|
54244
54992
|
client,
|
|
@@ -54249,7 +54997,7 @@ function balancesDelete(client, request, options) {
|
|
|
54249
54997
|
async function $do6(client, request, options) {
|
|
54250
54998
|
const parsed = safeParse(
|
|
54251
54999
|
request,
|
|
54252
|
-
(value) =>
|
|
55000
|
+
(value) => z123.parse(DeleteBalanceParams$outboundSchema, value),
|
|
54253
55001
|
"Input validation failed"
|
|
54254
55002
|
);
|
|
54255
55003
|
if (!parsed.ok) {
|
|
@@ -54316,7 +55064,7 @@ async function $do6(client, request, options) {
|
|
|
54316
55064
|
}
|
|
54317
55065
|
|
|
54318
55066
|
// ../sdk/src/funcs/balances-finalize.ts
|
|
54319
|
-
var
|
|
55067
|
+
var z124 = __toESM(require("zod/v4-mini"), 1);
|
|
54320
55068
|
function balancesFinalize(client, request, options) {
|
|
54321
55069
|
return new APIPromise($do7(
|
|
54322
55070
|
client,
|
|
@@ -54327,7 +55075,7 @@ function balancesFinalize(client, request, options) {
|
|
|
54327
55075
|
async function $do7(client, request, options) {
|
|
54328
55076
|
const parsed = safeParse(
|
|
54329
55077
|
request,
|
|
54330
|
-
(value) =>
|
|
55078
|
+
(value) => z124.parse(FinalizeBalanceParams$outboundSchema, value),
|
|
54331
55079
|
"Input validation failed"
|
|
54332
55080
|
);
|
|
54333
55081
|
if (!parsed.ok) {
|
|
@@ -54395,7 +55143,7 @@ async function $do7(client, request, options) {
|
|
|
54395
55143
|
}
|
|
54396
55144
|
|
|
54397
55145
|
// ../sdk/src/funcs/balances-update.ts
|
|
54398
|
-
var
|
|
55146
|
+
var z125 = __toESM(require("zod/v4-mini"), 1);
|
|
54399
55147
|
function balancesUpdate(client, request, options) {
|
|
54400
55148
|
return new APIPromise($do8(
|
|
54401
55149
|
client,
|
|
@@ -54406,7 +55154,7 @@ function balancesUpdate(client, request, options) {
|
|
|
54406
55154
|
async function $do8(client, request, options) {
|
|
54407
55155
|
const parsed = safeParse(
|
|
54408
55156
|
request,
|
|
54409
|
-
(value) =>
|
|
55157
|
+
(value) => z125.parse(UpdateBalanceParams$outboundSchema, value),
|
|
54410
55158
|
"Input validation failed"
|
|
54411
55159
|
);
|
|
54412
55160
|
if (!parsed.ok) {
|
|
@@ -54517,7 +55265,7 @@ var Balances = class extends ClientSDK {
|
|
|
54517
55265
|
};
|
|
54518
55266
|
|
|
54519
55267
|
// ../sdk/src/funcs/billing-attach.ts
|
|
54520
|
-
var
|
|
55268
|
+
var z126 = __toESM(require("zod/v4-mini"), 1);
|
|
54521
55269
|
function billingAttach(client, request, options) {
|
|
54522
55270
|
return new APIPromise($do9(
|
|
54523
55271
|
client,
|
|
@@ -54528,7 +55276,7 @@ function billingAttach(client, request, options) {
|
|
|
54528
55276
|
async function $do9(client, request, options) {
|
|
54529
55277
|
const parsed = safeParse(
|
|
54530
55278
|
request,
|
|
54531
|
-
(value) =>
|
|
55279
|
+
(value) => z126.parse(AttachParams$outboundSchema, value),
|
|
54532
55280
|
"Input validation failed"
|
|
54533
55281
|
);
|
|
54534
55282
|
if (!parsed.ok) {
|
|
@@ -54595,7 +55343,7 @@ async function $do9(client, request, options) {
|
|
|
54595
55343
|
}
|
|
54596
55344
|
|
|
54597
55345
|
// ../sdk/src/funcs/billing-create-schedule.ts
|
|
54598
|
-
var
|
|
55346
|
+
var z127 = __toESM(require("zod/v4-mini"), 1);
|
|
54599
55347
|
function billingCreateSchedule(client, request, options) {
|
|
54600
55348
|
return new APIPromise($do10(
|
|
54601
55349
|
client,
|
|
@@ -54606,7 +55354,7 @@ function billingCreateSchedule(client, request, options) {
|
|
|
54606
55354
|
async function $do10(client, request, options) {
|
|
54607
55355
|
const parsed = safeParse(
|
|
54608
55356
|
request,
|
|
54609
|
-
(value) =>
|
|
55357
|
+
(value) => z127.parse(CreateScheduleParams$outboundSchema, value),
|
|
54610
55358
|
"Input validation failed"
|
|
54611
55359
|
);
|
|
54612
55360
|
if (!parsed.ok) {
|
|
@@ -54673,7 +55421,7 @@ async function $do10(client, request, options) {
|
|
|
54673
55421
|
}
|
|
54674
55422
|
|
|
54675
55423
|
// ../sdk/src/funcs/billing-import.ts
|
|
54676
|
-
var
|
|
55424
|
+
var z128 = __toESM(require("zod/v4-mini"), 1);
|
|
54677
55425
|
function billingImport(client, request, options) {
|
|
54678
55426
|
return new APIPromise($do11(
|
|
54679
55427
|
client,
|
|
@@ -54684,7 +55432,7 @@ function billingImport(client, request, options) {
|
|
|
54684
55432
|
async function $do11(client, request, options) {
|
|
54685
55433
|
const parsed = safeParse(
|
|
54686
55434
|
request,
|
|
54687
|
-
(value) =>
|
|
55435
|
+
(value) => z128.parse(DfuFlashParams$outboundSchema, value),
|
|
54688
55436
|
"Input validation failed"
|
|
54689
55437
|
);
|
|
54690
55438
|
if (!parsed.ok) {
|
|
@@ -54751,7 +55499,7 @@ async function $do11(client, request, options) {
|
|
|
54751
55499
|
}
|
|
54752
55500
|
|
|
54753
55501
|
// ../sdk/src/funcs/billing-multi-attach.ts
|
|
54754
|
-
var
|
|
55502
|
+
var z129 = __toESM(require("zod/v4-mini"), 1);
|
|
54755
55503
|
function billingMultiAttach(client, request, options) {
|
|
54756
55504
|
return new APIPromise($do12(
|
|
54757
55505
|
client,
|
|
@@ -54762,7 +55510,7 @@ function billingMultiAttach(client, request, options) {
|
|
|
54762
55510
|
async function $do12(client, request, options) {
|
|
54763
55511
|
const parsed = safeParse(
|
|
54764
55512
|
request,
|
|
54765
|
-
(value) =>
|
|
55513
|
+
(value) => z129.parse(MultiAttachParams$outboundSchema, value),
|
|
54766
55514
|
"Input validation failed"
|
|
54767
55515
|
);
|
|
54768
55516
|
if (!parsed.ok) {
|
|
@@ -54829,7 +55577,7 @@ async function $do12(client, request, options) {
|
|
|
54829
55577
|
}
|
|
54830
55578
|
|
|
54831
55579
|
// ../sdk/src/funcs/billing-multi-update.ts
|
|
54832
|
-
var
|
|
55580
|
+
var z130 = __toESM(require("zod/v4-mini"), 1);
|
|
54833
55581
|
function billingMultiUpdate(client, request, options) {
|
|
54834
55582
|
return new APIPromise($do13(
|
|
54835
55583
|
client,
|
|
@@ -54840,7 +55588,7 @@ function billingMultiUpdate(client, request, options) {
|
|
|
54840
55588
|
async function $do13(client, request, options) {
|
|
54841
55589
|
const parsed = safeParse(
|
|
54842
55590
|
request,
|
|
54843
|
-
(value) =>
|
|
55591
|
+
(value) => z130.parse(MultiUpdateParams$outboundSchema, value),
|
|
54844
55592
|
"Input validation failed"
|
|
54845
55593
|
);
|
|
54846
55594
|
if (!parsed.ok) {
|
|
@@ -54907,7 +55655,7 @@ async function $do13(client, request, options) {
|
|
|
54907
55655
|
}
|
|
54908
55656
|
|
|
54909
55657
|
// ../sdk/src/funcs/billing-open-customer-portal.ts
|
|
54910
|
-
var
|
|
55658
|
+
var z131 = __toESM(require("zod/v4-mini"), 1);
|
|
54911
55659
|
function billingOpenCustomerPortal(client, request, options) {
|
|
54912
55660
|
return new APIPromise($do14(
|
|
54913
55661
|
client,
|
|
@@ -54918,7 +55666,7 @@ function billingOpenCustomerPortal(client, request, options) {
|
|
|
54918
55666
|
async function $do14(client, request, options) {
|
|
54919
55667
|
const parsed = safeParse(
|
|
54920
55668
|
request,
|
|
54921
|
-
(value) =>
|
|
55669
|
+
(value) => z131.parse(OpenCustomerPortalParams$outboundSchema, value),
|
|
54922
55670
|
"Input validation failed"
|
|
54923
55671
|
);
|
|
54924
55672
|
if (!parsed.ok) {
|
|
@@ -54985,7 +55733,7 @@ async function $do14(client, request, options) {
|
|
|
54985
55733
|
}
|
|
54986
55734
|
|
|
54987
55735
|
// ../sdk/src/funcs/billing-preview-attach.ts
|
|
54988
|
-
var
|
|
55736
|
+
var z132 = __toESM(require("zod/v4-mini"), 1);
|
|
54989
55737
|
function billingPreviewAttach(client, request, options) {
|
|
54990
55738
|
return new APIPromise($do15(
|
|
54991
55739
|
client,
|
|
@@ -54996,7 +55744,7 @@ function billingPreviewAttach(client, request, options) {
|
|
|
54996
55744
|
async function $do15(client, request, options) {
|
|
54997
55745
|
const parsed = safeParse(
|
|
54998
55746
|
request,
|
|
54999
|
-
(value) =>
|
|
55747
|
+
(value) => z132.parse(PreviewAttachParams$outboundSchema, value),
|
|
55000
55748
|
"Input validation failed"
|
|
55001
55749
|
);
|
|
55002
55750
|
if (!parsed.ok) {
|
|
@@ -55063,7 +55811,7 @@ async function $do15(client, request, options) {
|
|
|
55063
55811
|
}
|
|
55064
55812
|
|
|
55065
55813
|
// ../sdk/src/funcs/billing-preview-multi-attach.ts
|
|
55066
|
-
var
|
|
55814
|
+
var z133 = __toESM(require("zod/v4-mini"), 1);
|
|
55067
55815
|
function billingPreviewMultiAttach(client, request, options) {
|
|
55068
55816
|
return new APIPromise($do16(
|
|
55069
55817
|
client,
|
|
@@ -55074,7 +55822,7 @@ function billingPreviewMultiAttach(client, request, options) {
|
|
|
55074
55822
|
async function $do16(client, request, options) {
|
|
55075
55823
|
const parsed = safeParse(
|
|
55076
55824
|
request,
|
|
55077
|
-
(value) =>
|
|
55825
|
+
(value) => z133.parse(PreviewMultiAttachParams$outboundSchema, value),
|
|
55078
55826
|
"Input validation failed"
|
|
55079
55827
|
);
|
|
55080
55828
|
if (!parsed.ok) {
|
|
@@ -55141,7 +55889,7 @@ async function $do16(client, request, options) {
|
|
|
55141
55889
|
}
|
|
55142
55890
|
|
|
55143
55891
|
// ../sdk/src/funcs/billing-preview-multi-update.ts
|
|
55144
|
-
var
|
|
55892
|
+
var z134 = __toESM(require("zod/v4-mini"), 1);
|
|
55145
55893
|
function billingPreviewMultiUpdate(client, request, options) {
|
|
55146
55894
|
return new APIPromise($do17(
|
|
55147
55895
|
client,
|
|
@@ -55152,7 +55900,7 @@ function billingPreviewMultiUpdate(client, request, options) {
|
|
|
55152
55900
|
async function $do17(client, request, options) {
|
|
55153
55901
|
const parsed = safeParse(
|
|
55154
55902
|
request,
|
|
55155
|
-
(value) =>
|
|
55903
|
+
(value) => z134.parse(PreviewMultiUpdateParams$outboundSchema, value),
|
|
55156
55904
|
"Input validation failed"
|
|
55157
55905
|
);
|
|
55158
55906
|
if (!parsed.ok) {
|
|
@@ -55219,7 +55967,7 @@ async function $do17(client, request, options) {
|
|
|
55219
55967
|
}
|
|
55220
55968
|
|
|
55221
55969
|
// ../sdk/src/funcs/billing-preview-update.ts
|
|
55222
|
-
var
|
|
55970
|
+
var z135 = __toESM(require("zod/v4-mini"), 1);
|
|
55223
55971
|
function billingPreviewUpdate(client, request, options) {
|
|
55224
55972
|
return new APIPromise($do18(
|
|
55225
55973
|
client,
|
|
@@ -55230,7 +55978,7 @@ function billingPreviewUpdate(client, request, options) {
|
|
|
55230
55978
|
async function $do18(client, request, options) {
|
|
55231
55979
|
const parsed = safeParse(
|
|
55232
55980
|
request,
|
|
55233
|
-
(value) =>
|
|
55981
|
+
(value) => z135.parse(PreviewUpdateParams$outboundSchema, value),
|
|
55234
55982
|
"Input validation failed"
|
|
55235
55983
|
);
|
|
55236
55984
|
if (!parsed.ok) {
|
|
@@ -55297,7 +56045,7 @@ async function $do18(client, request, options) {
|
|
|
55297
56045
|
}
|
|
55298
56046
|
|
|
55299
56047
|
// ../sdk/src/funcs/billing-setup-payment.ts
|
|
55300
|
-
var
|
|
56048
|
+
var z136 = __toESM(require("zod/v4-mini"), 1);
|
|
55301
56049
|
function billingSetupPayment(client, request, options) {
|
|
55302
56050
|
return new APIPromise($do19(
|
|
55303
56051
|
client,
|
|
@@ -55308,7 +56056,7 @@ function billingSetupPayment(client, request, options) {
|
|
|
55308
56056
|
async function $do19(client, request, options) {
|
|
55309
56057
|
const parsed = safeParse(
|
|
55310
56058
|
request,
|
|
55311
|
-
(value) =>
|
|
56059
|
+
(value) => z136.parse(SetupPaymentParams$outboundSchema, value),
|
|
55312
56060
|
"Input validation failed"
|
|
55313
56061
|
);
|
|
55314
56062
|
if (!parsed.ok) {
|
|
@@ -55375,7 +56123,7 @@ async function $do19(client, request, options) {
|
|
|
55375
56123
|
}
|
|
55376
56124
|
|
|
55377
56125
|
// ../sdk/src/funcs/billing-update.ts
|
|
55378
|
-
var
|
|
56126
|
+
var z137 = __toESM(require("zod/v4-mini"), 1);
|
|
55379
56127
|
function billingUpdate(client, request, options) {
|
|
55380
56128
|
return new APIPromise($do20(
|
|
55381
56129
|
client,
|
|
@@ -55386,7 +56134,7 @@ function billingUpdate(client, request, options) {
|
|
|
55386
56134
|
async function $do20(client, request, options) {
|
|
55387
56135
|
const parsed = safeParse(
|
|
55388
56136
|
request,
|
|
55389
|
-
(value) =>
|
|
56137
|
+
(value) => z137.parse(UpdateSubscriptionParams$outboundSchema, value),
|
|
55390
56138
|
"Input validation failed"
|
|
55391
56139
|
);
|
|
55392
56140
|
if (!parsed.ok) {
|
|
@@ -55452,6 +56200,84 @@ async function $do20(client, request, options) {
|
|
|
55452
56200
|
return [result, { status: "complete", request: req, response }];
|
|
55453
56201
|
}
|
|
55454
56202
|
|
|
56203
|
+
// ../sdk/src/funcs/billing-verify.ts
|
|
56204
|
+
var z138 = __toESM(require("zod/v4-mini"), 1);
|
|
56205
|
+
function billingVerify(client, request, options) {
|
|
56206
|
+
return new APIPromise($do21(
|
|
56207
|
+
client,
|
|
56208
|
+
request,
|
|
56209
|
+
options
|
|
56210
|
+
));
|
|
56211
|
+
}
|
|
56212
|
+
async function $do21(client, request, options) {
|
|
56213
|
+
const parsed = safeParse(
|
|
56214
|
+
request,
|
|
56215
|
+
(value) => z138.parse(VerifyParams$outboundSchema, value),
|
|
56216
|
+
"Input validation failed"
|
|
56217
|
+
);
|
|
56218
|
+
if (!parsed.ok) {
|
|
56219
|
+
return [parsed, { status: "invalid" }];
|
|
56220
|
+
}
|
|
56221
|
+
const payload = parsed.value;
|
|
56222
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
56223
|
+
const path = pathToFunc("/v1/billing.verify")();
|
|
56224
|
+
const headers = new Headers(compactMap({
|
|
56225
|
+
"Content-Type": "application/json",
|
|
56226
|
+
Accept: "application/json",
|
|
56227
|
+
"x-api-version": encodeSimple(
|
|
56228
|
+
"x-api-version",
|
|
56229
|
+
client._options.xApiVersion,
|
|
56230
|
+
{ explode: false, charEncoding: "none" }
|
|
56231
|
+
)
|
|
56232
|
+
}));
|
|
56233
|
+
const secConfig = await extractSecurity(client._options.secretKey);
|
|
56234
|
+
const securityInput = secConfig == null ? {} : { secretKey: secConfig };
|
|
56235
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
56236
|
+
const context = {
|
|
56237
|
+
options: client._options,
|
|
56238
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
56239
|
+
operationID: "verify",
|
|
56240
|
+
oAuth2Scopes: null,
|
|
56241
|
+
resolvedSecurity: requestSecurity,
|
|
56242
|
+
securitySource: client._options.secretKey,
|
|
56243
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
56244
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
56245
|
+
};
|
|
56246
|
+
const requestRes = client._createRequest(context, {
|
|
56247
|
+
security: requestSecurity,
|
|
56248
|
+
method: "POST",
|
|
56249
|
+
baseURL: options?.serverURL,
|
|
56250
|
+
path,
|
|
56251
|
+
headers,
|
|
56252
|
+
body,
|
|
56253
|
+
userAgent: client._options.userAgent,
|
|
56254
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
56255
|
+
}, options);
|
|
56256
|
+
if (!requestRes.ok) {
|
|
56257
|
+
return [requestRes, { status: "invalid" }];
|
|
56258
|
+
}
|
|
56259
|
+
const req = requestRes.value;
|
|
56260
|
+
const doResult = await client._do(req, {
|
|
56261
|
+
context,
|
|
56262
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
56263
|
+
retryConfig: context.retryConfig,
|
|
56264
|
+
retryCodes: context.retryCodes
|
|
56265
|
+
});
|
|
56266
|
+
if (!doResult.ok) {
|
|
56267
|
+
return [doResult, { status: "request-error", request: req }];
|
|
56268
|
+
}
|
|
56269
|
+
const response = doResult.value;
|
|
56270
|
+
const [result] = await match(
|
|
56271
|
+
json(200, VerifyResponse$inboundSchema),
|
|
56272
|
+
fail("4XX"),
|
|
56273
|
+
fail("5XX")
|
|
56274
|
+
)(response, req);
|
|
56275
|
+
if (!result.ok) {
|
|
56276
|
+
return [result, { status: "complete", request: req, response }];
|
|
56277
|
+
}
|
|
56278
|
+
return [result, { status: "complete", request: req, response }];
|
|
56279
|
+
}
|
|
56280
|
+
|
|
55455
56281
|
// ../sdk/src/sdk/billing.ts
|
|
55456
56282
|
var Billing = class extends ClientSDK {
|
|
55457
56283
|
/**
|
|
@@ -55485,7 +56311,7 @@ var Billing = class extends ClientSDK {
|
|
|
55485
56311
|
* @param freeTrial - Free trial for this plan. A shorthand for customize.free_trial, which takes precedence when both are given. (optional)
|
|
55486
56312
|
* @param customize - Customize the plan to attach. Can override the price, items, licenses, free trial, or a combination. (optional)
|
|
55487
56313
|
* @param invoiceMode - Invoice mode creates a draft or open invoice and sends it to the customer, instead of charging their card immediately. This uses Stripe's send_invoice collection method. (optional)
|
|
55488
|
-
* @param prorationBehavior - How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges. (optional)
|
|
56314
|
+
* @param prorationBehavior - How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges, 'bill_difference' charges/credits the full-period price difference now without changing the billing cycle. (optional)
|
|
55489
56315
|
* @param redirectMode - Controls when to return a checkout URL. 'always' returns a URL even if payment succeeds, 'if_required' only when payment action is needed, 'never' disables redirects. (optional)
|
|
55490
56316
|
* @param subscriptionId - A unique ID to identify this subscription. Can be used to target specific subscriptions in update operations when a customer has multiple products with the same plan. (optional)
|
|
55491
56317
|
* @param discounts - List of discounts to apply. Each discount can be an Autumn reward ID, Stripe coupon ID, or Stripe promotion code. (optional)
|
|
@@ -55539,7 +56365,7 @@ var Billing = class extends ClientSDK {
|
|
|
55539
56365
|
* @param successUrl - URL to redirect to after successful checkout. (optional)
|
|
55540
56366
|
* @param checkoutSessionParams - Additional parameters to pass into the creation of the Stripe checkout session. (optional)
|
|
55541
56367
|
* @param redirectMode - Controls when to return a checkout URL for the immediate phase. 'always' forces a confirmation or checkout flow, 'if_required' only redirects when needed, and 'never' disables redirects. (optional)
|
|
55542
|
-
* @param billingBehavior - Whether to prorate the immediate phase. 'none' skips proration charges and credits. (optional)
|
|
56368
|
+
* @param billingBehavior - Whether to prorate the immediate phase. 'none' skips proration charges and credits, 'bill_difference' charges/credits the full-period price difference. (optional)
|
|
55543
56369
|
* @param noBillingChanges - If true, skips any billing changes for the schedule. (optional)
|
|
55544
56370
|
* @param billingCycleAnchor - Pass 'now' to reset the billing cycle anchor of the immediate phase to the current time. (optional)
|
|
55545
56371
|
* @param enablePlanImmediately - If true, the immediate-phase cusProducts are activated immediately (and scheduled-phase cusProducts pre-inserted) even when payment is pending via Stripe checkout. The Autumn schedule rows are persisted on checkout.session.completed. (optional)
|
|
@@ -55587,7 +56413,7 @@ var Billing = class extends ClientSDK {
|
|
|
55587
56413
|
* @param currency - Currency to bill this multi-attach in (e.g. usd, eur). Must match the customer's currency if they are already locked to one, and every plan must offer a paid price in it. Defaults to the customer's currency, then the org default. (optional)
|
|
55588
56414
|
* @param invoiceMode - Invoice mode creates a draft or open invoice and sends it to the customer, instead of charging their card immediately. (optional)
|
|
55589
56415
|
* @param discounts - List of discounts to apply. Each discount can be an Autumn reward ID, Stripe coupon ID, or Stripe promotion code. (optional)
|
|
55590
|
-
* @param billingBehavior - How to handle billing. 'prorate_immediately' charges/credits prorated amounts now, 'none' does not charge/credit anything. (optional)
|
|
56416
|
+
* @param billingBehavior - How to handle billing. 'prorate_immediately' charges/credits prorated amounts now, 'none' does not charge/credit anything, 'bill_difference' charges/credits the full-period price difference now without changing the billing cycle. (optional)
|
|
55591
56417
|
* @param billingCycleAnchor - Pass 'now' to reset the billing cycle of every plan on the subscription to the time of this request. (optional)
|
|
55592
56418
|
* @param successUrl - URL to redirect to after successful checkout. (optional)
|
|
55593
56419
|
* @param checkoutSessionParams - Additional parameters to pass into the creation of the Stripe checkout session. (optional)
|
|
@@ -55623,7 +56449,7 @@ var Billing = class extends ClientSDK {
|
|
|
55623
56449
|
* @param freeTrial - Free trial for this plan. A shorthand for customize.free_trial, which takes precedence when both are given. (optional)
|
|
55624
56450
|
* @param customize - Customize the plan to attach. Can override the price, items, licenses, free trial, or a combination. (optional)
|
|
55625
56451
|
* @param invoiceMode - Invoice mode creates a draft or open invoice and sends it to the customer, instead of charging their card immediately. This uses Stripe's send_invoice collection method. (optional)
|
|
55626
|
-
* @param prorationBehavior - How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges. (optional)
|
|
56452
|
+
* @param prorationBehavior - How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges, 'bill_difference' charges/credits the full-period price difference now without changing the billing cycle. (optional)
|
|
55627
56453
|
* @param redirectMode - Controls when to return a checkout URL. 'always' returns a URL even if payment succeeds, 'if_required' only when payment action is needed, 'never' disables redirects. (optional)
|
|
55628
56454
|
* @param subscriptionId - A unique ID to identify this subscription. Can be used to target specific subscriptions in update operations when a customer has multiple products with the same plan. (optional)
|
|
55629
56455
|
* @param discounts - List of discounts to apply. Each discount can be an Autumn reward ID, Stripe coupon ID, or Stripe promotion code. (optional)
|
|
@@ -55676,7 +56502,7 @@ var Billing = class extends ClientSDK {
|
|
|
55676
56502
|
* @param currency - Currency to bill this multi-attach in (e.g. usd, eur). Must match the customer's currency if they are already locked to one, and every plan must offer a paid price in it. Defaults to the customer's currency, then the org default. (optional)
|
|
55677
56503
|
* @param invoiceMode - Invoice mode creates a draft or open invoice and sends it to the customer, instead of charging their card immediately. (optional)
|
|
55678
56504
|
* @param discounts - List of discounts to apply. Each discount can be an Autumn reward ID, Stripe coupon ID, or Stripe promotion code. (optional)
|
|
55679
|
-
* @param billingBehavior - How to handle billing. 'prorate_immediately' charges/credits prorated amounts now, 'none' does not charge/credit anything. (optional)
|
|
56505
|
+
* @param billingBehavior - How to handle billing. 'prorate_immediately' charges/credits prorated amounts now, 'none' does not charge/credit anything, 'bill_difference' charges/credits the full-period price difference now without changing the billing cycle. (optional)
|
|
55680
56506
|
* @param billingCycleAnchor - Pass 'now' to reset the billing cycle of every plan on the subscription to the time of this request. (optional)
|
|
55681
56507
|
* @param successUrl - URL to redirect to after successful checkout. (optional)
|
|
55682
56508
|
* @param checkoutSessionParams - Additional parameters to pass into the creation of the Stripe checkout session. (optional)
|
|
@@ -55724,7 +56550,7 @@ var Billing = class extends ClientSDK {
|
|
|
55724
56550
|
* @param freeTrial - Free trial for this plan. A shorthand for customize.free_trial, which takes precedence when both are given. (optional)
|
|
55725
56551
|
* @param customize - Customize the plan to attach. Can override the price, items, licenses, free trial, or a combination. (optional)
|
|
55726
56552
|
* @param invoiceMode - Invoice mode creates a draft or open invoice and sends it to the customer, instead of charging their card immediately. This uses Stripe's send_invoice collection method. (optional)
|
|
55727
|
-
* @param prorationBehavior - How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges. (optional)
|
|
56553
|
+
* @param prorationBehavior - How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges, 'bill_difference' charges/credits the full-period price difference now without changing the billing cycle. (optional)
|
|
55728
56554
|
* @param redirectMode - Controls when to return a checkout URL. 'always' returns a URL even if payment succeeds, 'if_required' only when payment action is needed, 'never' disables redirects. (optional)
|
|
55729
56555
|
* @param subscriptionId - A unique ID to identify this subscription. Can be used to target specific subscriptions in update operations when a customer has multiple products with the same plan. (optional)
|
|
55730
56556
|
* @param discounts - List of discounts to apply. Each discount can be an Autumn reward ID, Stripe coupon ID, or Stripe promotion code. (optional)
|
|
@@ -55767,7 +56593,7 @@ var Billing = class extends ClientSDK {
|
|
|
55767
56593
|
* @param freeTrial - Free trial for this plan. A shorthand for customize.free_trial, which takes precedence when both are given. (optional)
|
|
55768
56594
|
* @param customize - Customize the plan to attach. Can override the price, items, licenses, free trial, or a combination. (optional)
|
|
55769
56595
|
* @param invoiceMode - Invoice mode creates a draft or open invoice and sends it to the customer, instead of charging their card immediately. This uses Stripe's send_invoice collection method. (optional)
|
|
55770
|
-
* @param prorationBehavior - How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges. (optional)
|
|
56596
|
+
* @param prorationBehavior - How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges, 'bill_difference' charges/credits the full-period price difference now without changing the billing cycle. (optional)
|
|
55771
56597
|
* @param redirectMode - Controls when to return a checkout URL. 'always' returns a URL even if payment succeeds, 'if_required' only when payment action is needed, 'never' disables redirects. (optional)
|
|
55772
56598
|
* @param subscriptionId - A unique ID to identify this subscription. Can be used to target specific subscriptions in update operations when a customer has multiple products with the same plan. (optional)
|
|
55773
56599
|
* @param discounts - List of discounts to apply. Each discount can be an Autumn reward ID, Stripe coupon ID, or Stripe promotion code. (optional)
|
|
@@ -55869,6 +56695,36 @@ var Billing = class extends ClientSDK {
|
|
|
55869
56695
|
options
|
|
55870
56696
|
));
|
|
55871
56697
|
}
|
|
56698
|
+
/**
|
|
56699
|
+
* Checks a customer's Stripe subscriptions against Autumn's record of their plans and reports any drift. Read-only: it never changes Autumn or Stripe.
|
|
56700
|
+
*
|
|
56701
|
+
* Use this endpoint to audit that a customer's Stripe subscriptions, items, quantities, prices, schedules and cancellation state match what Autumn expects, for example after a migration or a manual change in Stripe.
|
|
56702
|
+
*
|
|
56703
|
+
* @example
|
|
56704
|
+
* ```typescript
|
|
56705
|
+
* // Verify every subscription for a customer
|
|
56706
|
+
* const response = await client.billing.verify({ customerId: "cus_123" });
|
|
56707
|
+
* ```
|
|
56708
|
+
*
|
|
56709
|
+
* @example
|
|
56710
|
+
* ```typescript
|
|
56711
|
+
* // Verify specific subscriptions in strict mode
|
|
56712
|
+
* const response = await client.billing.verify({ customerId: "cus_123", subscriptionIds: ["sub_1234"], strict: true });
|
|
56713
|
+
* ```
|
|
56714
|
+
*
|
|
56715
|
+
* @param customerId - Autumn customer whose Stripe subscriptions should be checked against Autumn's customer_products.
|
|
56716
|
+
* @param subscriptionIds - Optional whitelist of Stripe subscription IDs to verify. Defaults to every subscription linked to the customer's plans, plus any other active Stripe subscription on the customer, which is reported as not linked to Autumn. (optional)
|
|
56717
|
+
* @param strict - When true, report missing usage-based items and unexpected metered Stripe items. Defaults to false. (optional)
|
|
56718
|
+
*
|
|
56719
|
+
* @returns A verify response with account-level mismatches and a per-subscription status (correct or mismatched) with the mismatches found.
|
|
56720
|
+
*/
|
|
56721
|
+
async verify(request, options) {
|
|
56722
|
+
return unwrapAsync(billingVerify(
|
|
56723
|
+
this,
|
|
56724
|
+
request,
|
|
56725
|
+
options
|
|
56726
|
+
));
|
|
56727
|
+
}
|
|
55872
56728
|
/**
|
|
55873
56729
|
* Import
|
|
55874
56730
|
*
|
|
@@ -55885,18 +56741,18 @@ var Billing = class extends ClientSDK {
|
|
|
55885
56741
|
};
|
|
55886
56742
|
|
|
55887
56743
|
// ../sdk/src/funcs/customers-advance-test-clock.ts
|
|
55888
|
-
var
|
|
56744
|
+
var z139 = __toESM(require("zod/v4-mini"), 1);
|
|
55889
56745
|
function customersAdvanceTestClock(client, request, options) {
|
|
55890
|
-
return new APIPromise($
|
|
56746
|
+
return new APIPromise($do22(
|
|
55891
56747
|
client,
|
|
55892
56748
|
request,
|
|
55893
56749
|
options
|
|
55894
56750
|
));
|
|
55895
56751
|
}
|
|
55896
|
-
async function $
|
|
56752
|
+
async function $do22(client, request, options) {
|
|
55897
56753
|
const parsed = safeParse(
|
|
55898
56754
|
request,
|
|
55899
|
-
(value) =>
|
|
56755
|
+
(value) => z139.parse(AdvanceTestClockParams$outboundSchema, value),
|
|
55900
56756
|
"Input validation failed"
|
|
55901
56757
|
);
|
|
55902
56758
|
if (!parsed.ok) {
|
|
@@ -55963,18 +56819,18 @@ async function $do21(client, request, options) {
|
|
|
55963
56819
|
}
|
|
55964
56820
|
|
|
55965
56821
|
// ../sdk/src/funcs/customers-delete.ts
|
|
55966
|
-
var
|
|
56822
|
+
var z140 = __toESM(require("zod/v4-mini"), 1);
|
|
55967
56823
|
function customersDelete(client, request, options) {
|
|
55968
|
-
return new APIPromise($
|
|
56824
|
+
return new APIPromise($do23(
|
|
55969
56825
|
client,
|
|
55970
56826
|
request,
|
|
55971
56827
|
options
|
|
55972
56828
|
));
|
|
55973
56829
|
}
|
|
55974
|
-
async function $
|
|
56830
|
+
async function $do23(client, request, options) {
|
|
55975
56831
|
const parsed = safeParse(
|
|
55976
56832
|
request,
|
|
55977
|
-
(value) =>
|
|
56833
|
+
(value) => z140.parse(DeleteCustomerParams$outboundSchema, value),
|
|
55978
56834
|
"Input validation failed"
|
|
55979
56835
|
);
|
|
55980
56836
|
if (!parsed.ok) {
|
|
@@ -56041,18 +56897,18 @@ async function $do22(client, request, options) {
|
|
|
56041
56897
|
}
|
|
56042
56898
|
|
|
56043
56899
|
// ../sdk/src/funcs/customers-get-or-create.ts
|
|
56044
|
-
var
|
|
56900
|
+
var z141 = __toESM(require("zod/v4-mini"), 1);
|
|
56045
56901
|
function customersGetOrCreate(client, request, options) {
|
|
56046
|
-
return new APIPromise($
|
|
56902
|
+
return new APIPromise($do24(
|
|
56047
56903
|
client,
|
|
56048
56904
|
request,
|
|
56049
56905
|
options
|
|
56050
56906
|
));
|
|
56051
56907
|
}
|
|
56052
|
-
async function $
|
|
56908
|
+
async function $do24(client, request, options) {
|
|
56053
56909
|
const parsed = safeParse(
|
|
56054
56910
|
request,
|
|
56055
|
-
(value) =>
|
|
56911
|
+
(value) => z141.parse(GetOrCreateCustomerParams$outboundSchema, value),
|
|
56056
56912
|
"Input validation failed"
|
|
56057
56913
|
);
|
|
56058
56914
|
if (!parsed.ok) {
|
|
@@ -56119,18 +56975,18 @@ async function $do23(client, request, options) {
|
|
|
56119
56975
|
}
|
|
56120
56976
|
|
|
56121
56977
|
// ../sdk/src/funcs/customers-get.ts
|
|
56122
|
-
var
|
|
56978
|
+
var z142 = __toESM(require("zod/v4-mini"), 1);
|
|
56123
56979
|
function customersGet(client, request, options) {
|
|
56124
|
-
return new APIPromise($
|
|
56980
|
+
return new APIPromise($do25(
|
|
56125
56981
|
client,
|
|
56126
56982
|
request,
|
|
56127
56983
|
options
|
|
56128
56984
|
));
|
|
56129
56985
|
}
|
|
56130
|
-
async function $
|
|
56986
|
+
async function $do25(client, request, options) {
|
|
56131
56987
|
const parsed = safeParse(
|
|
56132
56988
|
request,
|
|
56133
|
-
(value) =>
|
|
56989
|
+
(value) => z142.parse(GetCustomerParams$outboundSchema, value),
|
|
56134
56990
|
"Input validation failed"
|
|
56135
56991
|
);
|
|
56136
56992
|
if (!parsed.ok) {
|
|
@@ -56197,18 +57053,18 @@ async function $do24(client, request, options) {
|
|
|
56197
57053
|
}
|
|
56198
57054
|
|
|
56199
57055
|
// ../sdk/src/funcs/customers-list.ts
|
|
56200
|
-
var
|
|
57056
|
+
var z143 = __toESM(require("zod/v4-mini"), 1);
|
|
56201
57057
|
function customersList(client, request, options) {
|
|
56202
|
-
return new APIPromise($
|
|
57058
|
+
return new APIPromise($do26(
|
|
56203
57059
|
client,
|
|
56204
57060
|
request,
|
|
56205
57061
|
options
|
|
56206
57062
|
));
|
|
56207
57063
|
}
|
|
56208
|
-
async function $
|
|
57064
|
+
async function $do26(client, request, options) {
|
|
56209
57065
|
const parsed = safeParse(
|
|
56210
57066
|
request,
|
|
56211
|
-
(value) =>
|
|
57067
|
+
(value) => z143.parse(ListCustomersParams$outboundSchema, value),
|
|
56212
57068
|
"Input validation failed"
|
|
56213
57069
|
);
|
|
56214
57070
|
if (!parsed.ok) {
|
|
@@ -56275,18 +57131,18 @@ async function $do25(client, request, options) {
|
|
|
56275
57131
|
}
|
|
56276
57132
|
|
|
56277
57133
|
// ../sdk/src/funcs/customers-update.ts
|
|
56278
|
-
var
|
|
57134
|
+
var z144 = __toESM(require("zod/v4-mini"), 1);
|
|
56279
57135
|
function customersUpdate(client, request, options) {
|
|
56280
|
-
return new APIPromise($
|
|
57136
|
+
return new APIPromise($do27(
|
|
56281
57137
|
client,
|
|
56282
57138
|
request,
|
|
56283
57139
|
options
|
|
56284
57140
|
));
|
|
56285
57141
|
}
|
|
56286
|
-
async function $
|
|
57142
|
+
async function $do27(client, request, options) {
|
|
56287
57143
|
const parsed = safeParse(
|
|
56288
57144
|
request,
|
|
56289
|
-
(value) =>
|
|
57145
|
+
(value) => z144.parse(UpdateCustomerParams$outboundSchema, value),
|
|
56290
57146
|
"Input validation failed"
|
|
56291
57147
|
);
|
|
56292
57148
|
if (!parsed.ok) {
|
|
@@ -56457,18 +57313,18 @@ var Customers = class extends ClientSDK {
|
|
|
56457
57313
|
};
|
|
56458
57314
|
|
|
56459
57315
|
// ../sdk/src/funcs/entities-create.ts
|
|
56460
|
-
var
|
|
57316
|
+
var z145 = __toESM(require("zod/v4-mini"), 1);
|
|
56461
57317
|
function entitiesCreate(client, request, options) {
|
|
56462
|
-
return new APIPromise($
|
|
57318
|
+
return new APIPromise($do28(
|
|
56463
57319
|
client,
|
|
56464
57320
|
request,
|
|
56465
57321
|
options
|
|
56466
57322
|
));
|
|
56467
57323
|
}
|
|
56468
|
-
async function $
|
|
57324
|
+
async function $do28(client, request, options) {
|
|
56469
57325
|
const parsed = safeParse(
|
|
56470
57326
|
request,
|
|
56471
|
-
(value) =>
|
|
57327
|
+
(value) => z145.parse(CreateEntityParams$outboundSchema, value),
|
|
56472
57328
|
"Input validation failed"
|
|
56473
57329
|
);
|
|
56474
57330
|
if (!parsed.ok) {
|
|
@@ -56535,18 +57391,18 @@ async function $do27(client, request, options) {
|
|
|
56535
57391
|
}
|
|
56536
57392
|
|
|
56537
57393
|
// ../sdk/src/funcs/entities-delete.ts
|
|
56538
|
-
var
|
|
57394
|
+
var z146 = __toESM(require("zod/v4-mini"), 1);
|
|
56539
57395
|
function entitiesDelete(client, request, options) {
|
|
56540
|
-
return new APIPromise($
|
|
57396
|
+
return new APIPromise($do29(
|
|
56541
57397
|
client,
|
|
56542
57398
|
request,
|
|
56543
57399
|
options
|
|
56544
57400
|
));
|
|
56545
57401
|
}
|
|
56546
|
-
async function $
|
|
57402
|
+
async function $do29(client, request, options) {
|
|
56547
57403
|
const parsed = safeParse(
|
|
56548
57404
|
request,
|
|
56549
|
-
(value) =>
|
|
57405
|
+
(value) => z146.parse(DeleteEntityParams$outboundSchema, value),
|
|
56550
57406
|
"Input validation failed"
|
|
56551
57407
|
);
|
|
56552
57408
|
if (!parsed.ok) {
|
|
@@ -56613,18 +57469,18 @@ async function $do28(client, request, options) {
|
|
|
56613
57469
|
}
|
|
56614
57470
|
|
|
56615
57471
|
// ../sdk/src/funcs/entities-get.ts
|
|
56616
|
-
var
|
|
57472
|
+
var z147 = __toESM(require("zod/v4-mini"), 1);
|
|
56617
57473
|
function entitiesGet(client, request, options) {
|
|
56618
|
-
return new APIPromise($
|
|
57474
|
+
return new APIPromise($do30(
|
|
56619
57475
|
client,
|
|
56620
57476
|
request,
|
|
56621
57477
|
options
|
|
56622
57478
|
));
|
|
56623
57479
|
}
|
|
56624
|
-
async function $
|
|
57480
|
+
async function $do30(client, request, options) {
|
|
56625
57481
|
const parsed = safeParse(
|
|
56626
57482
|
request,
|
|
56627
|
-
(value) =>
|
|
57483
|
+
(value) => z147.parse(GetEntityParams$outboundSchema, value),
|
|
56628
57484
|
"Input validation failed"
|
|
56629
57485
|
);
|
|
56630
57486
|
if (!parsed.ok) {
|
|
@@ -56691,18 +57547,18 @@ async function $do29(client, request, options) {
|
|
|
56691
57547
|
}
|
|
56692
57548
|
|
|
56693
57549
|
// ../sdk/src/funcs/entities-list.ts
|
|
56694
|
-
var
|
|
57550
|
+
var z148 = __toESM(require("zod/v4-mini"), 1);
|
|
56695
57551
|
function entitiesList(client, request, options) {
|
|
56696
|
-
return new APIPromise($
|
|
57552
|
+
return new APIPromise($do31(
|
|
56697
57553
|
client,
|
|
56698
57554
|
request,
|
|
56699
57555
|
options
|
|
56700
57556
|
));
|
|
56701
57557
|
}
|
|
56702
|
-
async function $
|
|
57558
|
+
async function $do31(client, request, options) {
|
|
56703
57559
|
const parsed = safeParse(
|
|
56704
57560
|
request,
|
|
56705
|
-
(value) =>
|
|
57561
|
+
(value) => z148.parse(ListEntitiesParams$outboundSchema, value),
|
|
56706
57562
|
"Input validation failed"
|
|
56707
57563
|
);
|
|
56708
57564
|
if (!parsed.ok) {
|
|
@@ -56769,18 +57625,18 @@ async function $do30(client, request, options) {
|
|
|
56769
57625
|
}
|
|
56770
57626
|
|
|
56771
57627
|
// ../sdk/src/funcs/entities-update.ts
|
|
56772
|
-
var
|
|
57628
|
+
var z149 = __toESM(require("zod/v4-mini"), 1);
|
|
56773
57629
|
function entitiesUpdate(client, request, options) {
|
|
56774
|
-
return new APIPromise($
|
|
57630
|
+
return new APIPromise($do32(
|
|
56775
57631
|
client,
|
|
56776
57632
|
request,
|
|
56777
57633
|
options
|
|
56778
57634
|
));
|
|
56779
57635
|
}
|
|
56780
|
-
async function $
|
|
57636
|
+
async function $do32(client, request, options) {
|
|
56781
57637
|
const parsed = safeParse(
|
|
56782
57638
|
request,
|
|
56783
|
-
(value) =>
|
|
57639
|
+
(value) => z149.parse(UpdateEntityParams$outboundSchema, value),
|
|
56784
57640
|
"Input validation failed"
|
|
56785
57641
|
);
|
|
56786
57642
|
if (!parsed.ok) {
|
|
@@ -56994,18 +57850,18 @@ var Entities = class extends ClientSDK {
|
|
|
56994
57850
|
};
|
|
56995
57851
|
|
|
56996
57852
|
// ../sdk/src/funcs/events-aggregate.ts
|
|
56997
|
-
var
|
|
57853
|
+
var z150 = __toESM(require("zod/v4-mini"), 1);
|
|
56998
57854
|
function eventsAggregate(client, request, options) {
|
|
56999
|
-
return new APIPromise($
|
|
57855
|
+
return new APIPromise($do33(
|
|
57000
57856
|
client,
|
|
57001
57857
|
request,
|
|
57002
57858
|
options
|
|
57003
57859
|
));
|
|
57004
57860
|
}
|
|
57005
|
-
async function $
|
|
57861
|
+
async function $do33(client, request, options) {
|
|
57006
57862
|
const parsed = safeParse(
|
|
57007
57863
|
request,
|
|
57008
|
-
(value) =>
|
|
57864
|
+
(value) => z150.parse(EventsAggregateParams$outboundSchema, value),
|
|
57009
57865
|
"Input validation failed"
|
|
57010
57866
|
);
|
|
57011
57867
|
if (!parsed.ok) {
|
|
@@ -57072,18 +57928,18 @@ async function $do32(client, request, options) {
|
|
|
57072
57928
|
}
|
|
57073
57929
|
|
|
57074
57930
|
// ../sdk/src/funcs/events-list.ts
|
|
57075
|
-
var
|
|
57931
|
+
var z151 = __toESM(require("zod/v4-mini"), 1);
|
|
57076
57932
|
function eventsList(client, request, options) {
|
|
57077
|
-
return new APIPromise($
|
|
57933
|
+
return new APIPromise($do34(
|
|
57078
57934
|
client,
|
|
57079
57935
|
request,
|
|
57080
57936
|
options
|
|
57081
57937
|
));
|
|
57082
57938
|
}
|
|
57083
|
-
async function $
|
|
57939
|
+
async function $do34(client, request, options) {
|
|
57084
57940
|
const parsed = safeParse(
|
|
57085
57941
|
request,
|
|
57086
|
-
(value) =>
|
|
57942
|
+
(value) => z151.parse(EventsListParams$outboundSchema, value),
|
|
57087
57943
|
"Input validation failed"
|
|
57088
57944
|
);
|
|
57089
57945
|
if (!parsed.ok) {
|
|
@@ -57174,18 +58030,18 @@ var Events = class extends ClientSDK {
|
|
|
57174
58030
|
};
|
|
57175
58031
|
|
|
57176
58032
|
// ../sdk/src/funcs/features-create.ts
|
|
57177
|
-
var
|
|
58033
|
+
var z152 = __toESM(require("zod/v4-mini"), 1);
|
|
57178
58034
|
function featuresCreate(client, request, options) {
|
|
57179
|
-
return new APIPromise($
|
|
58035
|
+
return new APIPromise($do35(
|
|
57180
58036
|
client,
|
|
57181
58037
|
request,
|
|
57182
58038
|
options
|
|
57183
58039
|
));
|
|
57184
58040
|
}
|
|
57185
|
-
async function $
|
|
58041
|
+
async function $do35(client, request, options) {
|
|
57186
58042
|
const parsed = safeParse(
|
|
57187
58043
|
request,
|
|
57188
|
-
(value) =>
|
|
58044
|
+
(value) => z152.parse(CreateFeatureParams$outboundSchema, value),
|
|
57189
58045
|
"Input validation failed"
|
|
57190
58046
|
);
|
|
57191
58047
|
if (!parsed.ok) {
|
|
@@ -57252,18 +58108,18 @@ async function $do34(client, request, options) {
|
|
|
57252
58108
|
}
|
|
57253
58109
|
|
|
57254
58110
|
// ../sdk/src/funcs/features-delete.ts
|
|
57255
|
-
var
|
|
58111
|
+
var z153 = __toESM(require("zod/v4-mini"), 1);
|
|
57256
58112
|
function featuresDelete(client, request, options) {
|
|
57257
|
-
return new APIPromise($
|
|
58113
|
+
return new APIPromise($do36(
|
|
57258
58114
|
client,
|
|
57259
58115
|
request,
|
|
57260
58116
|
options
|
|
57261
58117
|
));
|
|
57262
58118
|
}
|
|
57263
|
-
async function $
|
|
58119
|
+
async function $do36(client, request, options) {
|
|
57264
58120
|
const parsed = safeParse(
|
|
57265
58121
|
request,
|
|
57266
|
-
(value) =>
|
|
58122
|
+
(value) => z153.parse(DeleteFeatureParams$outboundSchema, value),
|
|
57267
58123
|
"Input validation failed"
|
|
57268
58124
|
);
|
|
57269
58125
|
if (!parsed.ok) {
|
|
@@ -57330,18 +58186,18 @@ async function $do35(client, request, options) {
|
|
|
57330
58186
|
}
|
|
57331
58187
|
|
|
57332
58188
|
// ../sdk/src/funcs/features-get.ts
|
|
57333
|
-
var
|
|
58189
|
+
var z154 = __toESM(require("zod/v4-mini"), 1);
|
|
57334
58190
|
function featuresGet(client, request, options) {
|
|
57335
|
-
return new APIPromise($
|
|
58191
|
+
return new APIPromise($do37(
|
|
57336
58192
|
client,
|
|
57337
58193
|
request,
|
|
57338
58194
|
options
|
|
57339
58195
|
));
|
|
57340
58196
|
}
|
|
57341
|
-
async function $
|
|
58197
|
+
async function $do37(client, request, options) {
|
|
57342
58198
|
const parsed = safeParse(
|
|
57343
58199
|
request,
|
|
57344
|
-
(value) =>
|
|
58200
|
+
(value) => z154.parse(GetFeatureParams$outboundSchema, value),
|
|
57345
58201
|
"Input validation failed"
|
|
57346
58202
|
);
|
|
57347
58203
|
if (!parsed.ok) {
|
|
@@ -57409,13 +58265,13 @@ async function $do36(client, request, options) {
|
|
|
57409
58265
|
|
|
57410
58266
|
// ../sdk/src/funcs/features-list.ts
|
|
57411
58267
|
function featuresList(client, _request, options) {
|
|
57412
|
-
return new APIPromise($
|
|
58268
|
+
return new APIPromise($do38(
|
|
57413
58269
|
client,
|
|
57414
58270
|
_request,
|
|
57415
58271
|
options
|
|
57416
58272
|
));
|
|
57417
58273
|
}
|
|
57418
|
-
async function $
|
|
58274
|
+
async function $do38(client, _request, options) {
|
|
57419
58275
|
const path = pathToFunc("/v1/features.list")();
|
|
57420
58276
|
const headers = new Headers(compactMap({
|
|
57421
58277
|
Accept: "application/json",
|
|
@@ -57473,18 +58329,18 @@ async function $do37(client, _request, options) {
|
|
|
57473
58329
|
}
|
|
57474
58330
|
|
|
57475
58331
|
// ../sdk/src/funcs/features-update.ts
|
|
57476
|
-
var
|
|
58332
|
+
var z155 = __toESM(require("zod/v4-mini"), 1);
|
|
57477
58333
|
function featuresUpdate(client, request, options) {
|
|
57478
|
-
return new APIPromise($
|
|
58334
|
+
return new APIPromise($do39(
|
|
57479
58335
|
client,
|
|
57480
58336
|
request,
|
|
57481
58337
|
options
|
|
57482
58338
|
));
|
|
57483
58339
|
}
|
|
57484
|
-
async function $
|
|
58340
|
+
async function $do39(client, request, options) {
|
|
57485
58341
|
const parsed = safeParse(
|
|
57486
58342
|
request,
|
|
57487
|
-
(value) =>
|
|
58343
|
+
(value) => z155.parse(UpdateFeatureParams$outboundSchema, value),
|
|
57488
58344
|
"Input validation failed"
|
|
57489
58345
|
);
|
|
57490
58346
|
if (!parsed.ok) {
|
|
@@ -57693,18 +58549,18 @@ var Features = class extends ClientSDK {
|
|
|
57693
58549
|
};
|
|
57694
58550
|
|
|
57695
58551
|
// ../sdk/src/funcs/invoices-create.ts
|
|
57696
|
-
var
|
|
58552
|
+
var z156 = __toESM(require("zod/v4-mini"), 1);
|
|
57697
58553
|
function invoicesCreate(client, request, options) {
|
|
57698
|
-
return new APIPromise($
|
|
58554
|
+
return new APIPromise($do40(
|
|
57699
58555
|
client,
|
|
57700
58556
|
request,
|
|
57701
58557
|
options
|
|
57702
58558
|
));
|
|
57703
58559
|
}
|
|
57704
|
-
async function $
|
|
58560
|
+
async function $do40(client, request, options) {
|
|
57705
58561
|
const parsed = safeParse(
|
|
57706
58562
|
request,
|
|
57707
|
-
(value) =>
|
|
58563
|
+
(value) => z156.parse(CreateInvoiceParams$outboundSchema, value),
|
|
57708
58564
|
"Input validation failed"
|
|
57709
58565
|
);
|
|
57710
58566
|
if (!parsed.ok) {
|
|
@@ -57771,18 +58627,18 @@ async function $do39(client, request, options) {
|
|
|
57771
58627
|
}
|
|
57772
58628
|
|
|
57773
58629
|
// ../sdk/src/funcs/invoices-insert.ts
|
|
57774
|
-
var
|
|
58630
|
+
var z157 = __toESM(require("zod/v4-mini"), 1);
|
|
57775
58631
|
function invoicesInsert(client, request, options) {
|
|
57776
|
-
return new APIPromise($
|
|
58632
|
+
return new APIPromise($do41(
|
|
57777
58633
|
client,
|
|
57778
58634
|
request,
|
|
57779
58635
|
options
|
|
57780
58636
|
));
|
|
57781
58637
|
}
|
|
57782
|
-
async function $
|
|
58638
|
+
async function $do41(client, request, options) {
|
|
57783
58639
|
const parsed = safeParse(
|
|
57784
58640
|
request,
|
|
57785
|
-
(value) =>
|
|
58641
|
+
(value) => z157.parse(InsertInvoicesParams$outboundSchema, value),
|
|
57786
58642
|
"Input validation failed"
|
|
57787
58643
|
);
|
|
57788
58644
|
if (!parsed.ok) {
|
|
@@ -57849,18 +58705,18 @@ async function $do40(client, request, options) {
|
|
|
57849
58705
|
}
|
|
57850
58706
|
|
|
57851
58707
|
// ../sdk/src/funcs/invoices-list-templates.ts
|
|
57852
|
-
var
|
|
58708
|
+
var z158 = __toESM(require("zod/v4-mini"), 1);
|
|
57853
58709
|
function invoicesListTemplates(client, request, options) {
|
|
57854
|
-
return new APIPromise($
|
|
58710
|
+
return new APIPromise($do42(
|
|
57855
58711
|
client,
|
|
57856
58712
|
request,
|
|
57857
58713
|
options
|
|
57858
58714
|
));
|
|
57859
58715
|
}
|
|
57860
|
-
async function $
|
|
58716
|
+
async function $do42(client, request, options) {
|
|
57861
58717
|
const parsed = safeParse(
|
|
57862
58718
|
request,
|
|
57863
|
-
(value) =>
|
|
58719
|
+
(value) => z158.parse(ListInvoiceTemplatesParams$outboundSchema, value),
|
|
57864
58720
|
"Input validation failed"
|
|
57865
58721
|
);
|
|
57866
58722
|
if (!parsed.ok) {
|
|
@@ -57927,18 +58783,18 @@ async function $do41(client, request, options) {
|
|
|
57927
58783
|
}
|
|
57928
58784
|
|
|
57929
58785
|
// ../sdk/src/funcs/invoices-list.ts
|
|
57930
|
-
var
|
|
58786
|
+
var z159 = __toESM(require("zod/v4-mini"), 1);
|
|
57931
58787
|
function invoicesList(client, request, options) {
|
|
57932
|
-
return new APIPromise($
|
|
58788
|
+
return new APIPromise($do43(
|
|
57933
58789
|
client,
|
|
57934
58790
|
request,
|
|
57935
58791
|
options
|
|
57936
58792
|
));
|
|
57937
58793
|
}
|
|
57938
|
-
async function $
|
|
58794
|
+
async function $do43(client, request, options) {
|
|
57939
58795
|
const parsed = safeParse(
|
|
57940
58796
|
request,
|
|
57941
|
-
(value) =>
|
|
58797
|
+
(value) => z159.parse(ListInvoicesParams$outboundSchema, value),
|
|
57942
58798
|
"Input validation failed"
|
|
57943
58799
|
);
|
|
57944
58800
|
if (!parsed.ok) {
|
|
@@ -58005,18 +58861,18 @@ async function $do42(client, request, options) {
|
|
|
58005
58861
|
}
|
|
58006
58862
|
|
|
58007
58863
|
// ../sdk/src/funcs/invoices-pay.ts
|
|
58008
|
-
var
|
|
58864
|
+
var z160 = __toESM(require("zod/v4-mini"), 1);
|
|
58009
58865
|
function invoicesPay(client, request, options) {
|
|
58010
|
-
return new APIPromise($
|
|
58866
|
+
return new APIPromise($do44(
|
|
58011
58867
|
client,
|
|
58012
58868
|
request,
|
|
58013
58869
|
options
|
|
58014
58870
|
));
|
|
58015
58871
|
}
|
|
58016
|
-
async function $
|
|
58872
|
+
async function $do44(client, request, options) {
|
|
58017
58873
|
const parsed = safeParse(
|
|
58018
58874
|
request,
|
|
58019
|
-
(value) =>
|
|
58875
|
+
(value) => z160.parse(PayInvoiceParams$outboundSchema, value),
|
|
58020
58876
|
"Input validation failed"
|
|
58021
58877
|
);
|
|
58022
58878
|
if (!parsed.ok) {
|
|
@@ -58083,18 +58939,18 @@ async function $do43(client, request, options) {
|
|
|
58083
58939
|
}
|
|
58084
58940
|
|
|
58085
58941
|
// ../sdk/src/funcs/invoices-reissue.ts
|
|
58086
|
-
var
|
|
58942
|
+
var z161 = __toESM(require("zod/v4-mini"), 1);
|
|
58087
58943
|
function invoicesReissue(client, request, options) {
|
|
58088
|
-
return new APIPromise($
|
|
58944
|
+
return new APIPromise($do45(
|
|
58089
58945
|
client,
|
|
58090
58946
|
request,
|
|
58091
58947
|
options
|
|
58092
58948
|
));
|
|
58093
58949
|
}
|
|
58094
|
-
async function $
|
|
58950
|
+
async function $do45(client, request, options) {
|
|
58095
58951
|
const parsed = safeParse(
|
|
58096
58952
|
request,
|
|
58097
|
-
(value) =>
|
|
58953
|
+
(value) => z161.parse(ReissueInvoiceParams$outboundSchema, value),
|
|
58098
58954
|
"Input validation failed"
|
|
58099
58955
|
);
|
|
58100
58956
|
if (!parsed.ok) {
|
|
@@ -58161,18 +59017,18 @@ async function $do44(client, request, options) {
|
|
|
58161
59017
|
}
|
|
58162
59018
|
|
|
58163
59019
|
// ../sdk/src/funcs/invoices-void.ts
|
|
58164
|
-
var
|
|
59020
|
+
var z162 = __toESM(require("zod/v4-mini"), 1);
|
|
58165
59021
|
function invoicesVoid(client, request, options) {
|
|
58166
|
-
return new APIPromise($
|
|
59022
|
+
return new APIPromise($do46(
|
|
58167
59023
|
client,
|
|
58168
59024
|
request,
|
|
58169
59025
|
options
|
|
58170
59026
|
));
|
|
58171
59027
|
}
|
|
58172
|
-
async function $
|
|
59028
|
+
async function $do46(client, request, options) {
|
|
58173
59029
|
const parsed = safeParse(
|
|
58174
59030
|
request,
|
|
58175
|
-
(value) =>
|
|
59031
|
+
(value) => z162.parse(VoidInvoiceParams$outboundSchema, value),
|
|
58176
59032
|
"Input validation failed"
|
|
58177
59033
|
);
|
|
58178
59034
|
if (!parsed.ok) {
|
|
@@ -58313,18 +59169,18 @@ var Invoices = class extends ClientSDK {
|
|
|
58313
59169
|
};
|
|
58314
59170
|
|
|
58315
59171
|
// ../sdk/src/funcs/keys-mint.ts
|
|
58316
|
-
var
|
|
59172
|
+
var z163 = __toESM(require("zod/v4-mini"), 1);
|
|
58317
59173
|
function keysMint(client, request, options) {
|
|
58318
|
-
return new APIPromise($
|
|
59174
|
+
return new APIPromise($do47(
|
|
58319
59175
|
client,
|
|
58320
59176
|
request,
|
|
58321
59177
|
options
|
|
58322
59178
|
));
|
|
58323
59179
|
}
|
|
58324
|
-
async function $
|
|
59180
|
+
async function $do47(client, request, options) {
|
|
58325
59181
|
const parsed = safeParse(
|
|
58326
59182
|
request,
|
|
58327
|
-
(value) =>
|
|
59183
|
+
(value) => z163.parse(MintKeyParams$outboundSchema, value),
|
|
58328
59184
|
"Input validation failed"
|
|
58329
59185
|
);
|
|
58330
59186
|
if (!parsed.ok) {
|
|
@@ -58392,13 +59248,13 @@ async function $do46(client, request, options) {
|
|
|
58392
59248
|
|
|
58393
59249
|
// ../sdk/src/funcs/keys-refresh.ts
|
|
58394
59250
|
function keysRefresh(client, _request, options) {
|
|
58395
|
-
return new APIPromise($
|
|
59251
|
+
return new APIPromise($do48(
|
|
58396
59252
|
client,
|
|
58397
59253
|
_request,
|
|
58398
59254
|
options
|
|
58399
59255
|
));
|
|
58400
59256
|
}
|
|
58401
|
-
async function $
|
|
59257
|
+
async function $do48(client, _request, options) {
|
|
58402
59258
|
const path = pathToFunc("/v1/keys.refresh")();
|
|
58403
59259
|
const headers = new Headers(compactMap({
|
|
58404
59260
|
"Content-Type": "application/json",
|
|
@@ -58457,18 +59313,18 @@ async function $do47(client, _request, options) {
|
|
|
58457
59313
|
}
|
|
58458
59314
|
|
|
58459
59315
|
// ../sdk/src/funcs/keys-revoke.ts
|
|
58460
|
-
var
|
|
59316
|
+
var z164 = __toESM(require("zod/v4-mini"), 1);
|
|
58461
59317
|
function keysRevoke(client, request, options) {
|
|
58462
|
-
return new APIPromise($
|
|
59318
|
+
return new APIPromise($do49(
|
|
58463
59319
|
client,
|
|
58464
59320
|
request,
|
|
58465
59321
|
options
|
|
58466
59322
|
));
|
|
58467
59323
|
}
|
|
58468
|
-
async function $
|
|
59324
|
+
async function $do49(client, request, options) {
|
|
58469
59325
|
const parsed = safeParse(
|
|
58470
59326
|
request,
|
|
58471
|
-
(value) =>
|
|
59327
|
+
(value) => z164.parse(RevokeKeyParams$outboundSchema, value),
|
|
58472
59328
|
"Input validation failed"
|
|
58473
59329
|
);
|
|
58474
59330
|
if (!parsed.ok) {
|
|
@@ -58569,18 +59425,18 @@ var Keys = class extends ClientSDK {
|
|
|
58569
59425
|
};
|
|
58570
59426
|
|
|
58571
59427
|
// ../sdk/src/funcs/licenses-attach.ts
|
|
58572
|
-
var
|
|
59428
|
+
var z165 = __toESM(require("zod/v4-mini"), 1);
|
|
58573
59429
|
function licensesAttach(client, request, options) {
|
|
58574
|
-
return new APIPromise($
|
|
59430
|
+
return new APIPromise($do50(
|
|
58575
59431
|
client,
|
|
58576
59432
|
request,
|
|
58577
59433
|
options
|
|
58578
59434
|
));
|
|
58579
59435
|
}
|
|
58580
|
-
async function $
|
|
59436
|
+
async function $do50(client, request, options) {
|
|
58581
59437
|
const parsed = safeParse(
|
|
58582
59438
|
request,
|
|
58583
|
-
(value) =>
|
|
59439
|
+
(value) => z165.parse(AttachLicenseParams$outboundSchema, value),
|
|
58584
59440
|
"Input validation failed"
|
|
58585
59441
|
);
|
|
58586
59442
|
if (!parsed.ok) {
|
|
@@ -58647,18 +59503,18 @@ async function $do49(client, request, options) {
|
|
|
58647
59503
|
}
|
|
58648
59504
|
|
|
58649
59505
|
// ../sdk/src/funcs/licenses-release.ts
|
|
58650
|
-
var
|
|
59506
|
+
var z166 = __toESM(require("zod/v4-mini"), 1);
|
|
58651
59507
|
function licensesRelease(client, request, options) {
|
|
58652
|
-
return new APIPromise($
|
|
59508
|
+
return new APIPromise($do51(
|
|
58653
59509
|
client,
|
|
58654
59510
|
request,
|
|
58655
59511
|
options
|
|
58656
59512
|
));
|
|
58657
59513
|
}
|
|
58658
|
-
async function $
|
|
59514
|
+
async function $do51(client, request, options) {
|
|
58659
59515
|
const parsed = safeParse(
|
|
58660
59516
|
request,
|
|
58661
|
-
(value) =>
|
|
59517
|
+
(value) => z166.parse(ReleaseLicenseParams$outboundSchema, value),
|
|
58662
59518
|
"Input validation failed"
|
|
58663
59519
|
);
|
|
58664
59520
|
if (!parsed.ok) {
|
|
@@ -58749,18 +59605,18 @@ var Licenses = class extends ClientSDK {
|
|
|
58749
59605
|
};
|
|
58750
59606
|
|
|
58751
59607
|
// ../sdk/src/funcs/logs-search.ts
|
|
58752
|
-
var
|
|
59608
|
+
var z167 = __toESM(require("zod/v4-mini"), 1);
|
|
58753
59609
|
function logsSearch(client, request, options) {
|
|
58754
|
-
return new APIPromise($
|
|
59610
|
+
return new APIPromise($do52(
|
|
58755
59611
|
client,
|
|
58756
59612
|
request,
|
|
58757
59613
|
options
|
|
58758
59614
|
));
|
|
58759
59615
|
}
|
|
58760
|
-
async function $
|
|
59616
|
+
async function $do52(client, request, options) {
|
|
58761
59617
|
const parsed = safeParse(
|
|
58762
59618
|
request,
|
|
58763
|
-
(value) =>
|
|
59619
|
+
(value) => z167.parse(SearchRequestLogsParams$outboundSchema, value),
|
|
58764
59620
|
"Input validation failed"
|
|
58765
59621
|
);
|
|
58766
59622
|
if (!parsed.ok) {
|
|
@@ -58841,18 +59697,18 @@ var Logs = class extends ClientSDK {
|
|
|
58841
59697
|
};
|
|
58842
59698
|
|
|
58843
59699
|
// ../sdk/src/funcs/plans-create.ts
|
|
58844
|
-
var
|
|
59700
|
+
var z168 = __toESM(require("zod/v4-mini"), 1);
|
|
58845
59701
|
function plansCreate(client, request, options) {
|
|
58846
|
-
return new APIPromise($
|
|
59702
|
+
return new APIPromise($do53(
|
|
58847
59703
|
client,
|
|
58848
59704
|
request,
|
|
58849
59705
|
options
|
|
58850
59706
|
));
|
|
58851
59707
|
}
|
|
58852
|
-
async function $
|
|
59708
|
+
async function $do53(client, request, options) {
|
|
58853
59709
|
const parsed = safeParse(
|
|
58854
59710
|
request,
|
|
58855
|
-
(value) =>
|
|
59711
|
+
(value) => z168.parse(CreatePlanParams$outboundSchema, value),
|
|
58856
59712
|
"Input validation failed"
|
|
58857
59713
|
);
|
|
58858
59714
|
if (!parsed.ok) {
|
|
@@ -58919,18 +59775,18 @@ async function $do52(client, request, options) {
|
|
|
58919
59775
|
}
|
|
58920
59776
|
|
|
58921
59777
|
// ../sdk/src/funcs/plans-delete.ts
|
|
58922
|
-
var
|
|
59778
|
+
var z169 = __toESM(require("zod/v4-mini"), 1);
|
|
58923
59779
|
function plansDelete(client, request, options) {
|
|
58924
|
-
return new APIPromise($
|
|
59780
|
+
return new APIPromise($do54(
|
|
58925
59781
|
client,
|
|
58926
59782
|
request,
|
|
58927
59783
|
options
|
|
58928
59784
|
));
|
|
58929
59785
|
}
|
|
58930
|
-
async function $
|
|
59786
|
+
async function $do54(client, request, options) {
|
|
58931
59787
|
const parsed = safeParse(
|
|
58932
59788
|
request,
|
|
58933
|
-
(value) =>
|
|
59789
|
+
(value) => z169.parse(DeletePlanParams$outboundSchema, value),
|
|
58934
59790
|
"Input validation failed"
|
|
58935
59791
|
);
|
|
58936
59792
|
if (!parsed.ok) {
|
|
@@ -58997,18 +59853,18 @@ async function $do53(client, request, options) {
|
|
|
58997
59853
|
}
|
|
58998
59854
|
|
|
58999
59855
|
// ../sdk/src/funcs/plans-get.ts
|
|
59000
|
-
var
|
|
59856
|
+
var z170 = __toESM(require("zod/v4-mini"), 1);
|
|
59001
59857
|
function plansGet(client, request, options) {
|
|
59002
|
-
return new APIPromise($
|
|
59858
|
+
return new APIPromise($do55(
|
|
59003
59859
|
client,
|
|
59004
59860
|
request,
|
|
59005
59861
|
options
|
|
59006
59862
|
));
|
|
59007
59863
|
}
|
|
59008
|
-
async function $
|
|
59864
|
+
async function $do55(client, request, options) {
|
|
59009
59865
|
const parsed = safeParse(
|
|
59010
59866
|
request,
|
|
59011
|
-
(value) =>
|
|
59867
|
+
(value) => z170.parse(GetPlanParams$outboundSchema, value),
|
|
59012
59868
|
"Input validation failed"
|
|
59013
59869
|
);
|
|
59014
59870
|
if (!parsed.ok) {
|
|
@@ -59075,18 +59931,18 @@ async function $do54(client, request, options) {
|
|
|
59075
59931
|
}
|
|
59076
59932
|
|
|
59077
59933
|
// ../sdk/src/funcs/plans-list.ts
|
|
59078
|
-
var
|
|
59934
|
+
var z171 = __toESM(require("zod/v4-mini"), 1);
|
|
59079
59935
|
function plansList(client, request, options) {
|
|
59080
|
-
return new APIPromise($
|
|
59936
|
+
return new APIPromise($do56(
|
|
59081
59937
|
client,
|
|
59082
59938
|
request,
|
|
59083
59939
|
options
|
|
59084
59940
|
));
|
|
59085
59941
|
}
|
|
59086
|
-
async function $
|
|
59942
|
+
async function $do56(client, request, options) {
|
|
59087
59943
|
const parsed = safeParse(
|
|
59088
59944
|
request,
|
|
59089
|
-
(value) =>
|
|
59945
|
+
(value) => z171.parse(z171.optional(ListPlansParams$outboundSchema), value),
|
|
59090
59946
|
"Input validation failed"
|
|
59091
59947
|
);
|
|
59092
59948
|
if (!parsed.ok) {
|
|
@@ -59153,18 +60009,18 @@ async function $do55(client, request, options) {
|
|
|
59153
60009
|
}
|
|
59154
60010
|
|
|
59155
60011
|
// ../sdk/src/funcs/plans-update.ts
|
|
59156
|
-
var
|
|
60012
|
+
var z172 = __toESM(require("zod/v4-mini"), 1);
|
|
59157
60013
|
function plansUpdate(client, request, options) {
|
|
59158
|
-
return new APIPromise($
|
|
60014
|
+
return new APIPromise($do57(
|
|
59159
60015
|
client,
|
|
59160
60016
|
request,
|
|
59161
60017
|
options
|
|
59162
60018
|
));
|
|
59163
60019
|
}
|
|
59164
|
-
async function $
|
|
60020
|
+
async function $do57(client, request, options) {
|
|
59165
60021
|
const parsed = safeParse(
|
|
59166
60022
|
request,
|
|
59167
|
-
(value) =>
|
|
60023
|
+
(value) => z172.parse(UpdatePlanParams$outboundSchema, value),
|
|
59168
60024
|
"Input validation failed"
|
|
59169
60025
|
);
|
|
59170
60026
|
if (!parsed.ok) {
|
|
@@ -59473,18 +60329,18 @@ var Plans = class extends ClientSDK {
|
|
|
59473
60329
|
};
|
|
59474
60330
|
|
|
59475
60331
|
// ../sdk/src/funcs/platform-disconnect-stripe.ts
|
|
59476
|
-
var
|
|
60332
|
+
var z173 = __toESM(require("zod/v4-mini"), 1);
|
|
59477
60333
|
function platformDisconnectStripe(client, request, options) {
|
|
59478
|
-
return new APIPromise($
|
|
60334
|
+
return new APIPromise($do58(
|
|
59479
60335
|
client,
|
|
59480
60336
|
request,
|
|
59481
60337
|
options
|
|
59482
60338
|
));
|
|
59483
60339
|
}
|
|
59484
|
-
async function $
|
|
60340
|
+
async function $do58(client, request, options) {
|
|
59485
60341
|
const parsed = safeParse(
|
|
59486
60342
|
request,
|
|
59487
|
-
(value) =>
|
|
60343
|
+
(value) => z173.parse(DisconnectStripeParams$outboundSchema, value),
|
|
59488
60344
|
"Input validation failed"
|
|
59489
60345
|
);
|
|
59490
60346
|
if (!parsed.ok) {
|
|
@@ -59551,18 +60407,18 @@ async function $do57(client, request, options) {
|
|
|
59551
60407
|
}
|
|
59552
60408
|
|
|
59553
60409
|
// ../sdk/src/funcs/platform-get-revenue-cat-keys.ts
|
|
59554
|
-
var
|
|
60410
|
+
var z174 = __toESM(require("zod/v4-mini"), 1);
|
|
59555
60411
|
function platformGetRevenueCatKeys(client, request, options) {
|
|
59556
|
-
return new APIPromise($
|
|
60412
|
+
return new APIPromise($do59(
|
|
59557
60413
|
client,
|
|
59558
60414
|
request,
|
|
59559
60415
|
options
|
|
59560
60416
|
));
|
|
59561
60417
|
}
|
|
59562
|
-
async function $
|
|
60418
|
+
async function $do59(client, request, options) {
|
|
59563
60419
|
const parsed = safeParse(
|
|
59564
60420
|
request,
|
|
59565
|
-
(value) =>
|
|
60421
|
+
(value) => z174.parse(GetRevenueCatKeysParams$outboundSchema, value),
|
|
59566
60422
|
"Input validation failed"
|
|
59567
60423
|
);
|
|
59568
60424
|
if (!parsed.ok) {
|
|
@@ -59629,18 +60485,18 @@ async function $do58(client, request, options) {
|
|
|
59629
60485
|
}
|
|
59630
60486
|
|
|
59631
60487
|
// ../sdk/src/funcs/platform-get-stripe-connection.ts
|
|
59632
|
-
var
|
|
60488
|
+
var z175 = __toESM(require("zod/v4-mini"), 1);
|
|
59633
60489
|
function platformGetStripeConnection(client, request, options) {
|
|
59634
|
-
return new APIPromise($
|
|
60490
|
+
return new APIPromise($do60(
|
|
59635
60491
|
client,
|
|
59636
60492
|
request,
|
|
59637
60493
|
options
|
|
59638
60494
|
));
|
|
59639
60495
|
}
|
|
59640
|
-
async function $
|
|
60496
|
+
async function $do60(client, request, options) {
|
|
59641
60497
|
const parsed = safeParse(
|
|
59642
60498
|
request,
|
|
59643
|
-
(value) =>
|
|
60499
|
+
(value) => z175.parse(GetStripeConnectionParams$outboundSchema, value),
|
|
59644
60500
|
"Input validation failed"
|
|
59645
60501
|
);
|
|
59646
60502
|
if (!parsed.ok) {
|
|
@@ -59707,18 +60563,18 @@ async function $do59(client, request, options) {
|
|
|
59707
60563
|
}
|
|
59708
60564
|
|
|
59709
60565
|
// ../sdk/src/funcs/platform-link-revenue-cat.ts
|
|
59710
|
-
var
|
|
60566
|
+
var z176 = __toESM(require("zod/v4-mini"), 1);
|
|
59711
60567
|
function platformLinkRevenueCat(client, request, options) {
|
|
59712
|
-
return new APIPromise($
|
|
60568
|
+
return new APIPromise($do61(
|
|
59713
60569
|
client,
|
|
59714
60570
|
request,
|
|
59715
60571
|
options
|
|
59716
60572
|
));
|
|
59717
60573
|
}
|
|
59718
|
-
async function $
|
|
60574
|
+
async function $do61(client, request, options) {
|
|
59719
60575
|
const parsed = safeParse(
|
|
59720
60576
|
request,
|
|
59721
|
-
(value) =>
|
|
60577
|
+
(value) => z176.parse(LinkRevenueCatParams$outboundSchema, value),
|
|
59722
60578
|
"Input validation failed"
|
|
59723
60579
|
);
|
|
59724
60580
|
if (!parsed.ok) {
|
|
@@ -59785,18 +60641,18 @@ async function $do60(client, request, options) {
|
|
|
59785
60641
|
}
|
|
59786
60642
|
|
|
59787
60643
|
// ../sdk/src/funcs/platform-sync-revenue-cat.ts
|
|
59788
|
-
var
|
|
60644
|
+
var z177 = __toESM(require("zod/v4-mini"), 1);
|
|
59789
60645
|
function platformSyncRevenueCat(client, request, options) {
|
|
59790
|
-
return new APIPromise($
|
|
60646
|
+
return new APIPromise($do62(
|
|
59791
60647
|
client,
|
|
59792
60648
|
request,
|
|
59793
60649
|
options
|
|
59794
60650
|
));
|
|
59795
60651
|
}
|
|
59796
|
-
async function $
|
|
60652
|
+
async function $do62(client, request, options) {
|
|
59797
60653
|
const parsed = safeParse(
|
|
59798
60654
|
request,
|
|
59799
|
-
(value) =>
|
|
60655
|
+
(value) => z177.parse(SyncRevenueCatParams$outboundSchema, value),
|
|
59800
60656
|
"Input validation failed"
|
|
59801
60657
|
);
|
|
59802
60658
|
if (!parsed.ok) {
|
|
@@ -59917,18 +60773,18 @@ var Platform = class extends ClientSDK {
|
|
|
59917
60773
|
};
|
|
59918
60774
|
|
|
59919
60775
|
// ../sdk/src/funcs/referrals-create-code.ts
|
|
59920
|
-
var
|
|
60776
|
+
var z178 = __toESM(require("zod/v4-mini"), 1);
|
|
59921
60777
|
function referralsCreateCode(client, request, options) {
|
|
59922
|
-
return new APIPromise($
|
|
60778
|
+
return new APIPromise($do63(
|
|
59923
60779
|
client,
|
|
59924
60780
|
request,
|
|
59925
60781
|
options
|
|
59926
60782
|
));
|
|
59927
60783
|
}
|
|
59928
|
-
async function $
|
|
60784
|
+
async function $do63(client, request, options) {
|
|
59929
60785
|
const parsed = safeParse(
|
|
59930
60786
|
request,
|
|
59931
|
-
(value) =>
|
|
60787
|
+
(value) => z178.parse(CreateReferralCodeParams$outboundSchema, value),
|
|
59932
60788
|
"Input validation failed"
|
|
59933
60789
|
);
|
|
59934
60790
|
if (!parsed.ok) {
|
|
@@ -59995,18 +60851,18 @@ async function $do62(client, request, options) {
|
|
|
59995
60851
|
}
|
|
59996
60852
|
|
|
59997
60853
|
// ../sdk/src/funcs/referrals-create-program.ts
|
|
59998
|
-
var
|
|
60854
|
+
var z179 = __toESM(require("zod/v4-mini"), 1);
|
|
59999
60855
|
function referralsCreateProgram(client, request, options) {
|
|
60000
|
-
return new APIPromise($
|
|
60856
|
+
return new APIPromise($do64(
|
|
60001
60857
|
client,
|
|
60002
60858
|
request,
|
|
60003
60859
|
options
|
|
60004
60860
|
));
|
|
60005
60861
|
}
|
|
60006
|
-
async function $
|
|
60862
|
+
async function $do64(client, request, options) {
|
|
60007
60863
|
const parsed = safeParse(
|
|
60008
60864
|
request,
|
|
60009
|
-
(value) =>
|
|
60865
|
+
(value) => z179.parse(CreateReferralProgramParams$outboundSchema, value),
|
|
60010
60866
|
"Input validation failed"
|
|
60011
60867
|
);
|
|
60012
60868
|
if (!parsed.ok) {
|
|
@@ -60073,18 +60929,18 @@ async function $do63(client, request, options) {
|
|
|
60073
60929
|
}
|
|
60074
60930
|
|
|
60075
60931
|
// ../sdk/src/funcs/referrals-delete-program.ts
|
|
60076
|
-
var
|
|
60932
|
+
var z180 = __toESM(require("zod/v4-mini"), 1);
|
|
60077
60933
|
function referralsDeleteProgram(client, request, options) {
|
|
60078
|
-
return new APIPromise($
|
|
60934
|
+
return new APIPromise($do65(
|
|
60079
60935
|
client,
|
|
60080
60936
|
request,
|
|
60081
60937
|
options
|
|
60082
60938
|
));
|
|
60083
60939
|
}
|
|
60084
|
-
async function $
|
|
60940
|
+
async function $do65(client, request, options) {
|
|
60085
60941
|
const parsed = safeParse(
|
|
60086
60942
|
request,
|
|
60087
|
-
(value) =>
|
|
60943
|
+
(value) => z180.parse(DeleteReferralProgramParams$outboundSchema, value),
|
|
60088
60944
|
"Input validation failed"
|
|
60089
60945
|
);
|
|
60090
60946
|
if (!parsed.ok) {
|
|
@@ -60151,18 +61007,18 @@ async function $do64(client, request, options) {
|
|
|
60151
61007
|
}
|
|
60152
61008
|
|
|
60153
61009
|
// ../sdk/src/funcs/referrals-get-program.ts
|
|
60154
|
-
var
|
|
61010
|
+
var z181 = __toESM(require("zod/v4-mini"), 1);
|
|
60155
61011
|
function referralsGetProgram(client, request, options) {
|
|
60156
|
-
return new APIPromise($
|
|
61012
|
+
return new APIPromise($do66(
|
|
60157
61013
|
client,
|
|
60158
61014
|
request,
|
|
60159
61015
|
options
|
|
60160
61016
|
));
|
|
60161
61017
|
}
|
|
60162
|
-
async function $
|
|
61018
|
+
async function $do66(client, request, options) {
|
|
60163
61019
|
const parsed = safeParse(
|
|
60164
61020
|
request,
|
|
60165
|
-
(value) =>
|
|
61021
|
+
(value) => z181.parse(GetReferralProgramParams$outboundSchema, value),
|
|
60166
61022
|
"Input validation failed"
|
|
60167
61023
|
);
|
|
60168
61024
|
if (!parsed.ok) {
|
|
@@ -60230,13 +61086,13 @@ async function $do65(client, request, options) {
|
|
|
60230
61086
|
|
|
60231
61087
|
// ../sdk/src/funcs/referrals-list-programs.ts
|
|
60232
61088
|
function referralsListPrograms(client, _request, options) {
|
|
60233
|
-
return new APIPromise($
|
|
61089
|
+
return new APIPromise($do67(
|
|
60234
61090
|
client,
|
|
60235
61091
|
_request,
|
|
60236
61092
|
options
|
|
60237
61093
|
));
|
|
60238
61094
|
}
|
|
60239
|
-
async function $
|
|
61095
|
+
async function $do67(client, _request, options) {
|
|
60240
61096
|
const path = pathToFunc("/v1/referral_programs.list")();
|
|
60241
61097
|
const headers = new Headers(compactMap({
|
|
60242
61098
|
"Content-Type": "application/json",
|
|
@@ -60295,18 +61151,18 @@ async function $do66(client, _request, options) {
|
|
|
60295
61151
|
}
|
|
60296
61152
|
|
|
60297
61153
|
// ../sdk/src/funcs/referrals-redeem-code.ts
|
|
60298
|
-
var
|
|
61154
|
+
var z182 = __toESM(require("zod/v4-mini"), 1);
|
|
60299
61155
|
function referralsRedeemCode(client, request, options) {
|
|
60300
|
-
return new APIPromise($
|
|
61156
|
+
return new APIPromise($do68(
|
|
60301
61157
|
client,
|
|
60302
61158
|
request,
|
|
60303
61159
|
options
|
|
60304
61160
|
));
|
|
60305
61161
|
}
|
|
60306
|
-
async function $
|
|
61162
|
+
async function $do68(client, request, options) {
|
|
60307
61163
|
const parsed = safeParse(
|
|
60308
61164
|
request,
|
|
60309
|
-
(value) =>
|
|
61165
|
+
(value) => z182.parse(RedeemReferralCodeParams$outboundSchema, value),
|
|
60310
61166
|
"Input validation failed"
|
|
60311
61167
|
);
|
|
60312
61168
|
if (!parsed.ok) {
|
|
@@ -60373,18 +61229,18 @@ async function $do67(client, request, options) {
|
|
|
60373
61229
|
}
|
|
60374
61230
|
|
|
60375
61231
|
// ../sdk/src/funcs/referrals-update-program.ts
|
|
60376
|
-
var
|
|
61232
|
+
var z183 = __toESM(require("zod/v4-mini"), 1);
|
|
60377
61233
|
function referralsUpdateProgram(client, request, options) {
|
|
60378
|
-
return new APIPromise($
|
|
61234
|
+
return new APIPromise($do69(
|
|
60379
61235
|
client,
|
|
60380
61236
|
request,
|
|
60381
61237
|
options
|
|
60382
61238
|
));
|
|
60383
61239
|
}
|
|
60384
|
-
async function $
|
|
61240
|
+
async function $do69(client, request, options) {
|
|
60385
61241
|
const parsed = safeParse(
|
|
60386
61242
|
request,
|
|
60387
|
-
(value) =>
|
|
61243
|
+
(value) => z183.parse(UpdateReferralProgramParams$outboundSchema, value),
|
|
60388
61244
|
"Input validation failed"
|
|
60389
61245
|
);
|
|
60390
61246
|
if (!parsed.ok) {
|
|
@@ -60525,18 +61381,18 @@ var Referrals = class extends ClientSDK {
|
|
|
60525
61381
|
};
|
|
60526
61382
|
|
|
60527
61383
|
// ../sdk/src/funcs/rewards-create.ts
|
|
60528
|
-
var
|
|
61384
|
+
var z184 = __toESM(require("zod/v4-mini"), 1);
|
|
60529
61385
|
function rewardsCreate(client, request, options) {
|
|
60530
|
-
return new APIPromise($
|
|
61386
|
+
return new APIPromise($do70(
|
|
60531
61387
|
client,
|
|
60532
61388
|
request,
|
|
60533
61389
|
options
|
|
60534
61390
|
));
|
|
60535
61391
|
}
|
|
60536
|
-
async function $
|
|
61392
|
+
async function $do70(client, request, options) {
|
|
60537
61393
|
const parsed = safeParse(
|
|
60538
61394
|
request,
|
|
60539
|
-
(value) =>
|
|
61395
|
+
(value) => z184.parse(CreateRewardParams$outboundSchema, value),
|
|
60540
61396
|
"Input validation failed"
|
|
60541
61397
|
);
|
|
60542
61398
|
if (!parsed.ok) {
|
|
@@ -60603,18 +61459,18 @@ async function $do69(client, request, options) {
|
|
|
60603
61459
|
}
|
|
60604
61460
|
|
|
60605
61461
|
// ../sdk/src/funcs/rewards-delete.ts
|
|
60606
|
-
var
|
|
61462
|
+
var z185 = __toESM(require("zod/v4-mini"), 1);
|
|
60607
61463
|
function rewardsDelete(client, request, options) {
|
|
60608
|
-
return new APIPromise($
|
|
61464
|
+
return new APIPromise($do71(
|
|
60609
61465
|
client,
|
|
60610
61466
|
request,
|
|
60611
61467
|
options
|
|
60612
61468
|
));
|
|
60613
61469
|
}
|
|
60614
|
-
async function $
|
|
61470
|
+
async function $do71(client, request, options) {
|
|
60615
61471
|
const parsed = safeParse(
|
|
60616
61472
|
request,
|
|
60617
|
-
(value) =>
|
|
61473
|
+
(value) => z185.parse(DeleteRewardParams$outboundSchema, value),
|
|
60618
61474
|
"Input validation failed"
|
|
60619
61475
|
);
|
|
60620
61476
|
if (!parsed.ok) {
|
|
@@ -60681,18 +61537,18 @@ async function $do70(client, request, options) {
|
|
|
60681
61537
|
}
|
|
60682
61538
|
|
|
60683
61539
|
// ../sdk/src/funcs/rewards-get.ts
|
|
60684
|
-
var
|
|
61540
|
+
var z186 = __toESM(require("zod/v4-mini"), 1);
|
|
60685
61541
|
function rewardsGet(client, request, options) {
|
|
60686
|
-
return new APIPromise($
|
|
61542
|
+
return new APIPromise($do72(
|
|
60687
61543
|
client,
|
|
60688
61544
|
request,
|
|
60689
61545
|
options
|
|
60690
61546
|
));
|
|
60691
61547
|
}
|
|
60692
|
-
async function $
|
|
61548
|
+
async function $do72(client, request, options) {
|
|
60693
61549
|
const parsed = safeParse(
|
|
60694
61550
|
request,
|
|
60695
|
-
(value) =>
|
|
61551
|
+
(value) => z186.parse(GetRewardParams$outboundSchema, value),
|
|
60696
61552
|
"Input validation failed"
|
|
60697
61553
|
);
|
|
60698
61554
|
if (!parsed.ok) {
|
|
@@ -60760,13 +61616,13 @@ async function $do71(client, request, options) {
|
|
|
60760
61616
|
|
|
60761
61617
|
// ../sdk/src/funcs/rewards-list.ts
|
|
60762
61618
|
function rewardsList(client, _request, options) {
|
|
60763
|
-
return new APIPromise($
|
|
61619
|
+
return new APIPromise($do73(
|
|
60764
61620
|
client,
|
|
60765
61621
|
_request,
|
|
60766
61622
|
options
|
|
60767
61623
|
));
|
|
60768
61624
|
}
|
|
60769
|
-
async function $
|
|
61625
|
+
async function $do73(client, _request, options) {
|
|
60770
61626
|
const path = pathToFunc("/v1/rewards.list")();
|
|
60771
61627
|
const headers = new Headers(compactMap({
|
|
60772
61628
|
"Content-Type": "application/json",
|
|
@@ -60825,18 +61681,18 @@ async function $do72(client, _request, options) {
|
|
|
60825
61681
|
}
|
|
60826
61682
|
|
|
60827
61683
|
// ../sdk/src/funcs/rewards-redeem-code.ts
|
|
60828
|
-
var
|
|
61684
|
+
var z187 = __toESM(require("zod/v4-mini"), 1);
|
|
60829
61685
|
function rewardsRedeemCode(client, request, options) {
|
|
60830
|
-
return new APIPromise($
|
|
61686
|
+
return new APIPromise($do74(
|
|
60831
61687
|
client,
|
|
60832
61688
|
request,
|
|
60833
61689
|
options
|
|
60834
61690
|
));
|
|
60835
61691
|
}
|
|
60836
|
-
async function $
|
|
61692
|
+
async function $do74(client, request, options) {
|
|
60837
61693
|
const parsed = safeParse(
|
|
60838
61694
|
request,
|
|
60839
|
-
(value) =>
|
|
61695
|
+
(value) => z187.parse(RedeemRewardCodeParams$outboundSchema, value),
|
|
60840
61696
|
"Input validation failed"
|
|
60841
61697
|
);
|
|
60842
61698
|
if (!parsed.ok) {
|
|
@@ -60903,18 +61759,18 @@ async function $do73(client, request, options) {
|
|
|
60903
61759
|
}
|
|
60904
61760
|
|
|
60905
61761
|
// ../sdk/src/funcs/rewards-update.ts
|
|
60906
|
-
var
|
|
61762
|
+
var z188 = __toESM(require("zod/v4-mini"), 1);
|
|
60907
61763
|
function rewardsUpdate(client, request, options) {
|
|
60908
|
-
return new APIPromise($
|
|
61764
|
+
return new APIPromise($do75(
|
|
60909
61765
|
client,
|
|
60910
61766
|
request,
|
|
60911
61767
|
options
|
|
60912
61768
|
));
|
|
60913
61769
|
}
|
|
60914
|
-
async function $
|
|
61770
|
+
async function $do75(client, request, options) {
|
|
60915
61771
|
const parsed = safeParse(
|
|
60916
61772
|
request,
|
|
60917
|
-
(value) =>
|
|
61773
|
+
(value) => z188.parse(UpdateRewardParams$outboundSchema, value),
|
|
60918
61774
|
"Input validation failed"
|
|
60919
61775
|
);
|
|
60920
61776
|
if (!parsed.ok) {
|
|
@@ -61045,18 +61901,18 @@ var Rewards = class extends ClientSDK {
|
|
|
61045
61901
|
};
|
|
61046
61902
|
|
|
61047
61903
|
// ../sdk/src/funcs/sandboxes-create.ts
|
|
61048
|
-
var
|
|
61904
|
+
var z189 = __toESM(require("zod/v4-mini"), 1);
|
|
61049
61905
|
function sandboxesCreate(client, request, options) {
|
|
61050
|
-
return new APIPromise($
|
|
61906
|
+
return new APIPromise($do76(
|
|
61051
61907
|
client,
|
|
61052
61908
|
request,
|
|
61053
61909
|
options
|
|
61054
61910
|
));
|
|
61055
61911
|
}
|
|
61056
|
-
async function $
|
|
61912
|
+
async function $do76(client, request, options) {
|
|
61057
61913
|
const parsed = safeParse(
|
|
61058
61914
|
request,
|
|
61059
|
-
(value) =>
|
|
61915
|
+
(value) => z189.parse(CreateSandboxParams$outboundSchema, value),
|
|
61060
61916
|
"Input validation failed"
|
|
61061
61917
|
);
|
|
61062
61918
|
if (!parsed.ok) {
|
|
@@ -61123,18 +61979,18 @@ async function $do75(client, request, options) {
|
|
|
61123
61979
|
}
|
|
61124
61980
|
|
|
61125
61981
|
// ../sdk/src/funcs/sandboxes-delete.ts
|
|
61126
|
-
var
|
|
61982
|
+
var z190 = __toESM(require("zod/v4-mini"), 1);
|
|
61127
61983
|
function sandboxesDelete(client, request, options) {
|
|
61128
|
-
return new APIPromise($
|
|
61984
|
+
return new APIPromise($do77(
|
|
61129
61985
|
client,
|
|
61130
61986
|
request,
|
|
61131
61987
|
options
|
|
61132
61988
|
));
|
|
61133
61989
|
}
|
|
61134
|
-
async function $
|
|
61990
|
+
async function $do77(client, request, options) {
|
|
61135
61991
|
const parsed = safeParse(
|
|
61136
61992
|
request,
|
|
61137
|
-
(value) =>
|
|
61993
|
+
(value) => z190.parse(DeleteSandboxParams$outboundSchema, value),
|
|
61138
61994
|
"Input validation failed"
|
|
61139
61995
|
);
|
|
61140
61996
|
if (!parsed.ok) {
|
|
@@ -61202,13 +62058,13 @@ async function $do76(client, request, options) {
|
|
|
61202
62058
|
|
|
61203
62059
|
// ../sdk/src/funcs/sandboxes-list.ts
|
|
61204
62060
|
function sandboxesList(client, _request, options) {
|
|
61205
|
-
return new APIPromise($
|
|
62061
|
+
return new APIPromise($do78(
|
|
61206
62062
|
client,
|
|
61207
62063
|
_request,
|
|
61208
62064
|
options
|
|
61209
62065
|
));
|
|
61210
62066
|
}
|
|
61211
|
-
async function $
|
|
62067
|
+
async function $do78(client, _request, options) {
|
|
61212
62068
|
const path = pathToFunc("/v1/sandboxes.list")();
|
|
61213
62069
|
const headers = new Headers(compactMap({
|
|
61214
62070
|
"Content-Type": "application/json",
|
|
@@ -61268,13 +62124,13 @@ async function $do77(client, _request, options) {
|
|
|
61268
62124
|
|
|
61269
62125
|
// ../sdk/src/funcs/sandboxes-reset.ts
|
|
61270
62126
|
function sandboxesReset(client, _request, options) {
|
|
61271
|
-
return new APIPromise($
|
|
62127
|
+
return new APIPromise($do79(
|
|
61272
62128
|
client,
|
|
61273
62129
|
_request,
|
|
61274
62130
|
options
|
|
61275
62131
|
));
|
|
61276
62132
|
}
|
|
61277
|
-
async function $
|
|
62133
|
+
async function $do79(client, _request, options) {
|
|
61278
62134
|
const path = pathToFunc("/v1/sandboxes.reset")();
|
|
61279
62135
|
const headers = new Headers(compactMap({
|
|
61280
62136
|
"Content-Type": "application/json",
|
|
@@ -61377,18 +62233,18 @@ var Sandboxes = class extends ClientSDK {
|
|
|
61377
62233
|
};
|
|
61378
62234
|
|
|
61379
62235
|
// ../sdk/src/funcs/webhooks-create.ts
|
|
61380
|
-
var
|
|
62236
|
+
var z191 = __toESM(require("zod/v4-mini"), 1);
|
|
61381
62237
|
function webhooksCreate(client, request, options) {
|
|
61382
|
-
return new APIPromise($
|
|
62238
|
+
return new APIPromise($do80(
|
|
61383
62239
|
client,
|
|
61384
62240
|
request,
|
|
61385
62241
|
options
|
|
61386
62242
|
));
|
|
61387
62243
|
}
|
|
61388
|
-
async function $
|
|
62244
|
+
async function $do80(client, request, options) {
|
|
61389
62245
|
const parsed = safeParse(
|
|
61390
62246
|
request,
|
|
61391
|
-
(value) =>
|
|
62247
|
+
(value) => z191.parse(CreateWebhookParams$outboundSchema, value),
|
|
61392
62248
|
"Input validation failed"
|
|
61393
62249
|
);
|
|
61394
62250
|
if (!parsed.ok) {
|
|
@@ -61455,18 +62311,18 @@ async function $do79(client, request, options) {
|
|
|
61455
62311
|
}
|
|
61456
62312
|
|
|
61457
62313
|
// ../sdk/src/funcs/webhooks-delete.ts
|
|
61458
|
-
var
|
|
62314
|
+
var z192 = __toESM(require("zod/v4-mini"), 1);
|
|
61459
62315
|
function webhooksDelete(client, request, options) {
|
|
61460
|
-
return new APIPromise($
|
|
62316
|
+
return new APIPromise($do81(
|
|
61461
62317
|
client,
|
|
61462
62318
|
request,
|
|
61463
62319
|
options
|
|
61464
62320
|
));
|
|
61465
62321
|
}
|
|
61466
|
-
async function $
|
|
62322
|
+
async function $do81(client, request, options) {
|
|
61467
62323
|
const parsed = safeParse(
|
|
61468
62324
|
request,
|
|
61469
|
-
(value) =>
|
|
62325
|
+
(value) => z192.parse(DeleteWebhookParams$outboundSchema, value),
|
|
61470
62326
|
"Input validation failed"
|
|
61471
62327
|
);
|
|
61472
62328
|
if (!parsed.ok) {
|
|
@@ -61533,18 +62389,18 @@ async function $do80(client, request, options) {
|
|
|
61533
62389
|
}
|
|
61534
62390
|
|
|
61535
62391
|
// ../sdk/src/funcs/webhooks-get.ts
|
|
61536
|
-
var
|
|
62392
|
+
var z193 = __toESM(require("zod/v4-mini"), 1);
|
|
61537
62393
|
function webhooksGet(client, request, options) {
|
|
61538
|
-
return new APIPromise($
|
|
62394
|
+
return new APIPromise($do82(
|
|
61539
62395
|
client,
|
|
61540
62396
|
request,
|
|
61541
62397
|
options
|
|
61542
62398
|
));
|
|
61543
62399
|
}
|
|
61544
|
-
async function $
|
|
62400
|
+
async function $do82(client, request, options) {
|
|
61545
62401
|
const parsed = safeParse(
|
|
61546
62402
|
request,
|
|
61547
|
-
(value) =>
|
|
62403
|
+
(value) => z193.parse(GetWebhookParams$outboundSchema, value),
|
|
61548
62404
|
"Input validation failed"
|
|
61549
62405
|
);
|
|
61550
62406
|
if (!parsed.ok) {
|
|
@@ -61612,13 +62468,13 @@ async function $do81(client, request, options) {
|
|
|
61612
62468
|
|
|
61613
62469
|
// ../sdk/src/funcs/webhooks-list.ts
|
|
61614
62470
|
function webhooksList(client, _request, options) {
|
|
61615
|
-
return new APIPromise($
|
|
62471
|
+
return new APIPromise($do83(
|
|
61616
62472
|
client,
|
|
61617
62473
|
_request,
|
|
61618
62474
|
options
|
|
61619
62475
|
));
|
|
61620
62476
|
}
|
|
61621
|
-
async function $
|
|
62477
|
+
async function $do83(client, _request, options) {
|
|
61622
62478
|
const path = pathToFunc("/v1/webhooks.list")();
|
|
61623
62479
|
const headers = new Headers(compactMap({
|
|
61624
62480
|
"Content-Type": "application/json",
|
|
@@ -61677,18 +62533,18 @@ async function $do82(client, _request, options) {
|
|
|
61677
62533
|
}
|
|
61678
62534
|
|
|
61679
62535
|
// ../sdk/src/funcs/webhooks-preview-sync.ts
|
|
61680
|
-
var
|
|
62536
|
+
var z194 = __toESM(require("zod/v4-mini"), 1);
|
|
61681
62537
|
function webhooksPreviewSync(client, request, options) {
|
|
61682
|
-
return new APIPromise($
|
|
62538
|
+
return new APIPromise($do84(
|
|
61683
62539
|
client,
|
|
61684
62540
|
request,
|
|
61685
62541
|
options
|
|
61686
62542
|
));
|
|
61687
62543
|
}
|
|
61688
|
-
async function $
|
|
62544
|
+
async function $do84(client, request, options) {
|
|
61689
62545
|
const parsed = safeParse(
|
|
61690
62546
|
request,
|
|
61691
|
-
(value) =>
|
|
62547
|
+
(value) => z194.parse(
|
|
61692
62548
|
PreviewSyncWebhooksSyncWebhooksParams$outboundSchema,
|
|
61693
62549
|
value
|
|
61694
62550
|
),
|
|
@@ -61758,18 +62614,18 @@ async function $do83(client, request, options) {
|
|
|
61758
62614
|
}
|
|
61759
62615
|
|
|
61760
62616
|
// ../sdk/src/funcs/webhooks-sync.ts
|
|
61761
|
-
var
|
|
62617
|
+
var z195 = __toESM(require("zod/v4-mini"), 1);
|
|
61762
62618
|
function webhooksSync(client, request, options) {
|
|
61763
|
-
return new APIPromise($
|
|
62619
|
+
return new APIPromise($do85(
|
|
61764
62620
|
client,
|
|
61765
62621
|
request,
|
|
61766
62622
|
options
|
|
61767
62623
|
));
|
|
61768
62624
|
}
|
|
61769
|
-
async function $
|
|
62625
|
+
async function $do85(client, request, options) {
|
|
61770
62626
|
const parsed = safeParse(
|
|
61771
62627
|
request,
|
|
61772
|
-
(value) =>
|
|
62628
|
+
(value) => z195.parse(SyncWebhooksSyncWebhooksParams$outboundSchema, value),
|
|
61773
62629
|
"Input validation failed"
|
|
61774
62630
|
);
|
|
61775
62631
|
if (!parsed.ok) {
|
|
@@ -61836,18 +62692,18 @@ async function $do84(client, request, options) {
|
|
|
61836
62692
|
}
|
|
61837
62693
|
|
|
61838
62694
|
// ../sdk/src/funcs/webhooks-update.ts
|
|
61839
|
-
var
|
|
62695
|
+
var z196 = __toESM(require("zod/v4-mini"), 1);
|
|
61840
62696
|
function webhooksUpdate(client, request, options) {
|
|
61841
|
-
return new APIPromise($
|
|
62697
|
+
return new APIPromise($do86(
|
|
61842
62698
|
client,
|
|
61843
62699
|
request,
|
|
61844
62700
|
options
|
|
61845
62701
|
));
|
|
61846
62702
|
}
|
|
61847
|
-
async function $
|
|
62703
|
+
async function $do86(client, request, options) {
|
|
61848
62704
|
const parsed = safeParse(
|
|
61849
62705
|
request,
|
|
61850
|
-
(value) =>
|
|
62706
|
+
(value) => z196.parse(UpdateWebhookParams$outboundSchema, value),
|
|
61851
62707
|
"Input validation failed"
|
|
61852
62708
|
);
|
|
61853
62709
|
if (!parsed.ok) {
|