autumn-js 1.3.13 → 1.3.15
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 +10761 -10483
- package/dist/backend/adapters/express.mjs +5 -5
- package/dist/backend/adapters/fetch.js +10761 -10483
- package/dist/backend/adapters/fetch.mjs +5 -5
- package/dist/backend/adapters/hono.js +10761 -10483
- package/dist/backend/adapters/hono.mjs +5 -5
- package/dist/backend/adapters/index.js +10761 -10483
- package/dist/backend/adapters/index.mjs +8 -8
- package/dist/backend/adapters/next.js +10761 -10483
- package/dist/backend/adapters/next.mjs +5 -5
- package/dist/backend/{chunk-C2NPCEJI.mjs → chunk-3NWZ5JCS.mjs} +1 -1
- package/dist/backend/{chunk-C6ZZJ7EE.mjs → chunk-5L2FQENX.mjs} +1 -1
- package/dist/backend/{chunk-IAILCOBU.mjs → chunk-HLTECDHI.mjs} +10740 -10478
- package/dist/backend/{chunk-R6G7SG3N.mjs → chunk-ITZ2QE2R.mjs} +16 -0
- package/dist/backend/{chunk-DPUV4QAN.mjs → chunk-NFNIIF6U.mjs} +1 -1
- package/dist/backend/{chunk-2UUPONJZ.mjs → chunk-QRHOBVQP.mjs} +1 -1
- package/dist/backend/{chunk-SYMBZ24L.mjs → chunk-SQEGXZCR.mjs} +2 -2
- package/dist/backend/{chunk-XJWHTUI6.mjs → chunk-WTIOYLNM.mjs} +2 -2
- 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 +10761 -10483
- package/dist/backend/core/handlers/coreHandler.mjs +3 -3
- 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/handleRouteByName.js +10761 -10483
- package/dist/backend/core/handlers/handleRouteByName.mjs +3 -3
- 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 +10761 -10483
- package/dist/backend/core/handlers/index.mjs +4 -4
- package/dist/backend/core/index.d.mts +1 -1
- package/dist/backend/core/index.d.ts +1 -1
- package/dist/backend/core/index.js +10761 -10483
- package/dist/backend/core/index.mjs +4 -4
- 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.js +16 -0
- 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.js +16 -0
- 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/index.d.mts +2 -2
- package/dist/backend/index.d.ts +2 -2
- package/dist/backend/index.js +10761 -10483
- package/dist/backend/index.mjs +4 -4
- package/dist/backend/{routeTypes-CIZ-ZBtX.d.ts → routeTypes-BO-VBvq4.d.ts} +108 -1
- package/dist/backend/{routeTypes-BoCJIb-T.d.mts → routeTypes-BPqyn4tP.d.mts} +108 -1
- package/dist/better-auth/{chunk-U5BLUB3E.mjs → chunk-AXWF2UCR.mjs} +16 -0
- package/dist/better-auth/{chunk-C6ATXDH4.mjs → chunk-IQCXDDKS.mjs} +10741 -10479
- package/dist/better-auth/{chunk-CWELMXBP.mjs → chunk-IT7LJSHT.mjs} +1 -1
- package/dist/better-auth/index.js +10761 -10483
- package/dist/better-auth/index.mjs +3 -3
- package/dist/better-auth/utils/createAutumnEndpoint.js +16 -0
- package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
- package/dist/better-auth/utils/handleBetterAuthRoute.js +10761 -10483
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
- package/dist/better-auth/utils/index.js +10761 -10483
- package/dist/better-auth/utils/index.mjs +3 -3
- 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-B5IVa4Ut.d.mts → params-BNmjxPTb.d.mts} +26 -0
- package/dist/react/{params-CT8HBmlA.d.ts → params-DOhtJtIQ.d.ts} +26 -0
- package/dist/sdk/index.d.mts +158 -2
- package/dist/sdk/index.d.ts +158 -2
- package/dist/sdk/index.js +343 -39
- package/dist/sdk/index.mjs +328 -40
- package/package.json +2 -2
package/dist/sdk/index.js
CHANGED
|
@@ -8243,6 +8243,23 @@ function billingUpdateAttachDiscountToJSON(billingUpdateAttachDiscount) {
|
|
|
8243
8243
|
)
|
|
8244
8244
|
);
|
|
8245
8245
|
}
|
|
8246
|
+
var BillingUpdateRemoveDiscount$outboundSchema = z34__namespace.pipe(
|
|
8247
|
+
z34__namespace.object({
|
|
8248
|
+
rewardId: z34__namespace.string()
|
|
8249
|
+
}),
|
|
8250
|
+
z34__namespace.transform((v) => {
|
|
8251
|
+
return remap(v, {
|
|
8252
|
+
rewardId: "reward_id"
|
|
8253
|
+
});
|
|
8254
|
+
})
|
|
8255
|
+
);
|
|
8256
|
+
function billingUpdateRemoveDiscountToJSON(billingUpdateRemoveDiscount) {
|
|
8257
|
+
return JSON.stringify(
|
|
8258
|
+
BillingUpdateRemoveDiscount$outboundSchema.parse(
|
|
8259
|
+
billingUpdateRemoveDiscount
|
|
8260
|
+
)
|
|
8261
|
+
);
|
|
8262
|
+
}
|
|
8246
8263
|
var BillingUpdateCustomLineItem$outboundSchema = z34__namespace.object({
|
|
8247
8264
|
amount: z34__namespace.number(),
|
|
8248
8265
|
description: z34__namespace.string()
|
|
@@ -8337,6 +8354,9 @@ var UpdateSubscriptionParams$outboundSchema = z34__namespace.pipe(
|
|
|
8337
8354
|
discounts: z34__namespace.optional(
|
|
8338
8355
|
z34__namespace.array(z34__namespace.lazy(() => BillingUpdateAttachDiscount$outboundSchema))
|
|
8339
8356
|
),
|
|
8357
|
+
removeDiscounts: z34__namespace.optional(
|
|
8358
|
+
z34__namespace.array(z34__namespace.lazy(() => BillingUpdateRemoveDiscount$outboundSchema))
|
|
8359
|
+
),
|
|
8340
8360
|
customLineItems: z34__namespace.optional(
|
|
8341
8361
|
z34__namespace.array(z34__namespace.lazy(() => BillingUpdateCustomLineItem$outboundSchema))
|
|
8342
8362
|
),
|
|
@@ -8368,6 +8388,7 @@ var UpdateSubscriptionParams$outboundSchema = z34__namespace.pipe(
|
|
|
8368
8388
|
prorationBehavior: "proration_behavior",
|
|
8369
8389
|
redirectMode: "redirect_mode",
|
|
8370
8390
|
subscriptionId: "subscription_id",
|
|
8391
|
+
removeDiscounts: "remove_discounts",
|
|
8371
8392
|
customLineItems: "custom_line_items",
|
|
8372
8393
|
cancelAction: "cancel_action",
|
|
8373
8394
|
billingCycleAnchor: "billing_cycle_anchor",
|
|
@@ -30873,6 +30894,37 @@ function deleteSandboxResponseFromJSON(jsonString) {
|
|
|
30873
30894
|
`Failed to parse 'DeleteSandboxResponse' from JSON`
|
|
30874
30895
|
);
|
|
30875
30896
|
}
|
|
30897
|
+
var DisconnectStripeEnv = {
|
|
30898
|
+
Test: "test",
|
|
30899
|
+
Live: "live"
|
|
30900
|
+
};
|
|
30901
|
+
var DisconnectStripeEnv$outboundSchema = z34__namespace.enum(DisconnectStripeEnv);
|
|
30902
|
+
var DisconnectStripeParams$outboundSchema = z34__namespace.pipe(
|
|
30903
|
+
z34__namespace.object({
|
|
30904
|
+
organizationSlug: z34__namespace.string(),
|
|
30905
|
+
env: DisconnectStripeEnv$outboundSchema
|
|
30906
|
+
}),
|
|
30907
|
+
z34__namespace.transform((v) => {
|
|
30908
|
+
return remap(v, {
|
|
30909
|
+
organizationSlug: "organization_slug"
|
|
30910
|
+
});
|
|
30911
|
+
})
|
|
30912
|
+
);
|
|
30913
|
+
function disconnectStripeParamsToJSON(disconnectStripeParams) {
|
|
30914
|
+
return JSON.stringify(
|
|
30915
|
+
DisconnectStripeParams$outboundSchema.parse(disconnectStripeParams)
|
|
30916
|
+
);
|
|
30917
|
+
}
|
|
30918
|
+
var DisconnectStripeResponse$inboundSchema = z34__namespace.object({
|
|
30919
|
+
success: literal3(true)
|
|
30920
|
+
});
|
|
30921
|
+
function disconnectStripeResponseFromJSON(jsonString) {
|
|
30922
|
+
return safeParse(
|
|
30923
|
+
jsonString,
|
|
30924
|
+
(x) => DisconnectStripeResponse$inboundSchema.parse(JSON.parse(x)),
|
|
30925
|
+
`Failed to parse 'DisconnectStripeResponse' from JSON`
|
|
30926
|
+
);
|
|
30927
|
+
}
|
|
30876
30928
|
var FinalizeLockAction = {
|
|
30877
30929
|
Confirm: "confirm",
|
|
30878
30930
|
Release: "release"
|
|
@@ -37701,6 +37753,47 @@ function getRewardResponseFromJSON(jsonString) {
|
|
|
37701
37753
|
`Failed to parse 'GetRewardResponse' from JSON`
|
|
37702
37754
|
);
|
|
37703
37755
|
}
|
|
37756
|
+
var GetStripeConnectionEnv = {
|
|
37757
|
+
Test: "test",
|
|
37758
|
+
Live: "live"
|
|
37759
|
+
};
|
|
37760
|
+
var GetStripeConnectionEnv$outboundSchema = z34__namespace.enum(GetStripeConnectionEnv);
|
|
37761
|
+
var GetStripeConnectionParams$outboundSchema = z34__namespace.pipe(
|
|
37762
|
+
z34__namespace.object({
|
|
37763
|
+
organizationSlug: z34__namespace.string(),
|
|
37764
|
+
env: GetStripeConnectionEnv$outboundSchema
|
|
37765
|
+
}),
|
|
37766
|
+
z34__namespace.transform((v) => {
|
|
37767
|
+
return remap(v, {
|
|
37768
|
+
organizationSlug: "organization_slug"
|
|
37769
|
+
});
|
|
37770
|
+
})
|
|
37771
|
+
);
|
|
37772
|
+
function getStripeConnectionParamsToJSON(getStripeConnectionParams) {
|
|
37773
|
+
return JSON.stringify(
|
|
37774
|
+
GetStripeConnectionParams$outboundSchema.parse(getStripeConnectionParams)
|
|
37775
|
+
);
|
|
37776
|
+
}
|
|
37777
|
+
var GetStripeConnectionResponse$inboundSchema = z34__namespace.pipe(
|
|
37778
|
+
z34__namespace.object({
|
|
37779
|
+
connected: boolean2(),
|
|
37780
|
+
account_id: nullable(string5()),
|
|
37781
|
+
connected_at: nullable(number2())
|
|
37782
|
+
}),
|
|
37783
|
+
z34__namespace.transform((v) => {
|
|
37784
|
+
return remap(v, {
|
|
37785
|
+
"account_id": "accountId",
|
|
37786
|
+
"connected_at": "connectedAt"
|
|
37787
|
+
});
|
|
37788
|
+
})
|
|
37789
|
+
);
|
|
37790
|
+
function getStripeConnectionResponseFromJSON(jsonString) {
|
|
37791
|
+
return safeParse(
|
|
37792
|
+
jsonString,
|
|
37793
|
+
(x) => GetStripeConnectionResponse$inboundSchema.parse(JSON.parse(x)),
|
|
37794
|
+
`Failed to parse 'GetStripeConnectionResponse' from JSON`
|
|
37795
|
+
);
|
|
37796
|
+
}
|
|
37704
37797
|
|
|
37705
37798
|
// ../sdk/src/models/http-client-errors.ts
|
|
37706
37799
|
var HTTPClientError = class extends Error {
|
|
@@ -58791,6 +58884,23 @@ function previewUpdateAttachDiscountToJSON(previewUpdateAttachDiscount) {
|
|
|
58791
58884
|
)
|
|
58792
58885
|
);
|
|
58793
58886
|
}
|
|
58887
|
+
var PreviewUpdateRemoveDiscount$outboundSchema = z34__namespace.pipe(
|
|
58888
|
+
z34__namespace.object({
|
|
58889
|
+
rewardId: z34__namespace.string()
|
|
58890
|
+
}),
|
|
58891
|
+
z34__namespace.transform((v) => {
|
|
58892
|
+
return remap(v, {
|
|
58893
|
+
rewardId: "reward_id"
|
|
58894
|
+
});
|
|
58895
|
+
})
|
|
58896
|
+
);
|
|
58897
|
+
function previewUpdateRemoveDiscountToJSON(previewUpdateRemoveDiscount) {
|
|
58898
|
+
return JSON.stringify(
|
|
58899
|
+
PreviewUpdateRemoveDiscount$outboundSchema.parse(
|
|
58900
|
+
previewUpdateRemoveDiscount
|
|
58901
|
+
)
|
|
58902
|
+
);
|
|
58903
|
+
}
|
|
58794
58904
|
var PreviewUpdateCustomLineItem$outboundSchema = z34__namespace.object({
|
|
58795
58905
|
amount: z34__namespace.number(),
|
|
58796
58906
|
description: z34__namespace.string()
|
|
@@ -58885,6 +58995,9 @@ var PreviewUpdateParams$outboundSchema = z34__namespace.pipe(
|
|
|
58885
58995
|
discounts: z34__namespace.optional(
|
|
58886
58996
|
z34__namespace.array(z34__namespace.lazy(() => PreviewUpdateAttachDiscount$outboundSchema))
|
|
58887
58997
|
),
|
|
58998
|
+
removeDiscounts: z34__namespace.optional(
|
|
58999
|
+
z34__namespace.array(z34__namespace.lazy(() => PreviewUpdateRemoveDiscount$outboundSchema))
|
|
59000
|
+
),
|
|
58888
59001
|
customLineItems: z34__namespace.optional(
|
|
58889
59002
|
z34__namespace.array(z34__namespace.lazy(() => PreviewUpdateCustomLineItem$outboundSchema))
|
|
58890
59003
|
),
|
|
@@ -58916,6 +59029,7 @@ var PreviewUpdateParams$outboundSchema = z34__namespace.pipe(
|
|
|
58916
59029
|
prorationBehavior: "proration_behavior",
|
|
58917
59030
|
redirectMode: "redirect_mode",
|
|
58918
59031
|
subscriptionId: "subscription_id",
|
|
59032
|
+
removeDiscounts: "remove_discounts",
|
|
58919
59033
|
customLineItems: "custom_line_items",
|
|
58920
59034
|
cancelAction: "cancel_action",
|
|
58921
59035
|
billingCycleAnchor: "billing_cycle_anchor",
|
|
@@ -59476,6 +59590,7 @@ function customFieldToJSON(customField) {
|
|
|
59476
59590
|
}
|
|
59477
59591
|
var ReissueInvoiceInvoiceRequestBody$outboundSchema = z34__namespace.pipe(
|
|
59478
59592
|
z34__namespace.object({
|
|
59593
|
+
automaticTax: z34__namespace.optional(z34__namespace.boolean()),
|
|
59479
59594
|
customFields: z34__namespace.optional(z34__namespace.array(z34__namespace.lazy(() => CustomField$outboundSchema))),
|
|
59480
59595
|
taxRateId: z34__namespace.optional(z34__namespace.nullable(z34__namespace.string())),
|
|
59481
59596
|
accountTaxIds: z34__namespace.optional(z34__namespace.nullable(z34__namespace.array(z34__namespace.string()))),
|
|
@@ -59484,6 +59599,7 @@ var ReissueInvoiceInvoiceRequestBody$outboundSchema = z34__namespace.pipe(
|
|
|
59484
59599
|
}),
|
|
59485
59600
|
z34__namespace.transform((v) => {
|
|
59486
59601
|
return remap(v, {
|
|
59602
|
+
automaticTax: "automatic_tax",
|
|
59487
59603
|
customFields: "custom_fields",
|
|
59488
59604
|
taxRateId: "tax_rate_id",
|
|
59489
59605
|
accountTaxIds: "account_tax_ids"
|
|
@@ -78808,6 +78924,7 @@ var Billing = class extends ClientSDK {
|
|
|
78808
78924
|
* @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)
|
|
78809
78925
|
* @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)
|
|
78810
78926
|
* @param discounts - List of discounts to apply. Each discount can be an Autumn reward ID, Stripe coupon ID, or Stripe promotion code. (optional)
|
|
78927
|
+
* @param removeDiscounts - Discounts to remove from the subscription, by reward ID. Discounts not listed are left unchanged. (optional)
|
|
78811
78928
|
* @param customLineItems - Custom line items that replace the auto-generated proration invoice, or bill a standalone invoice when nothing else changes. Only valid on an existing recurring subscription. (optional)
|
|
78812
78929
|
* @param cancelAction - Action to perform for cancellation. 'cancel_immediately' cancels now with prorated refund, 'cancel_end_of_cycle' cancels at period end, 'uncancel' reverses a pending cancellation. (optional)
|
|
78813
78930
|
* @param billingCycleAnchor - Reset the billing cycle immediately with 'now', or schedule a reset at a future Unix timestamp in milliseconds. (optional)
|
|
@@ -78850,6 +78967,7 @@ var Billing = class extends ClientSDK {
|
|
|
78850
78967
|
* @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)
|
|
78851
78968
|
* @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)
|
|
78852
78969
|
* @param discounts - List of discounts to apply. Each discount can be an Autumn reward ID, Stripe coupon ID, or Stripe promotion code. (optional)
|
|
78970
|
+
* @param removeDiscounts - Discounts to remove from the subscription, by reward ID. Discounts not listed are left unchanged. (optional)
|
|
78853
78971
|
* @param customLineItems - Custom line items that replace the auto-generated proration invoice, or bill a standalone invoice when nothing else changes. Only valid on an existing recurring subscription. (optional)
|
|
78854
78972
|
* @param cancelAction - Action to perform for cancellation. 'cancel_immediately' cancels now with prorated refund, 'cancel_end_of_cycle' cancels at period end, 'uncancel' reverses a pending cancellation. (optional)
|
|
78855
78973
|
* @param billingCycleAnchor - Reset the billing cycle immediately with 'now', or schedule a reset at a future Unix timestamp in milliseconds. (optional)
|
|
@@ -82446,7 +82564,7 @@ var Plans = class extends ClientSDK {
|
|
|
82446
82564
|
));
|
|
82447
82565
|
}
|
|
82448
82566
|
};
|
|
82449
|
-
function
|
|
82567
|
+
function platformDisconnectStripe(client, request, options) {
|
|
82450
82568
|
return new APIPromise($do57(
|
|
82451
82569
|
client,
|
|
82452
82570
|
request,
|
|
@@ -82454,6 +82572,81 @@ function platformGetRevenueCatKeys(client, request, options) {
|
|
|
82454
82572
|
));
|
|
82455
82573
|
}
|
|
82456
82574
|
async function $do57(client, request, options) {
|
|
82575
|
+
const parsed = safeParse(
|
|
82576
|
+
request,
|
|
82577
|
+
(value) => z34__namespace.parse(DisconnectStripeParams$outboundSchema, value),
|
|
82578
|
+
"Input validation failed"
|
|
82579
|
+
);
|
|
82580
|
+
if (!parsed.ok) {
|
|
82581
|
+
return [parsed, { status: "invalid" }];
|
|
82582
|
+
}
|
|
82583
|
+
const payload = parsed.value;
|
|
82584
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
82585
|
+
const path = pathToFunc("/v1/platform.disconnect_stripe")();
|
|
82586
|
+
const headers = new Headers(compactMap({
|
|
82587
|
+
"Content-Type": "application/json",
|
|
82588
|
+
Accept: "application/json",
|
|
82589
|
+
"x-api-version": encodeSimple(
|
|
82590
|
+
"x-api-version",
|
|
82591
|
+
client._options.xApiVersion,
|
|
82592
|
+
{ explode: false, charEncoding: "none" }
|
|
82593
|
+
)
|
|
82594
|
+
}));
|
|
82595
|
+
const secConfig = await extractSecurity(client._options.secretKey);
|
|
82596
|
+
const securityInput = secConfig == null ? {} : { secretKey: secConfig };
|
|
82597
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
82598
|
+
const context = {
|
|
82599
|
+
options: client._options,
|
|
82600
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
82601
|
+
operationID: "disconnectStripe",
|
|
82602
|
+
oAuth2Scopes: null,
|
|
82603
|
+
resolvedSecurity: requestSecurity,
|
|
82604
|
+
securitySource: client._options.secretKey,
|
|
82605
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
82606
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
82607
|
+
};
|
|
82608
|
+
const requestRes = client._createRequest(context, {
|
|
82609
|
+
security: requestSecurity,
|
|
82610
|
+
method: "POST",
|
|
82611
|
+
baseURL: options?.serverURL,
|
|
82612
|
+
path,
|
|
82613
|
+
headers,
|
|
82614
|
+
body,
|
|
82615
|
+
userAgent: client._options.userAgent,
|
|
82616
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
82617
|
+
}, options);
|
|
82618
|
+
if (!requestRes.ok) {
|
|
82619
|
+
return [requestRes, { status: "invalid" }];
|
|
82620
|
+
}
|
|
82621
|
+
const req = requestRes.value;
|
|
82622
|
+
const doResult = await client._do(req, {
|
|
82623
|
+
context,
|
|
82624
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
82625
|
+
retryConfig: context.retryConfig,
|
|
82626
|
+
retryCodes: context.retryCodes
|
|
82627
|
+
});
|
|
82628
|
+
if (!doResult.ok) {
|
|
82629
|
+
return [doResult, { status: "request-error", request: req }];
|
|
82630
|
+
}
|
|
82631
|
+
const response = doResult.value;
|
|
82632
|
+
const [result] = await match(
|
|
82633
|
+
json(200, DisconnectStripeResponse$inboundSchema),
|
|
82634
|
+
fail("4XX"),
|
|
82635
|
+
fail("5XX")
|
|
82636
|
+
)(response, req);
|
|
82637
|
+
if (!result.ok) {
|
|
82638
|
+
return [result, { status: "complete", request: req, response }];
|
|
82639
|
+
}
|
|
82640
|
+
return [result, { status: "complete", request: req, response }];
|
|
82641
|
+
}
|
|
82642
|
+
function platformGetRevenueCatKeys(client, request, options) {
|
|
82643
|
+
return new APIPromise($do58(
|
|
82644
|
+
client,
|
|
82645
|
+
request,
|
|
82646
|
+
options
|
|
82647
|
+
));
|
|
82648
|
+
}
|
|
82649
|
+
async function $do58(client, request, options) {
|
|
82457
82650
|
const parsed = safeParse(
|
|
82458
82651
|
request,
|
|
82459
82652
|
(value) => z34__namespace.parse(GetRevenueCatKeysParams$outboundSchema, value),
|
|
@@ -82521,14 +82714,89 @@ async function $do57(client, request, options) {
|
|
|
82521
82714
|
}
|
|
82522
82715
|
return [result, { status: "complete", request: req, response }];
|
|
82523
82716
|
}
|
|
82717
|
+
function platformGetStripeConnection(client, request, options) {
|
|
82718
|
+
return new APIPromise($do59(
|
|
82719
|
+
client,
|
|
82720
|
+
request,
|
|
82721
|
+
options
|
|
82722
|
+
));
|
|
82723
|
+
}
|
|
82724
|
+
async function $do59(client, request, options) {
|
|
82725
|
+
const parsed = safeParse(
|
|
82726
|
+
request,
|
|
82727
|
+
(value) => z34__namespace.parse(GetStripeConnectionParams$outboundSchema, value),
|
|
82728
|
+
"Input validation failed"
|
|
82729
|
+
);
|
|
82730
|
+
if (!parsed.ok) {
|
|
82731
|
+
return [parsed, { status: "invalid" }];
|
|
82732
|
+
}
|
|
82733
|
+
const payload = parsed.value;
|
|
82734
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
82735
|
+
const path = pathToFunc("/v1/platform.get_stripe_connection")();
|
|
82736
|
+
const headers = new Headers(compactMap({
|
|
82737
|
+
"Content-Type": "application/json",
|
|
82738
|
+
Accept: "application/json",
|
|
82739
|
+
"x-api-version": encodeSimple(
|
|
82740
|
+
"x-api-version",
|
|
82741
|
+
client._options.xApiVersion,
|
|
82742
|
+
{ explode: false, charEncoding: "none" }
|
|
82743
|
+
)
|
|
82744
|
+
}));
|
|
82745
|
+
const secConfig = await extractSecurity(client._options.secretKey);
|
|
82746
|
+
const securityInput = secConfig == null ? {} : { secretKey: secConfig };
|
|
82747
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
82748
|
+
const context = {
|
|
82749
|
+
options: client._options,
|
|
82750
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
82751
|
+
operationID: "getStripeConnection",
|
|
82752
|
+
oAuth2Scopes: null,
|
|
82753
|
+
resolvedSecurity: requestSecurity,
|
|
82754
|
+
securitySource: client._options.secretKey,
|
|
82755
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
82756
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
82757
|
+
};
|
|
82758
|
+
const requestRes = client._createRequest(context, {
|
|
82759
|
+
security: requestSecurity,
|
|
82760
|
+
method: "POST",
|
|
82761
|
+
baseURL: options?.serverURL,
|
|
82762
|
+
path,
|
|
82763
|
+
headers,
|
|
82764
|
+
body,
|
|
82765
|
+
userAgent: client._options.userAgent,
|
|
82766
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
82767
|
+
}, options);
|
|
82768
|
+
if (!requestRes.ok) {
|
|
82769
|
+
return [requestRes, { status: "invalid" }];
|
|
82770
|
+
}
|
|
82771
|
+
const req = requestRes.value;
|
|
82772
|
+
const doResult = await client._do(req, {
|
|
82773
|
+
context,
|
|
82774
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
82775
|
+
retryConfig: context.retryConfig,
|
|
82776
|
+
retryCodes: context.retryCodes
|
|
82777
|
+
});
|
|
82778
|
+
if (!doResult.ok) {
|
|
82779
|
+
return [doResult, { status: "request-error", request: req }];
|
|
82780
|
+
}
|
|
82781
|
+
const response = doResult.value;
|
|
82782
|
+
const [result] = await match(
|
|
82783
|
+
json(200, GetStripeConnectionResponse$inboundSchema),
|
|
82784
|
+
fail("4XX"),
|
|
82785
|
+
fail("5XX")
|
|
82786
|
+
)(response, req);
|
|
82787
|
+
if (!result.ok) {
|
|
82788
|
+
return [result, { status: "complete", request: req, response }];
|
|
82789
|
+
}
|
|
82790
|
+
return [result, { status: "complete", request: req, response }];
|
|
82791
|
+
}
|
|
82524
82792
|
function platformLinkRevenueCat(client, request, options) {
|
|
82525
|
-
return new APIPromise($
|
|
82793
|
+
return new APIPromise($do60(
|
|
82526
82794
|
client,
|
|
82527
82795
|
request,
|
|
82528
82796
|
options
|
|
82529
82797
|
));
|
|
82530
82798
|
}
|
|
82531
|
-
async function $
|
|
82799
|
+
async function $do60(client, request, options) {
|
|
82532
82800
|
const parsed = safeParse(
|
|
82533
82801
|
request,
|
|
82534
82802
|
(value) => z34__namespace.parse(LinkRevenueCatParams$outboundSchema, value),
|
|
@@ -82597,13 +82865,13 @@ async function $do58(client, request, options) {
|
|
|
82597
82865
|
return [result, { status: "complete", request: req, response }];
|
|
82598
82866
|
}
|
|
82599
82867
|
function platformSyncRevenueCat(client, request, options) {
|
|
82600
|
-
return new APIPromise($
|
|
82868
|
+
return new APIPromise($do61(
|
|
82601
82869
|
client,
|
|
82602
82870
|
request,
|
|
82603
82871
|
options
|
|
82604
82872
|
));
|
|
82605
82873
|
}
|
|
82606
|
-
async function $
|
|
82874
|
+
async function $do61(client, request, options) {
|
|
82607
82875
|
const parsed = safeParse(
|
|
82608
82876
|
request,
|
|
82609
82877
|
(value) => z34__namespace.parse(SyncRevenueCatParams$outboundSchema, value),
|
|
@@ -82674,6 +82942,26 @@ async function $do59(client, request, options) {
|
|
|
82674
82942
|
|
|
82675
82943
|
// ../sdk/src/sdk/platform.ts
|
|
82676
82944
|
var Platform = class extends ClientSDK {
|
|
82945
|
+
/**
|
|
82946
|
+
* Read a managed organization's Stripe OAuth connection, account ID, and authorization time in the selected environment.
|
|
82947
|
+
*/
|
|
82948
|
+
async getStripeConnection(request, options) {
|
|
82949
|
+
return unwrapAsync(platformGetStripeConnection(
|
|
82950
|
+
this,
|
|
82951
|
+
request,
|
|
82952
|
+
options
|
|
82953
|
+
));
|
|
82954
|
+
}
|
|
82955
|
+
/**
|
|
82956
|
+
* Revoke Autumn's Stripe OAuth access for a managed organization in the selected environment. Does not delete the Stripe account or cancel subscriptions.
|
|
82957
|
+
*/
|
|
82958
|
+
async disconnectStripe(request, options) {
|
|
82959
|
+
return unwrapAsync(platformDisconnectStripe(
|
|
82960
|
+
this,
|
|
82961
|
+
request,
|
|
82962
|
+
options
|
|
82963
|
+
));
|
|
82964
|
+
}
|
|
82677
82965
|
/**
|
|
82678
82966
|
* Generate a RevenueCat OAuth URL for linking a project to an organization.
|
|
82679
82967
|
*/
|
|
@@ -82706,13 +82994,13 @@ var Platform = class extends ClientSDK {
|
|
|
82706
82994
|
}
|
|
82707
82995
|
};
|
|
82708
82996
|
function referralsCreateCode(client, request, options) {
|
|
82709
|
-
return new APIPromise($
|
|
82997
|
+
return new APIPromise($do62(
|
|
82710
82998
|
client,
|
|
82711
82999
|
request,
|
|
82712
83000
|
options
|
|
82713
83001
|
));
|
|
82714
83002
|
}
|
|
82715
|
-
async function $
|
|
83003
|
+
async function $do62(client, request, options) {
|
|
82716
83004
|
const parsed = safeParse(
|
|
82717
83005
|
request,
|
|
82718
83006
|
(value) => z34__namespace.parse(CreateReferralCodeParams$outboundSchema, value),
|
|
@@ -82781,13 +83069,13 @@ async function $do60(client, request, options) {
|
|
|
82781
83069
|
return [result, { status: "complete", request: req, response }];
|
|
82782
83070
|
}
|
|
82783
83071
|
function referralsCreateProgram(client, request, options) {
|
|
82784
|
-
return new APIPromise($
|
|
83072
|
+
return new APIPromise($do63(
|
|
82785
83073
|
client,
|
|
82786
83074
|
request,
|
|
82787
83075
|
options
|
|
82788
83076
|
));
|
|
82789
83077
|
}
|
|
82790
|
-
async function $
|
|
83078
|
+
async function $do63(client, request, options) {
|
|
82791
83079
|
const parsed = safeParse(
|
|
82792
83080
|
request,
|
|
82793
83081
|
(value) => z34__namespace.parse(CreateReferralProgramParams$outboundSchema, value),
|
|
@@ -82856,13 +83144,13 @@ async function $do61(client, request, options) {
|
|
|
82856
83144
|
return [result, { status: "complete", request: req, response }];
|
|
82857
83145
|
}
|
|
82858
83146
|
function referralsDeleteProgram(client, request, options) {
|
|
82859
|
-
return new APIPromise($
|
|
83147
|
+
return new APIPromise($do64(
|
|
82860
83148
|
client,
|
|
82861
83149
|
request,
|
|
82862
83150
|
options
|
|
82863
83151
|
));
|
|
82864
83152
|
}
|
|
82865
|
-
async function $
|
|
83153
|
+
async function $do64(client, request, options) {
|
|
82866
83154
|
const parsed = safeParse(
|
|
82867
83155
|
request,
|
|
82868
83156
|
(value) => z34__namespace.parse(DeleteReferralProgramParams$outboundSchema, value),
|
|
@@ -82931,13 +83219,13 @@ async function $do62(client, request, options) {
|
|
|
82931
83219
|
return [result, { status: "complete", request: req, response }];
|
|
82932
83220
|
}
|
|
82933
83221
|
function referralsGetProgram(client, request, options) {
|
|
82934
|
-
return new APIPromise($
|
|
83222
|
+
return new APIPromise($do65(
|
|
82935
83223
|
client,
|
|
82936
83224
|
request,
|
|
82937
83225
|
options
|
|
82938
83226
|
));
|
|
82939
83227
|
}
|
|
82940
|
-
async function $
|
|
83228
|
+
async function $do65(client, request, options) {
|
|
82941
83229
|
const parsed = safeParse(
|
|
82942
83230
|
request,
|
|
82943
83231
|
(value) => z34__namespace.parse(GetReferralProgramParams$outboundSchema, value),
|
|
@@ -83008,13 +83296,13 @@ async function $do63(client, request, options) {
|
|
|
83008
83296
|
|
|
83009
83297
|
// ../sdk/src/funcs/referrals-list-programs.ts
|
|
83010
83298
|
function referralsListPrograms(client, _request, options) {
|
|
83011
|
-
return new APIPromise($
|
|
83299
|
+
return new APIPromise($do66(
|
|
83012
83300
|
client,
|
|
83013
83301
|
_request,
|
|
83014
83302
|
options
|
|
83015
83303
|
));
|
|
83016
83304
|
}
|
|
83017
|
-
async function $
|
|
83305
|
+
async function $do66(client, _request, options) {
|
|
83018
83306
|
const path = pathToFunc("/v1/referral_programs.list")();
|
|
83019
83307
|
const headers = new Headers(compactMap({
|
|
83020
83308
|
"Content-Type": "application/json",
|
|
@@ -83072,13 +83360,13 @@ async function $do64(client, _request, options) {
|
|
|
83072
83360
|
return [result, { status: "complete", request: req, response }];
|
|
83073
83361
|
}
|
|
83074
83362
|
function referralsRedeemCode(client, request, options) {
|
|
83075
|
-
return new APIPromise($
|
|
83363
|
+
return new APIPromise($do67(
|
|
83076
83364
|
client,
|
|
83077
83365
|
request,
|
|
83078
83366
|
options
|
|
83079
83367
|
));
|
|
83080
83368
|
}
|
|
83081
|
-
async function $
|
|
83369
|
+
async function $do67(client, request, options) {
|
|
83082
83370
|
const parsed = safeParse(
|
|
83083
83371
|
request,
|
|
83084
83372
|
(value) => z34__namespace.parse(RedeemReferralCodeParams$outboundSchema, value),
|
|
@@ -83147,13 +83435,13 @@ async function $do65(client, request, options) {
|
|
|
83147
83435
|
return [result, { status: "complete", request: req, response }];
|
|
83148
83436
|
}
|
|
83149
83437
|
function referralsUpdateProgram(client, request, options) {
|
|
83150
|
-
return new APIPromise($
|
|
83438
|
+
return new APIPromise($do68(
|
|
83151
83439
|
client,
|
|
83152
83440
|
request,
|
|
83153
83441
|
options
|
|
83154
83442
|
));
|
|
83155
83443
|
}
|
|
83156
|
-
async function $
|
|
83444
|
+
async function $do68(client, request, options) {
|
|
83157
83445
|
const parsed = safeParse(
|
|
83158
83446
|
request,
|
|
83159
83447
|
(value) => z34__namespace.parse(UpdateReferralProgramParams$outboundSchema, value),
|
|
@@ -83296,13 +83584,13 @@ var Referrals = class extends ClientSDK {
|
|
|
83296
83584
|
}
|
|
83297
83585
|
};
|
|
83298
83586
|
function rewardsCreate(client, request, options) {
|
|
83299
|
-
return new APIPromise($
|
|
83587
|
+
return new APIPromise($do69(
|
|
83300
83588
|
client,
|
|
83301
83589
|
request,
|
|
83302
83590
|
options
|
|
83303
83591
|
));
|
|
83304
83592
|
}
|
|
83305
|
-
async function $
|
|
83593
|
+
async function $do69(client, request, options) {
|
|
83306
83594
|
const parsed = safeParse(
|
|
83307
83595
|
request,
|
|
83308
83596
|
(value) => z34__namespace.parse(CreateRewardParams$outboundSchema, value),
|
|
@@ -83371,13 +83659,13 @@ async function $do67(client, request, options) {
|
|
|
83371
83659
|
return [result, { status: "complete", request: req, response }];
|
|
83372
83660
|
}
|
|
83373
83661
|
function rewardsDelete(client, request, options) {
|
|
83374
|
-
return new APIPromise($
|
|
83662
|
+
return new APIPromise($do70(
|
|
83375
83663
|
client,
|
|
83376
83664
|
request,
|
|
83377
83665
|
options
|
|
83378
83666
|
));
|
|
83379
83667
|
}
|
|
83380
|
-
async function $
|
|
83668
|
+
async function $do70(client, request, options) {
|
|
83381
83669
|
const parsed = safeParse(
|
|
83382
83670
|
request,
|
|
83383
83671
|
(value) => z34__namespace.parse(DeleteRewardParams$outboundSchema, value),
|
|
@@ -83446,13 +83734,13 @@ async function $do68(client, request, options) {
|
|
|
83446
83734
|
return [result, { status: "complete", request: req, response }];
|
|
83447
83735
|
}
|
|
83448
83736
|
function rewardsGet(client, request, options) {
|
|
83449
|
-
return new APIPromise($
|
|
83737
|
+
return new APIPromise($do71(
|
|
83450
83738
|
client,
|
|
83451
83739
|
request,
|
|
83452
83740
|
options
|
|
83453
83741
|
));
|
|
83454
83742
|
}
|
|
83455
|
-
async function $
|
|
83743
|
+
async function $do71(client, request, options) {
|
|
83456
83744
|
const parsed = safeParse(
|
|
83457
83745
|
request,
|
|
83458
83746
|
(value) => z34__namespace.parse(GetRewardParams$outboundSchema, value),
|
|
@@ -83523,13 +83811,13 @@ async function $do69(client, request, options) {
|
|
|
83523
83811
|
|
|
83524
83812
|
// ../sdk/src/funcs/rewards-list.ts
|
|
83525
83813
|
function rewardsList(client, _request, options) {
|
|
83526
|
-
return new APIPromise($
|
|
83814
|
+
return new APIPromise($do72(
|
|
83527
83815
|
client,
|
|
83528
83816
|
_request,
|
|
83529
83817
|
options
|
|
83530
83818
|
));
|
|
83531
83819
|
}
|
|
83532
|
-
async function $
|
|
83820
|
+
async function $do72(client, _request, options) {
|
|
83533
83821
|
const path = pathToFunc("/v1/rewards.list")();
|
|
83534
83822
|
const headers = new Headers(compactMap({
|
|
83535
83823
|
"Content-Type": "application/json",
|
|
@@ -83587,13 +83875,13 @@ async function $do70(client, _request, options) {
|
|
|
83587
83875
|
return [result, { status: "complete", request: req, response }];
|
|
83588
83876
|
}
|
|
83589
83877
|
function rewardsRedeemCode(client, request, options) {
|
|
83590
|
-
return new APIPromise($
|
|
83878
|
+
return new APIPromise($do73(
|
|
83591
83879
|
client,
|
|
83592
83880
|
request,
|
|
83593
83881
|
options
|
|
83594
83882
|
));
|
|
83595
83883
|
}
|
|
83596
|
-
async function $
|
|
83884
|
+
async function $do73(client, request, options) {
|
|
83597
83885
|
const parsed = safeParse(
|
|
83598
83886
|
request,
|
|
83599
83887
|
(value) => z34__namespace.parse(RedeemRewardCodeParams$outboundSchema, value),
|
|
@@ -83662,13 +83950,13 @@ async function $do71(client, request, options) {
|
|
|
83662
83950
|
return [result, { status: "complete", request: req, response }];
|
|
83663
83951
|
}
|
|
83664
83952
|
function rewardsUpdate(client, request, options) {
|
|
83665
|
-
return new APIPromise($
|
|
83953
|
+
return new APIPromise($do74(
|
|
83666
83954
|
client,
|
|
83667
83955
|
request,
|
|
83668
83956
|
options
|
|
83669
83957
|
));
|
|
83670
83958
|
}
|
|
83671
|
-
async function $
|
|
83959
|
+
async function $do74(client, request, options) {
|
|
83672
83960
|
const parsed = safeParse(
|
|
83673
83961
|
request,
|
|
83674
83962
|
(value) => z34__namespace.parse(UpdateRewardParams$outboundSchema, value),
|
|
@@ -83801,13 +84089,13 @@ var Rewards = class extends ClientSDK {
|
|
|
83801
84089
|
}
|
|
83802
84090
|
};
|
|
83803
84091
|
function sandboxesCreate(client, request, options) {
|
|
83804
|
-
return new APIPromise($
|
|
84092
|
+
return new APIPromise($do75(
|
|
83805
84093
|
client,
|
|
83806
84094
|
request,
|
|
83807
84095
|
options
|
|
83808
84096
|
));
|
|
83809
84097
|
}
|
|
83810
|
-
async function $
|
|
84098
|
+
async function $do75(client, request, options) {
|
|
83811
84099
|
const parsed = safeParse(
|
|
83812
84100
|
request,
|
|
83813
84101
|
(value) => z34__namespace.parse(CreateSandboxParams$outboundSchema, value),
|
|
@@ -83876,13 +84164,13 @@ async function $do73(client, request, options) {
|
|
|
83876
84164
|
return [result, { status: "complete", request: req, response }];
|
|
83877
84165
|
}
|
|
83878
84166
|
function sandboxesDelete(client, request, options) {
|
|
83879
|
-
return new APIPromise($
|
|
84167
|
+
return new APIPromise($do76(
|
|
83880
84168
|
client,
|
|
83881
84169
|
request,
|
|
83882
84170
|
options
|
|
83883
84171
|
));
|
|
83884
84172
|
}
|
|
83885
|
-
async function $
|
|
84173
|
+
async function $do76(client, request, options) {
|
|
83886
84174
|
const parsed = safeParse(
|
|
83887
84175
|
request,
|
|
83888
84176
|
(value) => z34__namespace.parse(DeleteSandboxParams$outboundSchema, value),
|
|
@@ -83953,13 +84241,13 @@ async function $do74(client, request, options) {
|
|
|
83953
84241
|
|
|
83954
84242
|
// ../sdk/src/funcs/sandboxes-list.ts
|
|
83955
84243
|
function sandboxesList(client, _request, options) {
|
|
83956
|
-
return new APIPromise($
|
|
84244
|
+
return new APIPromise($do77(
|
|
83957
84245
|
client,
|
|
83958
84246
|
_request,
|
|
83959
84247
|
options
|
|
83960
84248
|
));
|
|
83961
84249
|
}
|
|
83962
|
-
async function $
|
|
84250
|
+
async function $do77(client, _request, options) {
|
|
83963
84251
|
const path = pathToFunc("/v1/sandboxes.list")();
|
|
83964
84252
|
const headers = new Headers(compactMap({
|
|
83965
84253
|
"Content-Type": "application/json",
|
|
@@ -84019,13 +84307,13 @@ async function $do75(client, _request, options) {
|
|
|
84019
84307
|
|
|
84020
84308
|
// ../sdk/src/funcs/sandboxes-reset.ts
|
|
84021
84309
|
function sandboxesReset(client, _request, options) {
|
|
84022
|
-
return new APIPromise($
|
|
84310
|
+
return new APIPromise($do78(
|
|
84023
84311
|
client,
|
|
84024
84312
|
_request,
|
|
84025
84313
|
options
|
|
84026
84314
|
));
|
|
84027
84315
|
}
|
|
84028
|
-
async function $
|
|
84316
|
+
async function $do78(client, _request, options) {
|
|
84029
84317
|
const path = pathToFunc("/v1/sandboxes.reset")();
|
|
84030
84318
|
const headers = new Headers(compactMap({
|
|
84031
84319
|
"Content-Type": "application/json",
|
|
@@ -84933,6 +85221,7 @@ exports.BillingUpdateRedirectMode = BillingUpdateRedirectMode;
|
|
|
84933
85221
|
exports.BillingUpdateRedirectMode$outboundSchema = BillingUpdateRedirectMode$outboundSchema;
|
|
84934
85222
|
exports.BillingUpdateRefundLastPayment = BillingUpdateRefundLastPayment;
|
|
84935
85223
|
exports.BillingUpdateRefundLastPayment$outboundSchema = BillingUpdateRefundLastPayment$outboundSchema;
|
|
85224
|
+
exports.BillingUpdateRemoveDiscount$outboundSchema = BillingUpdateRemoveDiscount$outboundSchema;
|
|
84936
85225
|
exports.BillingUpdateRemoveItemBillingMethod = BillingUpdateRemoveItemBillingMethod;
|
|
84937
85226
|
exports.BillingUpdateRemoveItemBillingMethod$outboundSchema = BillingUpdateRemoveItemBillingMethod$outboundSchema;
|
|
84938
85227
|
exports.BillingUpdateRemoveLicense$outboundSchema = BillingUpdateRemoveLicense$outboundSchema;
|
|
@@ -86155,6 +86444,10 @@ exports.DimensionsVariantUpsertLicenseMatch3$outboundSchema = DimensionsVariantU
|
|
|
86155
86444
|
exports.DimensionsVariantUpsertLicenseMatch4$outboundSchema = DimensionsVariantUpsertLicenseMatch4$outboundSchema;
|
|
86156
86445
|
exports.DimensionsVariantUpsertLicenseToUnion1$outboundSchema = DimensionsVariantUpsertLicenseToUnion1$outboundSchema;
|
|
86157
86446
|
exports.DimensionsVariantUpsertLicenseToUnion2$outboundSchema = DimensionsVariantUpsertLicenseToUnion2$outboundSchema;
|
|
86447
|
+
exports.DisconnectStripeEnv = DisconnectStripeEnv;
|
|
86448
|
+
exports.DisconnectStripeEnv$outboundSchema = DisconnectStripeEnv$outboundSchema;
|
|
86449
|
+
exports.DisconnectStripeParams$outboundSchema = DisconnectStripeParams$outboundSchema;
|
|
86450
|
+
exports.DisconnectStripeResponse$inboundSchema = DisconnectStripeResponse$inboundSchema;
|
|
86158
86451
|
exports.DurationTypeRequestBody = DurationTypeRequestBody;
|
|
86159
86452
|
exports.DurationTypeRequestBody$outboundSchema = DurationTypeRequestBody$outboundSchema;
|
|
86160
86453
|
exports.EntitlementsGranted$inboundSchema = EntitlementsGranted$inboundSchema;
|
|
@@ -86739,6 +87032,10 @@ exports.GetRewardFeatureGrantPromoCode$inboundSchema = GetRewardFeatureGrantProm
|
|
|
86739
87032
|
exports.GetRewardGrant$inboundSchema = GetRewardGrant$inboundSchema;
|
|
86740
87033
|
exports.GetRewardParams$outboundSchema = GetRewardParams$outboundSchema;
|
|
86741
87034
|
exports.GetRewardResponse$inboundSchema = GetRewardResponse$inboundSchema;
|
|
87035
|
+
exports.GetStripeConnectionEnv = GetStripeConnectionEnv;
|
|
87036
|
+
exports.GetStripeConnectionEnv$outboundSchema = GetStripeConnectionEnv$outboundSchema;
|
|
87037
|
+
exports.GetStripeConnectionParams$outboundSchema = GetStripeConnectionParams$outboundSchema;
|
|
87038
|
+
exports.GetStripeConnectionResponse$inboundSchema = GetStripeConnectionResponse$inboundSchema;
|
|
86742
87039
|
exports.GroupedValues$inboundSchema = GroupedValues$inboundSchema;
|
|
86743
87040
|
exports.HTTPClient = HTTPClient;
|
|
86744
87041
|
exports.HTTPClientError = HTTPClientError;
|
|
@@ -88767,6 +89064,7 @@ exports.PreviewUpdateRedirectMode = PreviewUpdateRedirectMode;
|
|
|
88767
89064
|
exports.PreviewUpdateRedirectMode$outboundSchema = PreviewUpdateRedirectMode$outboundSchema;
|
|
88768
89065
|
exports.PreviewUpdateRefundLastPayment = PreviewUpdateRefundLastPayment;
|
|
88769
89066
|
exports.PreviewUpdateRefundLastPayment$outboundSchema = PreviewUpdateRefundLastPayment$outboundSchema;
|
|
89067
|
+
exports.PreviewUpdateRemoveDiscount$outboundSchema = PreviewUpdateRemoveDiscount$outboundSchema;
|
|
88770
89068
|
exports.PreviewUpdateRemoveItemBillingMethod = PreviewUpdateRemoveItemBillingMethod;
|
|
88771
89069
|
exports.PreviewUpdateRemoveItemBillingMethod$outboundSchema = PreviewUpdateRemoveItemBillingMethod$outboundSchema;
|
|
88772
89070
|
exports.PreviewUpdateRemoveLicense$outboundSchema = PreviewUpdateRemoveLicense$outboundSchema;
|
|
@@ -90871,6 +91169,7 @@ exports.billingUpdateOverageAllowedToJSON = billingUpdateOverageAllowedToJSON;
|
|
|
90871
91169
|
exports.billingUpdatePlanItemFilterToJSON = billingUpdatePlanItemFilterToJSON;
|
|
90872
91170
|
exports.billingUpdatePurchaseLimitToJSON = billingUpdatePurchaseLimitToJSON;
|
|
90873
91171
|
exports.billingUpdateRecalculateBalancesToJSON = billingUpdateRecalculateBalancesToJSON;
|
|
91172
|
+
exports.billingUpdateRemoveDiscountToJSON = billingUpdateRemoveDiscountToJSON;
|
|
90874
91173
|
exports.billingUpdateRemoveLicenseToJSON = billingUpdateRemoveLicenseToJSON;
|
|
90875
91174
|
exports.billingUpdateRequiredActionFromJSON = billingUpdateRequiredActionFromJSON;
|
|
90876
91175
|
exports.billingUpdateResponseFromJSON = billingUpdateResponseFromJSON;
|
|
@@ -91596,6 +91895,8 @@ exports.dimensionsVariantUpsertLicenseMatch3ToJSON = dimensionsVariantUpsertLice
|
|
|
91596
91895
|
exports.dimensionsVariantUpsertLicenseMatch4ToJSON = dimensionsVariantUpsertLicenseMatch4ToJSON;
|
|
91597
91896
|
exports.dimensionsVariantUpsertLicenseToUnion1ToJSON = dimensionsVariantUpsertLicenseToUnion1ToJSON;
|
|
91598
91897
|
exports.dimensionsVariantUpsertLicenseToUnion2ToJSON = dimensionsVariantUpsertLicenseToUnion2ToJSON;
|
|
91898
|
+
exports.disconnectStripeParamsToJSON = disconnectStripeParamsToJSON;
|
|
91899
|
+
exports.disconnectStripeResponseFromJSON = disconnectStripeResponseFromJSON;
|
|
91599
91900
|
exports.entitlementsGrantedFromJSON = entitlementsGrantedFromJSON;
|
|
91600
91901
|
exports.entityFromJSON = entityFromJSON;
|
|
91601
91902
|
exports.eventsAggregateParamsToJSON = eventsAggregateParamsToJSON;
|
|
@@ -91928,6 +92229,8 @@ exports.getRewardFeatureGrantPromoCodeFromJSON = getRewardFeatureGrantPromoCodeF
|
|
|
91928
92229
|
exports.getRewardGrantFromJSON = getRewardGrantFromJSON;
|
|
91929
92230
|
exports.getRewardParamsToJSON = getRewardParamsToJSON;
|
|
91930
92231
|
exports.getRewardResponseFromJSON = getRewardResponseFromJSON;
|
|
92232
|
+
exports.getStripeConnectionParamsToJSON = getStripeConnectionParamsToJSON;
|
|
92233
|
+
exports.getStripeConnectionResponseFromJSON = getStripeConnectionResponseFromJSON;
|
|
91931
92234
|
exports.groupedValuesFromJSON = groupedValuesFromJSON;
|
|
91932
92235
|
exports.importBalanceToJSON = importBalanceToJSON;
|
|
91933
92236
|
exports.importCustomerDataToJSON = importCustomerDataToJSON;
|
|
@@ -93091,6 +93394,7 @@ exports.previewUpdateParamsToJSON = previewUpdateParamsToJSON;
|
|
|
93091
93394
|
exports.previewUpdatePlanItemFilterToJSON = previewUpdatePlanItemFilterToJSON;
|
|
93092
93395
|
exports.previewUpdatePurchaseLimitToJSON = previewUpdatePurchaseLimitToJSON;
|
|
93093
93396
|
exports.previewUpdateRecalculateBalancesToJSON = previewUpdateRecalculateBalancesToJSON;
|
|
93397
|
+
exports.previewUpdateRemoveDiscountToJSON = previewUpdateRemoveDiscountToJSON;
|
|
93094
93398
|
exports.previewUpdateRemoveLicenseToJSON = previewUpdateRemoveLicenseToJSON;
|
|
93095
93399
|
exports.previewUpdateResponseFromJSON = previewUpdateResponseFromJSON;
|
|
93096
93400
|
exports.previewUpdateSpendLimitToJSON = previewUpdateSpendLimitToJSON;
|