@schematichq/schematic-typescript-node 1.4.7 → 1.4.8

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 (119) hide show
  1. package/dist/api/resources/accounts/client/Client.d.ts +20 -0
  2. package/dist/api/resources/accounts/client/requests/CountAccountMembersRequest.d.ts +18 -0
  3. package/dist/api/resources/accounts/client/requests/index.d.ts +1 -0
  4. package/dist/api/resources/accounts/types/CountAccountMembersParams.d.ts +12 -0
  5. package/dist/api/resources/accounts/types/CountAccountMembersResponse.d.ts +6 -0
  6. package/dist/api/resources/accounts/types/index.d.ts +2 -0
  7. package/dist/api/resources/billing/client/Client.d.ts +6 -6
  8. package/dist/api/resources/billing/client/requests/CountBillingProductsRequest.d.ts +1 -1
  9. package/dist/api/resources/billing/client/requests/CountCustomersRequest.d.ts +1 -1
  10. package/dist/api/resources/billing/client/requests/ListBillingPricesRequest.d.ts +1 -1
  11. package/dist/api/resources/billing/client/requests/ListBillingProductPricesRequest.d.ts +1 -1
  12. package/dist/api/resources/billing/client/requests/ListBillingProductsRequest.d.ts +1 -1
  13. package/dist/api/resources/billing/client/requests/ListCustomersWithSubscriptionsRequest.d.ts +1 -1
  14. package/dist/api/resources/checkout/client/Client.d.ts +16 -0
  15. package/dist/api/resources/entitlements/client/Client.d.ts +3 -3
  16. package/dist/api/resources/entitlements/client/requests/CountFeatureUsageRequest.d.ts +1 -1
  17. package/dist/api/resources/entitlements/client/requests/CreateBillingLinkedPlanEntitlementRequestBody.d.ts +1 -1
  18. package/dist/api/resources/entitlements/client/requests/ListFeatureUsageRequest.d.ts +1 -1
  19. package/dist/api/resources/features/client/Client.d.ts +3 -3
  20. package/dist/api/resources/features/client/requests/CountFeaturesRequest.d.ts +1 -1
  21. package/dist/api/resources/features/client/requests/CreateBillingLinkedFeatureRequestBody.d.ts +1 -1
  22. package/dist/api/resources/features/client/requests/ListFeaturesRequest.d.ts +1 -1
  23. package/dist/api/resources/integrationsapi/client/Client.d.ts +54 -3
  24. package/dist/api/resources/integrationsapi/types/AssumeStripeInstalledResponse.d.ts +6 -0
  25. package/dist/api/resources/integrationsapi/types/InstallIntegrationResponse.d.ts +6 -0
  26. package/dist/api/resources/integrationsapi/types/InstallStripeResponse.d.ts +6 -0
  27. package/dist/api/resources/integrationsapi/types/{LoadSampleDataSetV2Response.d.ts → LoadSampleDataSetResponse.d.ts} +1 -1
  28. package/dist/api/resources/integrationsapi/types/index.d.ts +4 -1
  29. package/dist/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +1 -0
  30. package/dist/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +1 -0
  31. package/dist/api/resources/plans/client/Client.d.ts +1 -1
  32. package/dist/api/resources/plans/client/requests/CreateBillingLinkedPlanRequestBody.d.ts +1 -1
  33. package/dist/api/types/AccountMemberResponseData.d.ts +2 -0
  34. package/dist/api/types/BillingCreditGrantReason.d.ts +1 -0
  35. package/dist/api/types/BillingCreditGrantResponseData.d.ts +4 -0
  36. package/dist/api/types/BillingCreditLedgerAuthority.d.ts +6 -0
  37. package/dist/api/types/BillingCreditView.d.ts +1 -0
  38. package/dist/api/types/BillingPlanCreditGrantResponseData.d.ts +2 -0
  39. package/dist/api/types/BillingProviderType.d.ts +1 -0
  40. package/dist/api/types/ChangeSubscriptionInternalRequestBody.d.ts +1 -0
  41. package/dist/api/types/ChangeSubscriptionRequestBody.d.ts +1 -0
  42. package/dist/api/types/CheckoutDataResponseData.d.ts +1 -0
  43. package/dist/api/types/CheckoutFieldInput.d.ts +8 -0
  44. package/dist/api/types/CheckoutFieldResponseData.d.ts +12 -0
  45. package/dist/api/types/CheckoutFieldValue.d.ts +4 -0
  46. package/dist/api/types/CheckoutFieldWithValue.d.ts +9 -0
  47. package/dist/api/types/CompanyCreditBalanceResponseData.d.ts +2 -0
  48. package/dist/api/types/CompanyPlanCreditGrantView.d.ts +1 -0
  49. package/dist/api/types/ComponentHydrateResponseData.d.ts +1 -0
  50. package/dist/api/types/ComponentPreviewResponseData.d.ts +1 -0
  51. package/dist/api/types/CreateBillingPlanCreditGrantRequestBody.d.ts +2 -0
  52. package/dist/api/types/CreditCompanyGrantView.d.ts +3 -0
  53. package/dist/api/types/CreditEventLedgerResponseData.d.ts +1 -0
  54. package/dist/api/types/CreditUsageReason.d.ts +8 -0
  55. package/dist/api/types/EventDetailResponseData.d.ts +1 -0
  56. package/dist/api/types/EventResponseData.d.ts +1 -0
  57. package/dist/api/types/InstallIntegrationRequestBody.d.ts +9 -0
  58. package/dist/api/types/IntegrationConfig.d.ts +4 -1
  59. package/dist/api/types/IntegrationInstallConfig.d.ts +13 -0
  60. package/dist/api/types/IntegrationInstallResponseData.d.ts +6 -0
  61. package/dist/api/types/IntegrationType.d.ts +1 -0
  62. package/dist/api/types/ManagePlanRequest.d.ts +1 -0
  63. package/dist/api/types/MetronomeIntegrationConfig.d.ts +1 -0
  64. package/dist/api/types/MigrationErrorCode.d.ts +1 -0
  65. package/dist/api/types/PlanCreditGrantView.d.ts +1 -0
  66. package/dist/api/types/PlanGroupDetailResponseData.d.ts +1 -0
  67. package/dist/api/types/UpdateBillingPlanCreditGrantRequestBody.d.ts +2 -0
  68. package/dist/api/types/index.d.ts +10 -0
  69. package/dist/datastream/merge.d.ts +5 -11
  70. package/dist/index.js +3 -3
  71. package/dist/serialization/resources/accounts/types/CountAccountMembersParams.d.ts +12 -0
  72. package/dist/serialization/resources/accounts/types/CountAccountMembersResponse.d.ts +12 -0
  73. package/dist/serialization/resources/accounts/types/index.d.ts +2 -0
  74. package/dist/serialization/resources/integrationsapi/types/AssumeStripeInstalledResponse.d.ts +11 -0
  75. package/dist/serialization/resources/integrationsapi/types/InstallIntegrationResponse.d.ts +11 -0
  76. package/dist/serialization/resources/integrationsapi/types/InstallStripeResponse.d.ts +11 -0
  77. package/dist/serialization/resources/integrationsapi/types/{LoadSampleDataSetV2Response.d.ts → LoadSampleDataSetResponse.d.ts} +2 -2
  78. package/dist/serialization/resources/integrationsapi/types/index.d.ts +4 -1
  79. package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +2 -0
  80. package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +2 -0
  81. package/dist/serialization/types/AccountMemberResponseData.d.ts +2 -0
  82. package/dist/serialization/types/BillingCreditGrantReason.d.ts +1 -1
  83. package/dist/serialization/types/BillingCreditGrantResponseData.d.ts +3 -0
  84. package/dist/serialization/types/BillingCreditLedgerAuthority.d.ts +7 -0
  85. package/dist/serialization/types/BillingCreditView.d.ts +2 -0
  86. package/dist/serialization/types/BillingPlanCreditGrantResponseData.d.ts +1 -0
  87. package/dist/serialization/types/BillingProviderType.d.ts +1 -1
  88. package/dist/serialization/types/ChangeSubscriptionInternalRequestBody.d.ts +2 -0
  89. package/dist/serialization/types/ChangeSubscriptionRequestBody.d.ts +2 -0
  90. package/dist/serialization/types/CheckoutDataResponseData.d.ts +2 -0
  91. package/dist/serialization/types/CheckoutFieldInput.d.ts +14 -0
  92. package/dist/serialization/types/CheckoutFieldResponseData.d.ts +18 -0
  93. package/dist/serialization/types/CheckoutFieldValue.d.ts +10 -0
  94. package/dist/serialization/types/CheckoutFieldWithValue.d.ts +15 -0
  95. package/dist/serialization/types/CompanyCreditBalanceResponseData.d.ts +2 -0
  96. package/dist/serialization/types/CompanyPlanCreditGrantView.d.ts +1 -0
  97. package/dist/serialization/types/ComponentHydrateResponseData.d.ts +2 -0
  98. package/dist/serialization/types/ComponentPreviewResponseData.d.ts +2 -0
  99. package/dist/serialization/types/CreateBillingPlanCreditGrantRequestBody.d.ts +1 -0
  100. package/dist/serialization/types/CreditCompanyGrantView.d.ts +3 -0
  101. package/dist/serialization/types/CreditEventLedgerResponseData.d.ts +2 -0
  102. package/dist/serialization/types/CreditUsageReason.d.ts +7 -0
  103. package/dist/serialization/types/EventDetailResponseData.d.ts +1 -0
  104. package/dist/serialization/types/EventResponseData.d.ts +1 -0
  105. package/dist/serialization/types/InstallIntegrationRequestBody.d.ts +16 -0
  106. package/dist/serialization/types/IntegrationConfig.d.ts +5 -1
  107. package/dist/serialization/types/IntegrationInstallConfig.d.ts +20 -0
  108. package/dist/serialization/types/IntegrationInstallResponseData.d.ts +14 -0
  109. package/dist/serialization/types/IntegrationType.d.ts +1 -1
  110. package/dist/serialization/types/ManagePlanRequest.d.ts +2 -0
  111. package/dist/serialization/types/MetronomeIntegrationConfig.d.ts +7 -0
  112. package/dist/serialization/types/MigrationErrorCode.d.ts +1 -1
  113. package/dist/serialization/types/PlanCreditGrantView.d.ts +1 -0
  114. package/dist/serialization/types/PlanGroupDetailResponseData.d.ts +2 -0
  115. package/dist/serialization/types/UpdateBillingPlanCreditGrantRequestBody.d.ts +1 -0
  116. package/dist/serialization/types/index.d.ts +10 -0
  117. package/dist/wasm/rulesengine.js +2 -2
  118. package/package.json +1 -1
  119. package/dist/wasm/rulesengine_bg.wasm +0 -0
@@ -0,0 +1,9 @@
1
+ export interface CheckoutFieldWithValue {
2
+ definitionId: string;
3
+ helperText?: string;
4
+ id: string;
5
+ name: string;
6
+ required: boolean;
7
+ stripeMetadataKey: string;
8
+ value?: string;
9
+ }
@@ -2,6 +2,8 @@ import type * as Schematic from "../index";
2
2
  export interface CompanyCreditBalanceResponseData {
3
3
  creditId: string;
4
4
  remaining: number;
5
+ reserved: number;
6
+ settled: number;
5
7
  source: Schematic.BillingProviderType;
6
8
  total?: number;
7
9
  }
@@ -34,6 +34,7 @@ export interface CompanyPlanCreditGrantView {
34
34
  resetCadence?: Schematic.BillingPlanCreditGrantResetCadence;
35
35
  resetStart?: Schematic.BillingPlanCreditGrantResetStart;
36
36
  resetType: Schematic.BillingPlanCreditGrantResetType;
37
+ rolloverPercentage: number;
37
38
  /** Deprecated field, will be removed in the future. Use Credit.SingularName instead. */
38
39
  singularName?: string;
39
40
  updatedAt: Date;
@@ -10,6 +10,7 @@ export interface ComponentHydrateResponseData {
10
10
  component?: Schematic.ComponentResponseData;
11
11
  creditBundles: Schematic.BillingCreditBundleView[];
12
12
  creditGrants: Schematic.CreditCompanyGrantView[];
13
+ customCheckoutFields: Schematic.CheckoutFieldWithValue[];
13
14
  defaultPlan?: Schematic.PlanDetailResponseData;
14
15
  displaySettings: Schematic.ComponentDisplaySettings;
15
16
  featureUsage?: Schematic.FeatureUsageDetailResponseData;
@@ -10,6 +10,7 @@ export interface ComponentPreviewResponseData {
10
10
  component?: Schematic.ComponentResponseData;
11
11
  creditBundles: Schematic.BillingCreditBundleView[];
12
12
  creditGrants: Schematic.CreditCompanyGrantView[];
13
+ customCheckoutFields: Schematic.CheckoutFieldWithValue[];
13
14
  defaultPlan?: Schematic.PlanDetailResponseData;
14
15
  displaySettings: Schematic.ComponentDisplaySettings;
15
16
  featureUsage?: Schematic.FeatureUsageDetailResponseData;
@@ -20,4 +20,6 @@ export interface CreateBillingPlanCreditGrantRequestBody {
20
20
  resetCadence: Schematic.BillingPlanCreditGrantResetCadence;
21
21
  resetStart: Schematic.BillingPlanCreditGrantResetStart;
22
22
  resetType?: Schematic.BillingPlanCreditGrantResetType;
23
+ /** Percentage of unused credits that carry over when this grant resets. Only applies when reset_type is plan_period. Rolled-over credits expire at the next reset and are not rolled again. Defaults to 0. */
24
+ rolloverPercentage?: number;
23
25
  }
@@ -25,7 +25,10 @@ export interface CreditCompanyGrantView {
25
25
  quantityUsed: number;
26
26
  renewalEnabled: boolean;
27
27
  renewalPeriod?: Schematic.BillingPlanCreditGrantResetCadence;
28
+ reserved?: number;
29
+ settled?: number;
28
30
  singularName?: string;
31
+ sourceGrantId?: string;
29
32
  sourceLabel: string;
30
33
  transfers?: Schematic.CreditTransferView[];
31
34
  updatedAt: Date;
@@ -30,5 +30,6 @@ export interface CreditEventLedgerResponseData {
30
30
  sourceId: number;
31
31
  toGrantId?: string;
32
32
  usageEventId?: string;
33
+ usageReason?: Schematic.CreditUsageReason;
33
34
  zeroedOutReason?: Schematic.BillingCreditGrantZeroedOutReason;
34
35
  }
@@ -0,0 +1,8 @@
1
+ export declare const CreditUsageReason: {
2
+ readonly LeaseHold: "lease_hold";
3
+ readonly LeaseRelease: "lease_release";
4
+ readonly ManualAdjustment: "manual_adjustment";
5
+ readonly Reconciliation: "reconciliation";
6
+ readonly Track: "track";
7
+ };
8
+ export type CreditUsageReason = (typeof CreditUsageReason)[keyof typeof CreditUsageReason];
@@ -14,6 +14,7 @@ export interface EventDetailResponseData {
14
14
  features: Schematic.PreviewObject[];
15
15
  id: string;
16
16
  idempotencyKey?: string;
17
+ leaseId?: string;
17
18
  loadedAt?: Date;
18
19
  processedAt?: Date;
19
20
  quantity: number;
@@ -11,6 +11,7 @@ export interface EventResponseData {
11
11
  featureIds: string[];
12
12
  id: string;
13
13
  idempotencyKey?: string;
14
+ leaseId?: string;
14
15
  loadedAt?: Date;
15
16
  processedAt?: Date;
16
17
  quantity: number;
@@ -0,0 +1,9 @@
1
+ import type * as Schematic from "../index";
2
+ export interface InstallIntegrationRequestBody {
3
+ companyMatchingCriteria?: Schematic.CompanyMatchingCriteria;
4
+ companyMatchingField?: string;
5
+ config?: Record<string, unknown>;
6
+ isSandbox?: boolean;
7
+ liveMode?: boolean;
8
+ type: Schematic.IntegrationType;
9
+ }
@@ -1,9 +1,12 @@
1
1
  import type * as Schematic from "../index";
2
- export type IntegrationConfig = Schematic.IntegrationConfig.Clerk | Schematic.IntegrationConfig.Orb | Schematic.IntegrationConfig.Stripe | Schematic.IntegrationConfig.Workos;
2
+ export type IntegrationConfig = Schematic.IntegrationConfig.Clerk | Schematic.IntegrationConfig.Metronome | Schematic.IntegrationConfig.Orb | Schematic.IntegrationConfig.Stripe | Schematic.IntegrationConfig.Workos;
3
3
  export declare namespace IntegrationConfig {
4
4
  interface Clerk extends Schematic.ClerkIntegrationConfig {
5
5
  type: "clerk";
6
6
  }
7
+ interface Metronome extends Schematic.MetronomeIntegrationConfig {
8
+ type: "metronome";
9
+ }
7
10
  interface Orb extends Schematic.OrbIntegrationConfig {
8
11
  type: "orb";
9
12
  }
@@ -0,0 +1,13 @@
1
+ import type * as Schematic from "../index";
2
+ export interface IntegrationInstallConfig {
3
+ companyMatchingCriteria?: Schematic.CompanyMatchingCriteria;
4
+ companyMatchingField?: string;
5
+ config?: Schematic.IntegrationConfig;
6
+ createdAt: Date;
7
+ id: string;
8
+ integrationId: string;
9
+ isAppInstall: boolean;
10
+ isConnectInstall: boolean;
11
+ liveMode: boolean;
12
+ updatedAt: Date;
13
+ }
@@ -0,0 +1,6 @@
1
+ import type * as Schematic from "../index";
2
+ export interface IntegrationInstallResponseData {
3
+ capabilities: Schematic.IntegrationCapabilities;
4
+ config: Schematic.IntegrationInstallConfig;
5
+ integration: Schematic.IntegrationResponseData;
6
+ }
@@ -1,5 +1,6 @@
1
1
  export declare const IntegrationType: {
2
2
  readonly Clerk: "clerk";
3
+ readonly Metronome: "metronome";
3
4
  readonly Orb: "orb";
4
5
  readonly Stripe: "stripe";
5
6
  readonly Unknown: "unknown";
@@ -9,6 +9,7 @@ export interface ManagePlanRequest {
9
9
  companyId: string;
10
10
  couponExternalId?: string;
11
11
  creditBundles: Schematic.UpdateCreditBundleRequestBody[];
12
+ customFieldValues: Schematic.CheckoutFieldValue[];
12
13
  payInAdvanceEntitlements: Schematic.UpdatePayInAdvanceRequestBody[];
13
14
  paymentMethodExternalId?: string;
14
15
  promoCode?: string;
@@ -0,0 +1 @@
1
+ export type MetronomeIntegrationConfig = {};
@@ -3,6 +3,7 @@ export declare const MigrationErrorCode: {
3
3
  readonly MultipleSubscriptions: "multiple_subscriptions";
4
4
  readonly NoPriceForInterval: "no_price_for_interval";
5
5
  readonly NotOnOriginVersion: "not_on_origin_version";
6
+ readonly OperationItemNotFound: "operation_item_not_found";
6
7
  readonly PermanentConfig: "permanent_config";
7
8
  readonly PermanentDecline: "permanent_decline";
8
9
  readonly TransientDecline: "transient_decline";
@@ -31,6 +31,7 @@ export interface PlanCreditGrantView {
31
31
  resetCadence?: Schematic.BillingPlanCreditGrantResetCadence;
32
32
  resetStart?: Schematic.BillingPlanCreditGrantResetStart;
33
33
  resetType: Schematic.BillingPlanCreditGrantResetType;
34
+ rolloverPercentage: number;
34
35
  /** Deprecated field, will be removed in the future. Use Credit.SingularName instead. */
35
36
  singularName?: string;
36
37
  updatedAt: Date;
@@ -3,6 +3,7 @@ export interface PlanGroupDetailResponseData {
3
3
  addOns: Schematic.PlanGroupPlanDetailResponseData[];
4
4
  checkoutSettings: Schematic.CheckoutSettingsResponseData;
5
5
  componentSettings: Schematic.ComponentSettingsResponseData;
6
+ customCheckoutFields: Schematic.CheckoutFieldResponseData[];
6
7
  customPlanConfig?: Schematic.CustomPlanViewConfigResponseData;
7
8
  customPlanId?: string;
8
9
  defaultPlan?: Schematic.PlanGroupPlanDetailResponseData;
@@ -17,4 +17,6 @@ export interface UpdateBillingPlanCreditGrantRequestBody {
17
17
  resetCadence: Schematic.BillingPlanCreditGrantResetCadence;
18
18
  resetStart: Schematic.BillingPlanCreditGrantResetStart;
19
19
  resetType?: Schematic.BillingPlanCreditGrantResetType;
20
+ /** Percentage of unused credits that carry over when this grant resets. Only applies when reset_type is plan_period. Rolled-over credits expire at the next reset and are not rolled again. */
21
+ rolloverPercentage?: number;
20
22
  }
@@ -22,6 +22,7 @@ export * from "./BillingCreditExpiryUnit";
22
22
  export * from "./BillingCreditGrantReason";
23
23
  export * from "./BillingCreditGrantResponseData";
24
24
  export * from "./BillingCreditGrantZeroedOutReason";
25
+ export * from "./BillingCreditLedgerAuthority";
25
26
  export * from "./BillingCreditLedgerResponseData";
26
27
  export * from "./BillingCreditResponseData";
27
28
  export * from "./BillingCreditRolloverPolicy";
@@ -65,6 +66,10 @@ export * from "./CheckFlagResponseData";
65
66
  export * from "./CheckFlagsBulkResponseData";
66
67
  export * from "./CheckFlagsResponseData";
67
68
  export * from "./CheckoutDataResponseData";
69
+ export * from "./CheckoutFieldInput";
70
+ export * from "./CheckoutFieldResponseData";
71
+ export * from "./CheckoutFieldValue";
72
+ export * from "./CheckoutFieldWithValue";
68
73
  export * from "./CheckoutSettingsResponseData";
69
74
  export * from "./CheckoutSubscription";
70
75
  export * from "./ClerkIntegrationConfig";
@@ -143,6 +148,7 @@ export * from "./CreditTransferView";
143
148
  export * from "./CreditTriggerConfig";
144
149
  export * from "./CreditUsage";
145
150
  export * from "./CreditUsageAggregation";
151
+ export * from "./CreditUsageReason";
146
152
  export * from "./CurrencyPriceRequestBody";
147
153
  export * from "./CustomPlanActivationStrategy";
148
154
  export * from "./CustomPlanBillingResponseData";
@@ -209,8 +215,11 @@ export * from "./FlagType";
209
215
  export * from "./FlagView";
210
216
  export * from "./GenericPreviewObject";
211
217
  export * from "./InsightsSummaryResponseData";
218
+ export * from "./InstallIntegrationRequestBody";
212
219
  export * from "./IntegrationCapabilities";
213
220
  export * from "./IntegrationConfig";
221
+ export * from "./IntegrationInstallConfig";
222
+ export * from "./IntegrationInstallResponseData";
214
223
  export * from "./IntegrationResponseData";
215
224
  export * from "./IntegrationState";
216
225
  export * from "./IntegrationsDataSetResponseData";
@@ -231,6 +240,7 @@ export * from "./MarkCustomPlanBillingPaidRequestBody";
231
240
  export * from "./MeterRequestBody";
232
241
  export * from "./MetricPeriod";
233
242
  export * from "./MetricPeriodMonthReset";
243
+ export * from "./MetronomeIntegrationConfig";
234
244
  export * from "./MigrationErrorCode";
235
245
  export * from "./MrrResponseData";
236
246
  export * from "./OrbIntegrationConfig";
@@ -1,11 +1,5 @@
1
1
  import type * as Schematic from "../api/types";
2
- /**
3
- * Creates a complete deep copy of a Company object.
4
- */
5
2
  export declare function deepCopyCompany(c: Schematic.RulesengineCompany): Schematic.RulesengineCompany;
6
- /**
7
- * Creates a complete deep copy of a User object.
8
- */
9
3
  export declare function deepCopyUser(u: Schematic.RulesengineUser): Schematic.RulesengineUser;
10
4
  /**
11
5
  * Merges a partial update into an existing Company.
@@ -17,13 +11,13 @@ export declare function deepCopyUser(u: Schematic.RulesengineUser): Schematic.Ru
17
11
  * Partials don't carry refreshed entitlements, so when their derived fields
18
12
  * change in another part of the company we sync them here to match server
19
13
  * behavior:
20
- * - credit_remaining ← credit_balances[credit_id]
21
- * - usage ← metric value matching (event_name, metric_period, month_reset)
14
+ * - creditRemaining ← credit_balances[credit_id]
15
+ * - usage ← metric value matching (eventName, metricPeriod, monthReset)
22
16
  * Both are skipped when the partial also sends entitlements wholesale.
23
17
  *
24
- * Wire format uses snake_case keys. The existing company from cache
25
- * may have either camelCase or snake_case keys depending on how it
26
- * was stored.
18
+ * Partial updates arrive as raw wire payloads (snake_case keys) and are merged
19
+ * into an existing camelCase-canonicalized entity; each case writes the
20
+ * corresponding camelCase field so the cached entity stays in a single shape.
27
21
  */
28
22
  export declare function partialCompany(existing: Schematic.RulesengineCompany, partial: Record<string, unknown>): Schematic.RulesengineCompany;
29
23
  /**