autumn-js 1.2.37 → 1.2.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/dist/backend/adapters/express.js +3330 -2533
  2. package/dist/backend/adapters/express.mjs +8 -8
  3. package/dist/backend/adapters/fetch.js +3330 -2533
  4. package/dist/backend/adapters/fetch.mjs +8 -8
  5. package/dist/backend/adapters/hono.js +3330 -2533
  6. package/dist/backend/adapters/hono.mjs +8 -8
  7. package/dist/backend/adapters/index.js +3330 -2533
  8. package/dist/backend/adapters/index.mjs +11 -11
  9. package/dist/backend/adapters/next.js +3330 -2533
  10. package/dist/backend/adapters/next.mjs +8 -8
  11. package/dist/backend/{chunk-UWZYM74E.mjs → chunk-5IUIFE55.mjs} +1 -1
  12. package/dist/backend/{chunk-PMD3Z6EM.mjs → chunk-GL2SBEQ5.mjs} +1 -1
  13. package/dist/backend/{chunk-VMYD4IWS.mjs → chunk-KJP3DHPM.mjs} +1 -1
  14. package/dist/backend/{chunk-DR35G6GS.mjs → chunk-KM5AXZWJ.mjs} +4 -4
  15. package/dist/backend/{chunk-QLH3M5PR.mjs → chunk-MSMJS42G.mjs} +3330 -2533
  16. package/dist/backend/{chunk-AFWY6NDJ.mjs → chunk-UMTASWZL.mjs} +1 -1
  17. package/dist/backend/{chunk-AOAGX4AS.mjs → chunk-V32P22RC.mjs} +6 -6
  18. package/dist/backend/core/handlers/coreHandler.d.mts +1 -1
  19. package/dist/backend/core/handlers/coreHandler.d.ts +1 -1
  20. package/dist/backend/core/handlers/coreHandler.js +3330 -2533
  21. package/dist/backend/core/handlers/coreHandler.mjs +6 -6
  22. package/dist/backend/core/handlers/executeRoute.d.mts +1 -1
  23. package/dist/backend/core/handlers/executeRoute.d.ts +1 -1
  24. package/dist/backend/core/handlers/executeRoute.mjs +4 -4
  25. package/dist/backend/core/handlers/handleRouteByName.js +3330 -2533
  26. package/dist/backend/core/handlers/handleRouteByName.mjs +6 -6
  27. package/dist/backend/core/handlers/index.d.mts +1 -1
  28. package/dist/backend/core/handlers/index.d.ts +1 -1
  29. package/dist/backend/core/handlers/index.js +3330 -2533
  30. package/dist/backend/core/handlers/index.mjs +10 -10
  31. package/dist/backend/core/index.d.mts +1 -1
  32. package/dist/backend/core/index.d.ts +1 -1
  33. package/dist/backend/core/index.js +3330 -2533
  34. package/dist/backend/core/index.mjs +9 -9
  35. package/dist/backend/core/routes/index.d.mts +1 -1
  36. package/dist/backend/core/routes/index.d.ts +1 -1
  37. package/dist/backend/core/routes/index.mjs +1 -1
  38. package/dist/backend/core/routes/routeBuilder.d.mts +1 -1
  39. package/dist/backend/core/routes/routeBuilder.d.ts +1 -1
  40. package/dist/backend/core/routes/routeConfigs.d.mts +1 -1
  41. package/dist/backend/core/routes/routeConfigs.d.ts +1 -1
  42. package/dist/backend/core/routes/routeConfigs.mjs +1 -1
  43. package/dist/backend/core/types/handlerTypes.d.mts +1 -1
  44. package/dist/backend/core/types/handlerTypes.d.ts +1 -1
  45. package/dist/backend/core/types/index.d.mts +1 -1
  46. package/dist/backend/core/types/index.d.ts +1 -1
  47. package/dist/backend/core/types/routeTypes.d.mts +1 -1
  48. package/dist/backend/core/types/routeTypes.d.ts +1 -1
  49. package/dist/backend/core/utils/index.mjs +3 -3
  50. package/dist/backend/index.d.mts +2 -2
  51. package/dist/backend/index.d.ts +2 -2
  52. package/dist/backend/index.js +3330 -2533
  53. package/dist/backend/index.mjs +9 -9
  54. package/dist/backend/{routeTypes-M8hsq6U-.d.mts → routeTypes-CIqS7yVo.d.mts} +1278 -197
  55. package/dist/backend/{routeTypes-B0zHyzyX.d.ts → routeTypes-uWaE8YYa.d.ts} +1278 -197
  56. package/dist/better-auth/{chunk-HCM5WABX.mjs → chunk-LLBM6UQN.mjs} +3330 -2533
  57. package/dist/better-auth/index.js +3330 -2533
  58. package/dist/better-auth/index.mjs +1 -1
  59. package/dist/better-auth/utils/handleBetterAuthRoute.js +3330 -2533
  60. package/dist/better-auth/utils/handleBetterAuthRoute.mjs +1 -1
  61. package/dist/better-auth/utils/index.js +3330 -2533
  62. package/dist/better-auth/utils/index.mjs +1 -1
  63. package/dist/react/AutumnContext.d.mts +2 -2
  64. package/dist/react/AutumnContext.d.ts +2 -2
  65. package/dist/react/client/AutumnClient.d.mts +2 -2
  66. package/dist/react/client/AutumnClient.d.ts +2 -2
  67. package/dist/react/client/IAutumnClient.d.mts +2 -2
  68. package/dist/react/client/IAutumnClient.d.ts +2 -2
  69. package/dist/react/client/index.d.mts +2 -2
  70. package/dist/react/client/index.d.ts +2 -2
  71. package/dist/react/{customer-D811_jP2.d.ts → customer-CrxRrY4o.d.ts} +99 -24
  72. package/dist/react/{customer-CkuydPCd.d.mts → customer-DM044m1a.d.mts} +99 -24
  73. package/dist/react/hooks/index.d.mts +2 -2
  74. package/dist/react/hooks/index.d.ts +2 -2
  75. package/dist/react/hooks/internal/check/balanceToAllowed.d.mts +1 -1
  76. package/dist/react/hooks/internal/check/balanceToAllowed.d.ts +1 -1
  77. package/dist/react/hooks/internal/check/customerToFeatures.d.mts +1 -1
  78. package/dist/react/hooks/internal/check/customerToFeatures.d.ts +1 -1
  79. package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.mts +1 -1
  80. package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.ts +1 -1
  81. package/dist/react/hooks/internal/check/getCreditCost.d.mts +1 -1
  82. package/dist/react/hooks/internal/check/getCreditCost.d.ts +1 -1
  83. package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +2 -2
  84. package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +2 -2
  85. package/dist/react/hooks/internal/useCustomerActions.d.mts +2 -2
  86. package/dist/react/hooks/internal/useCustomerActions.d.ts +2 -2
  87. package/dist/react/hooks/useAggregateEvents.d.mts +1 -1
  88. package/dist/react/hooks/useAggregateEvents.d.ts +1 -1
  89. package/dist/react/hooks/useCustomer.d.mts +2 -2
  90. package/dist/react/hooks/useCustomer.d.ts +2 -2
  91. package/dist/react/hooks/useEntity.d.mts +1 -1
  92. package/dist/react/hooks/useEntity.d.ts +1 -1
  93. package/dist/react/hooks/useListEvents.d.mts +1 -1
  94. package/dist/react/hooks/useListEvents.d.ts +1 -1
  95. package/dist/react/hooks/useListPlans.d.mts +1 -1
  96. package/dist/react/hooks/useListPlans.d.ts +1 -1
  97. package/dist/react/hooks/useReferrals.d.mts +1 -1
  98. package/dist/react/hooks/useReferrals.d.ts +1 -1
  99. package/dist/react/index.d.mts +2 -2
  100. package/dist/react/index.d.ts +2 -2
  101. package/dist/react/{params-CaUBdt-x.d.ts → params-B-1vi9za.d.ts} +60 -0
  102. package/dist/react/{params-C0cH2cYK.d.mts → params-Bf18ATYi.d.mts} +60 -0
  103. package/dist/sdk/index.d.mts +1447 -183
  104. package/dist/sdk/index.d.ts +1447 -183
  105. package/dist/sdk/index.js +7147 -6084
  106. package/dist/sdk/index.mjs +7021 -6084
  107. package/package.json +1 -1
  108. package/dist/backend/{chunk-MOHYGUMA.mjs → chunk-IXUCY7AU.mjs} +3 -3
@@ -1,5 +1,5 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
- import { C as ClientAggregateEventsParams, u as AggregateEventsResponse, v as AggregateEventsList, T as Total } from '../params-CaUBdt-x.js';
2
+ import { C as ClientAggregateEventsParams, u as AggregateEventsResponse, v as AggregateEventsList, T as Total } from '../params-B-1vi9za.js';
3
3
  import { AutumnClientError } from '../client/AutumnClientError.js';
4
4
  import { HookParams } from './types.js';
5
5
  import '../plan-CUExbmy9.js';
@@ -1,5 +1,5 @@
1
- import { n as ClientCheckParams, d as ClientGetOrCreateCustomerParams, a as ClientAttachParams, A as AttachResponse, h as ClientPreviewAttachParams, p as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, q as PreviewUpdateResponse, o as CheckResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, r as PreviewMultiAttachResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse } from '../params-C0cH2cYK.mjs';
2
- import { C as Customer } from '../customer-CkuydPCd.mjs';
1
+ import { n as ClientCheckParams, d as ClientGetOrCreateCustomerParams, a as ClientAttachParams, A as AttachResponse, h as ClientPreviewAttachParams, p as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, q as PreviewUpdateResponse, o as CheckResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, r as PreviewMultiAttachResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse } from '../params-Bf18ATYi.mjs';
2
+ import { C as Customer } from '../customer-DM044m1a.mjs';
3
3
  import { HookParams, HookResultWithMethods } from './types.mjs';
4
4
  import '../plan-CUExbmy9.mjs';
5
5
  import '@tanstack/react-query';
@@ -1,5 +1,5 @@
1
- import { n as ClientCheckParams, d as ClientGetOrCreateCustomerParams, a as ClientAttachParams, A as AttachResponse, h as ClientPreviewAttachParams, p as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, q as PreviewUpdateResponse, o as CheckResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, r as PreviewMultiAttachResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse } from '../params-CaUBdt-x.js';
2
- import { C as Customer } from '../customer-D811_jP2.js';
1
+ import { n as ClientCheckParams, d as ClientGetOrCreateCustomerParams, a as ClientAttachParams, A as AttachResponse, h as ClientPreviewAttachParams, p as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, q as PreviewUpdateResponse, o as CheckResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, r as PreviewMultiAttachResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse } from '../params-B-1vi9za.js';
2
+ import { C as Customer } from '../customer-CrxRrY4o.js';
3
3
  import { HookParams, HookResultWithMethods } from './types.js';
4
4
  import '../plan-CUExbmy9.js';
5
5
  import '@tanstack/react-query';
@@ -1,4 +1,4 @@
1
- import { c as ClientGetEntityParams, G as GetEntityResponse } from '../params-C0cH2cYK.mjs';
1
+ import { c as ClientGetEntityParams, G as GetEntityResponse } from '../params-Bf18ATYi.mjs';
2
2
  import { HookParams, HookResult } from './types.mjs';
3
3
  import '../plan-CUExbmy9.mjs';
4
4
  import '@tanstack/react-query';
@@ -1,4 +1,4 @@
1
- import { c as ClientGetEntityParams, G as GetEntityResponse } from '../params-CaUBdt-x.js';
1
+ import { c as ClientGetEntityParams, G as GetEntityResponse } from '../params-B-1vi9za.js';
2
2
  import { HookParams, HookResult } from './types.js';
3
3
  import '../plan-CUExbmy9.js';
4
4
  import '@tanstack/react-query';
@@ -1,5 +1,5 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
- import { e as ClientListEventsParams, L as ListEventsResponse, w as ListEventsList } from '../params-C0cH2cYK.mjs';
2
+ import { e as ClientListEventsParams, L as ListEventsResponse, w as ListEventsList } from '../params-Bf18ATYi.mjs';
3
3
  import { AutumnClientError } from '../client/AutumnClientError.mjs';
4
4
  import { HookParams } from './types.mjs';
5
5
  import '../plan-CUExbmy9.mjs';
@@ -1,5 +1,5 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
- import { e as ClientListEventsParams, L as ListEventsResponse, w as ListEventsList } from '../params-CaUBdt-x.js';
2
+ import { e as ClientListEventsParams, L as ListEventsResponse, w as ListEventsList } from '../params-B-1vi9za.js';
3
3
  import { AutumnClientError } from '../client/AutumnClientError.js';
4
4
  import { HookParams } from './types.js';
5
5
  import '../plan-CUExbmy9.js';
@@ -1,6 +1,6 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
2
  import { a as ListPlansList } from '../list-plans-op-DvXyRegM.mjs';
3
- import { t as ClientListPlansParams } from '../params-C0cH2cYK.mjs';
3
+ import { t as ClientListPlansParams } from '../params-Bf18ATYi.mjs';
4
4
  import { AutumnClientError } from '../client/AutumnClientError.mjs';
5
5
  import { HookParams } from './types.mjs';
6
6
  import '../plan-CUExbmy9.mjs';
@@ -1,6 +1,6 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
2
  import { a as ListPlansList } from '../list-plans-op-Cwb5iIdA.js';
3
- import { t as ClientListPlansParams } from '../params-CaUBdt-x.js';
3
+ import { t as ClientListPlansParams } from '../params-B-1vi9za.js';
4
4
  import { AutumnClientError } from '../client/AutumnClientError.js';
5
5
  import { HookParams } from './types.js';
6
6
  import '../plan-CUExbmy9.js';
@@ -1,4 +1,4 @@
1
- import { b as ClientCreateReferralCodeParams, s as CreateReferralCodeResponse, k as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse } from '../params-C0cH2cYK.mjs';
1
+ import { b as ClientCreateReferralCodeParams, s as CreateReferralCodeResponse, k as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse } from '../params-Bf18ATYi.mjs';
2
2
  import { HookParams, HookResultWithMethods } from './types.mjs';
3
3
  import '../plan-CUExbmy9.mjs';
4
4
  import '@tanstack/react-query';
@@ -1,4 +1,4 @@
1
- import { b as ClientCreateReferralCodeParams, s as CreateReferralCodeResponse, k as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse } from '../params-CaUBdt-x.js';
1
+ import { b as ClientCreateReferralCodeParams, s as CreateReferralCodeResponse, k as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse } from '../params-B-1vi9za.js';
2
2
  import { HookParams, HookResultWithMethods } from './types.js';
3
3
  import '../plan-CUExbmy9.js';
4
4
  import '@tanstack/react-query';
@@ -1,4 +1,4 @@
1
- export { C as ClientAggregateEventsParams, a as ClientAttachParams, b as ClientCreateReferralCodeParams, c as ClientGetEntityParams, d as ClientGetOrCreateCustomerParams, e as ClientListEventsParams, f as ClientMultiAttachParams, g as ClientOpenCustomerPortalParams, h as ClientPreviewAttachParams, i as ClientPreviewMultiAttachParams, j as ClientPreviewUpdateSubscriptionParams, k as ClientRedeemReferralCodeParams, l as ClientSetupPaymentParams, m as ClientUpdateSubscriptionParams, P as ProtectedFields } from './params-C0cH2cYK.mjs';
1
+ export { C as ClientAggregateEventsParams, a as ClientAttachParams, b as ClientCreateReferralCodeParams, c as ClientGetEntityParams, d as ClientGetOrCreateCustomerParams, e as ClientListEventsParams, f as ClientMultiAttachParams, g as ClientOpenCustomerPortalParams, h as ClientPreviewAttachParams, i as ClientPreviewMultiAttachParams, j as ClientPreviewUpdateSubscriptionParams, k as ClientRedeemReferralCodeParams, l as ClientSetupPaymentParams, m as ClientUpdateSubscriptionParams, P as ProtectedFields } from './params-Bf18ATYi.mjs';
2
2
  export { useAutumnClient } from './AutumnContext.mjs';
3
3
  export { AutumnProvider, AutumnProviderProps } from './AutumnProvider.mjs';
4
4
  export { AutumnClientConfig, createAutumnClient } from './client/AutumnClient.mjs';
@@ -12,7 +12,7 @@ export { UseListPlansParams, useListPlans } from './hooks/useListPlans.mjs';
12
12
  export { UseReferralsParams, UseReferralsResult, useReferrals } from './hooks/useReferrals.mjs';
13
13
  import './plan-CUExbmy9.mjs';
14
14
  import 'react';
15
- import './customer-CkuydPCd.mjs';
15
+ import './customer-DM044m1a.mjs';
16
16
  import './list-plans-op-DvXyRegM.mjs';
17
17
  import '@tanstack/react-query';
18
18
  import './hooks/types.mjs';
@@ -1,4 +1,4 @@
1
- export { C as ClientAggregateEventsParams, a as ClientAttachParams, b as ClientCreateReferralCodeParams, c as ClientGetEntityParams, d as ClientGetOrCreateCustomerParams, e as ClientListEventsParams, f as ClientMultiAttachParams, g as ClientOpenCustomerPortalParams, h as ClientPreviewAttachParams, i as ClientPreviewMultiAttachParams, j as ClientPreviewUpdateSubscriptionParams, k as ClientRedeemReferralCodeParams, l as ClientSetupPaymentParams, m as ClientUpdateSubscriptionParams, P as ProtectedFields } from './params-CaUBdt-x.js';
1
+ export { C as ClientAggregateEventsParams, a as ClientAttachParams, b as ClientCreateReferralCodeParams, c as ClientGetEntityParams, d as ClientGetOrCreateCustomerParams, e as ClientListEventsParams, f as ClientMultiAttachParams, g as ClientOpenCustomerPortalParams, h as ClientPreviewAttachParams, i as ClientPreviewMultiAttachParams, j as ClientPreviewUpdateSubscriptionParams, k as ClientRedeemReferralCodeParams, l as ClientSetupPaymentParams, m as ClientUpdateSubscriptionParams, P as ProtectedFields } from './params-B-1vi9za.js';
2
2
  export { useAutumnClient } from './AutumnContext.js';
3
3
  export { AutumnProvider, AutumnProviderProps } from './AutumnProvider.js';
4
4
  export { AutumnClientConfig, createAutumnClient } from './client/AutumnClient.js';
@@ -12,7 +12,7 @@ export { UseListPlansParams, useListPlans } from './hooks/useListPlans.js';
12
12
  export { UseReferralsParams, UseReferralsResult, useReferrals } from './hooks/useReferrals.js';
13
13
  import './plan-CUExbmy9.js';
14
14
  import 'react';
15
- import './customer-D811_jP2.js';
15
+ import './customer-CrxRrY4o.js';
16
16
  import './list-plans-op-Cwb5iIdA.js';
17
17
  import '@tanstack/react-query';
18
18
  import './hooks/types.js';
@@ -4256,6 +4256,17 @@ declare const GetEntityLimitType: {
4256
4256
  * How overage_limit is interpreted: an absolute overage cap (default) or a percentage of the main-plan allowance.
4257
4257
  */
4258
4258
  type GetEntityLimitType = OpenEnum<typeof GetEntityLimitType>;
4259
+ /**
4260
+ * Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
4261
+ */
4262
+ declare const GetEntitySpendLimitSource: {
4263
+ readonly Customer: "customer";
4264
+ readonly Plan: "plan";
4265
+ };
4266
+ /**
4267
+ * Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
4268
+ */
4269
+ type GetEntitySpendLimitSource = OpenEnum<typeof GetEntitySpendLimitSource>;
4259
4270
  type GetEntitySpendLimit = {
4260
4271
  /**
4261
4272
  * Optional feature ID this spend limit applies to.
@@ -4277,6 +4288,10 @@ type GetEntitySpendLimit = {
4277
4288
  * When true, overage for this feature is not posted to Stripe. Usage tracking and balance resets still behave normally.
4278
4289
  */
4279
4290
  skipOverageBilling?: boolean | undefined;
4291
+ /**
4292
+ * Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
4293
+ */
4294
+ source?: GetEntitySpendLimitSource | undefined;
4280
4295
  };
4281
4296
  /**
4282
4297
  * Interval for the cap, aligned to the customer's billing cycle.
@@ -4299,6 +4314,17 @@ type GetEntityFilter = {
4299
4314
  [k: string]: any;
4300
4315
  };
4301
4316
  };
4317
+ /**
4318
+ * Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
4319
+ */
4320
+ declare const GetEntityUsageLimitSource: {
4321
+ readonly Customer: "customer";
4322
+ readonly Plan: "plan";
4323
+ };
4324
+ /**
4325
+ * Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
4326
+ */
4327
+ type GetEntityUsageLimitSource = OpenEnum<typeof GetEntityUsageLimitSource>;
4302
4328
  type GetEntityUsageLimit = {
4303
4329
  /**
4304
4330
  * The feature this usage limit applies to.
@@ -4324,6 +4350,10 @@ type GetEntityUsageLimit = {
4324
4350
  * Current usage already consumed in the active interval. Response-only; not stored on billing controls.
4325
4351
  */
4326
4352
  usage?: number | undefined;
4353
+ /**
4354
+ * Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
4355
+ */
4356
+ source?: GetEntityUsageLimitSource | undefined;
4327
4357
  };
4328
4358
  /**
4329
4359
  * Whether the threshold is an absolute count or a percentage of the usage allowance or remaining balance.
@@ -4338,6 +4368,17 @@ declare const GetEntityThresholdType: {
4338
4368
  * Whether the threshold is an absolute count or a percentage of the usage allowance or remaining balance.
4339
4369
  */
4340
4370
  type GetEntityThresholdType = OpenEnum<typeof GetEntityThresholdType>;
4371
+ /**
4372
+ * Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
4373
+ */
4374
+ declare const GetEntityUsageAlertSource: {
4375
+ readonly Customer: "customer";
4376
+ readonly Plan: "plan";
4377
+ };
4378
+ /**
4379
+ * Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
4380
+ */
4381
+ type GetEntityUsageAlertSource = OpenEnum<typeof GetEntityUsageAlertSource>;
4341
4382
  type GetEntityUsageAlert = {
4342
4383
  /**
4343
4384
  * The feature ID this alert applies to.
@@ -4359,7 +4400,22 @@ type GetEntityUsageAlert = {
4359
4400
  * Optional user-defined label to distinguish multiple alerts on the same feature.
4360
4401
  */
4361
4402
  name?: string | undefined;
4403
+ /**
4404
+ * Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
4405
+ */
4406
+ source?: GetEntityUsageAlertSource | undefined;
4362
4407
  };
4408
+ /**
4409
+ * Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
4410
+ */
4411
+ declare const GetEntityOverageAllowedSource: {
4412
+ readonly Customer: "customer";
4413
+ readonly Plan: "plan";
4414
+ };
4415
+ /**
4416
+ * Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
4417
+ */
4418
+ type GetEntityOverageAllowedSource = OpenEnum<typeof GetEntityOverageAllowedSource>;
4363
4419
  type GetEntityOverageAllowed = {
4364
4420
  /**
4365
4421
  * The feature ID this overage allowed control applies to.
@@ -4369,6 +4425,10 @@ type GetEntityOverageAllowed = {
4369
4425
  * Whether overage is allowed for this feature.
4370
4426
  */
4371
4427
  enabled: boolean;
4428
+ /**
4429
+ * Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
4430
+ */
4431
+ source?: GetEntityOverageAllowedSource | undefined;
4372
4432
  };
4373
4433
  /**
4374
4434
  * Billing controls for the entity.
@@ -4256,6 +4256,17 @@ declare const GetEntityLimitType: {
4256
4256
  * How overage_limit is interpreted: an absolute overage cap (default) or a percentage of the main-plan allowance.
4257
4257
  */
4258
4258
  type GetEntityLimitType = OpenEnum<typeof GetEntityLimitType>;
4259
+ /**
4260
+ * Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
4261
+ */
4262
+ declare const GetEntitySpendLimitSource: {
4263
+ readonly Customer: "customer";
4264
+ readonly Plan: "plan";
4265
+ };
4266
+ /**
4267
+ * Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
4268
+ */
4269
+ type GetEntitySpendLimitSource = OpenEnum<typeof GetEntitySpendLimitSource>;
4259
4270
  type GetEntitySpendLimit = {
4260
4271
  /**
4261
4272
  * Optional feature ID this spend limit applies to.
@@ -4277,6 +4288,10 @@ type GetEntitySpendLimit = {
4277
4288
  * When true, overage for this feature is not posted to Stripe. Usage tracking and balance resets still behave normally.
4278
4289
  */
4279
4290
  skipOverageBilling?: boolean | undefined;
4291
+ /**
4292
+ * Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
4293
+ */
4294
+ source?: GetEntitySpendLimitSource | undefined;
4280
4295
  };
4281
4296
  /**
4282
4297
  * Interval for the cap, aligned to the customer's billing cycle.
@@ -4299,6 +4314,17 @@ type GetEntityFilter = {
4299
4314
  [k: string]: any;
4300
4315
  };
4301
4316
  };
4317
+ /**
4318
+ * Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
4319
+ */
4320
+ declare const GetEntityUsageLimitSource: {
4321
+ readonly Customer: "customer";
4322
+ readonly Plan: "plan";
4323
+ };
4324
+ /**
4325
+ * Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
4326
+ */
4327
+ type GetEntityUsageLimitSource = OpenEnum<typeof GetEntityUsageLimitSource>;
4302
4328
  type GetEntityUsageLimit = {
4303
4329
  /**
4304
4330
  * The feature this usage limit applies to.
@@ -4324,6 +4350,10 @@ type GetEntityUsageLimit = {
4324
4350
  * Current usage already consumed in the active interval. Response-only; not stored on billing controls.
4325
4351
  */
4326
4352
  usage?: number | undefined;
4353
+ /**
4354
+ * Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
4355
+ */
4356
+ source?: GetEntityUsageLimitSource | undefined;
4327
4357
  };
4328
4358
  /**
4329
4359
  * Whether the threshold is an absolute count or a percentage of the usage allowance or remaining balance.
@@ -4338,6 +4368,17 @@ declare const GetEntityThresholdType: {
4338
4368
  * Whether the threshold is an absolute count or a percentage of the usage allowance or remaining balance.
4339
4369
  */
4340
4370
  type GetEntityThresholdType = OpenEnum<typeof GetEntityThresholdType>;
4371
+ /**
4372
+ * Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
4373
+ */
4374
+ declare const GetEntityUsageAlertSource: {
4375
+ readonly Customer: "customer";
4376
+ readonly Plan: "plan";
4377
+ };
4378
+ /**
4379
+ * Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
4380
+ */
4381
+ type GetEntityUsageAlertSource = OpenEnum<typeof GetEntityUsageAlertSource>;
4341
4382
  type GetEntityUsageAlert = {
4342
4383
  /**
4343
4384
  * The feature ID this alert applies to.
@@ -4359,7 +4400,22 @@ type GetEntityUsageAlert = {
4359
4400
  * Optional user-defined label to distinguish multiple alerts on the same feature.
4360
4401
  */
4361
4402
  name?: string | undefined;
4403
+ /**
4404
+ * Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
4405
+ */
4406
+ source?: GetEntityUsageAlertSource | undefined;
4362
4407
  };
4408
+ /**
4409
+ * Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
4410
+ */
4411
+ declare const GetEntityOverageAllowedSource: {
4412
+ readonly Customer: "customer";
4413
+ readonly Plan: "plan";
4414
+ };
4415
+ /**
4416
+ * Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
4417
+ */
4418
+ type GetEntityOverageAllowedSource = OpenEnum<typeof GetEntityOverageAllowedSource>;
4363
4419
  type GetEntityOverageAllowed = {
4364
4420
  /**
4365
4421
  * The feature ID this overage allowed control applies to.
@@ -4369,6 +4425,10 @@ type GetEntityOverageAllowed = {
4369
4425
  * Whether overage is allowed for this feature.
4370
4426
  */
4371
4427
  enabled: boolean;
4428
+ /**
4429
+ * Response-only: whether the entry is a customer-level override or inherited from an attached plan's defaults.
4430
+ */
4431
+ source?: GetEntityOverageAllowedSource | undefined;
4372
4432
  };
4373
4433
  /**
4374
4434
  * Billing controls for the entity.