@revturbine/sdk 0.11.13 → 0.11.16
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/CHANGELOG.md +499 -0
- package/dist/headless.d.ts +3368 -123
- package/dist/headless.js +2 -2
- package/dist/headless.js.map +1 -1
- package/dist/index.d.ts +3397 -152
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/types/server-node/client.d.ts +211 -3
- package/dist/types/server-node/client.d.ts.map +1 -1
- package/dist/types/server-node/index.d.ts +15 -3
- package/dist/types/server-node/index.d.ts.map +1 -1
- package/dist/types/server-node/local-server.d.ts +15 -2
- package/dist/types/server-node/local-server.d.ts.map +1 -1
- package/dist/types/server-node/types.d.ts +67 -2
- package/dist/types/server-node/types.d.ts.map +1 -1
- package/dist/types/web-sdk/config-artifact.d.ts +7 -2
- package/dist/types/web-sdk/config-artifact.d.ts.map +1 -1
- package/dist/types/web-sdk/controllers.d.ts.map +1 -1
- package/dist/types/web-sdk/customer-side.d.ts +179 -31
- package/dist/types/web-sdk/customer-side.d.ts.map +1 -1
- package/dist/types/web-sdk/local-builtin-segments.d.ts +46 -0
- package/dist/types/web-sdk/local-builtin-segments.d.ts.map +1 -0
- package/dist/types/web-sdk/react/RevTurbineProvider.d.ts.map +1 -1
- package/dist/types/web-sdk/theme/theme-loader.d.ts +12 -2
- package/dist/types/web-sdk/theme/theme-loader.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/headless.d.ts
CHANGED
|
@@ -1895,6 +1895,8 @@ declare const SurfaceSlotStatusSchema: z.ZodEnum<{
|
|
|
1895
1895
|
}>;
|
|
1896
1896
|
/** Upper bound on a slot route — a path, never a URL with a query string. */
|
|
1897
1897
|
declare const SURFACE_SLOT_ROUTE_MAX_LENGTH = 512;
|
|
1898
|
+
/** Upper bound on a discovered slot name — a display label, not prose. */
|
|
1899
|
+
declare const SURFACE_SLOT_NAME_MAX_LENGTH = 200;
|
|
1898
1900
|
declare const SurfaceSlotSchema: z.ZodObject<{
|
|
1899
1901
|
id: z.ZodString;
|
|
1900
1902
|
created_at: z.ZodString;
|
|
@@ -1935,6 +1937,7 @@ declare const SurfaceSlotSchema: z.ZodObject<{
|
|
|
1935
1937
|
first_seen: z.ZodString;
|
|
1936
1938
|
last_seen: z.ZodString;
|
|
1937
1939
|
route: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1940
|
+
slot_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1938
1941
|
status: z.ZodDefault<z.ZodEnum<{
|
|
1939
1942
|
live: "live";
|
|
1940
1943
|
idle: "idle";
|
|
@@ -2074,6 +2077,177 @@ declare const UserBuiltinDimensionsSchema: z.ZodObject<{
|
|
|
2074
2077
|
tablet: "tablet";
|
|
2075
2078
|
}>>;
|
|
2076
2079
|
}, z.core.$strip>;
|
|
2080
|
+
/**
|
|
2081
|
+
* The built-in dimensions the tenant's backend may set through the server-key
|
|
2082
|
+
* upsert (BL-0382, D-46): every delivered catalogue key except `seat_type`,
|
|
2083
|
+
* which keeps its own validated write (`seat_type_handle`, D-36) so one value
|
|
2084
|
+
* never has two write paths. Registration State is SDK-local and absent here
|
|
2085
|
+
* as it is from {@link UserBuiltinDimensionsSchema}.
|
|
2086
|
+
*/
|
|
2087
|
+
declare const CUSTOMER_SETTABLE_BUILTIN_DIMENSION_KEYS: readonly ["activity_level", "subscription_state", "trial_type", "buyer_role", "email_type", "billing_health", "region", "device_type"];
|
|
2088
|
+
/** One key of {@link CUSTOMER_SETTABLE_BUILTIN_DIMENSION_KEYS}. */
|
|
2089
|
+
declare const CustomerSettableBuiltinDimensionKeySchema: z.ZodEnum<{
|
|
2090
|
+
trial_type: "trial_type";
|
|
2091
|
+
activity_level: "activity_level";
|
|
2092
|
+
subscription_state: "subscription_state";
|
|
2093
|
+
buyer_role: "buyer_role";
|
|
2094
|
+
email_type: "email_type";
|
|
2095
|
+
billing_health: "billing_health";
|
|
2096
|
+
region: "region";
|
|
2097
|
+
device_type: "device_type";
|
|
2098
|
+
}>;
|
|
2099
|
+
type CustomerSettableBuiltinDimensionKey = z.infer<typeof CustomerSettableBuiltinDimensionKeySchema>;
|
|
2100
|
+
/**
|
|
2101
|
+
* The customer-set built-in dimension values of one user, keyed by dimension
|
|
2102
|
+
* (BL-0382; D-46, D-47) — persisted as the `user_contexts.customer_builtin_dimensions`
|
|
2103
|
+
* jsonb column. Written ONLY by the server-key upsert
|
|
2104
|
+
* (`upsertServerUserContext`); the generic CRUD write drops it for every
|
|
2105
|
+
* writer that is not a dashboard session, exactly like `seat_type_handle`.
|
|
2106
|
+
*
|
|
2107
|
+
* It is an INPUT to delivery, not the delivered value: the control plane
|
|
2108
|
+
* resolves `builtin_dimensions` per key as
|
|
2109
|
+
* - `override: true` → the customer value wins over enrichment;
|
|
2110
|
+
* - `override: false` → last writer wins between this value (`set_at`) and
|
|
2111
|
+
* the RevTurbine enrichment source's own timestamp; enrichment with no
|
|
2112
|
+
* datable source change never supersedes it.
|
|
2113
|
+
* An absent key means the customer never set (or cleared) that dimension.
|
|
2114
|
+
*/
|
|
2115
|
+
declare const CustomerBuiltinDimensionsSchema: z.ZodObject<{
|
|
2116
|
+
activity_level: z.ZodOptional<z.ZodObject<{
|
|
2117
|
+
value: z.ZodEnum<{
|
|
2118
|
+
new: "new";
|
|
2119
|
+
high: "high";
|
|
2120
|
+
medium: "medium";
|
|
2121
|
+
low: "low";
|
|
2122
|
+
inactive: "inactive";
|
|
2123
|
+
}>;
|
|
2124
|
+
set_at: z.ZodString;
|
|
2125
|
+
override: z.ZodBoolean;
|
|
2126
|
+
}, z.core.$strict>>;
|
|
2127
|
+
subscription_state: z.ZodOptional<z.ZodObject<{
|
|
2128
|
+
value: z.ZodEnum<{
|
|
2129
|
+
trial: "trial";
|
|
2130
|
+
none: "none";
|
|
2131
|
+
paid: "paid";
|
|
2132
|
+
cancelled: "cancelled";
|
|
2133
|
+
}>;
|
|
2134
|
+
set_at: z.ZodString;
|
|
2135
|
+
override: z.ZodBoolean;
|
|
2136
|
+
}, z.core.$strict>>;
|
|
2137
|
+
trial_type: z.ZodOptional<z.ZodObject<{
|
|
2138
|
+
value: z.ZodEnum<{
|
|
2139
|
+
none: "none";
|
|
2140
|
+
free_trial: "free_trial";
|
|
2141
|
+
reverse_trial: "reverse_trial";
|
|
2142
|
+
}>;
|
|
2143
|
+
set_at: z.ZodString;
|
|
2144
|
+
override: z.ZodBoolean;
|
|
2145
|
+
}, z.core.$strict>>;
|
|
2146
|
+
buyer_role: z.ZodOptional<z.ZodObject<{
|
|
2147
|
+
value: z.ZodEnum<{
|
|
2148
|
+
buyer: "buyer";
|
|
2149
|
+
non_buyer: "non_buyer";
|
|
2150
|
+
}>;
|
|
2151
|
+
set_at: z.ZodString;
|
|
2152
|
+
override: z.ZodBoolean;
|
|
2153
|
+
}, z.core.$strict>>;
|
|
2154
|
+
email_type: z.ZodOptional<z.ZodObject<{
|
|
2155
|
+
value: z.ZodEnum<{
|
|
2156
|
+
unknown: "unknown";
|
|
2157
|
+
business: "business";
|
|
2158
|
+
personal: "personal";
|
|
2159
|
+
}>;
|
|
2160
|
+
set_at: z.ZodString;
|
|
2161
|
+
override: z.ZodBoolean;
|
|
2162
|
+
}, z.core.$strict>>;
|
|
2163
|
+
billing_health: z.ZodOptional<z.ZodObject<{
|
|
2164
|
+
value: z.ZodEnum<{
|
|
2165
|
+
payment_failed: "payment_failed";
|
|
2166
|
+
payment_method_missing: "payment_method_missing";
|
|
2167
|
+
cancelled: "cancelled";
|
|
2168
|
+
no_billing: "no_billing";
|
|
2169
|
+
good_standing: "good_standing";
|
|
2170
|
+
trial_payment_method_attached: "trial_payment_method_attached";
|
|
2171
|
+
payment_overdue: "payment_overdue";
|
|
2172
|
+
}>;
|
|
2173
|
+
set_at: z.ZodString;
|
|
2174
|
+
override: z.ZodBoolean;
|
|
2175
|
+
}, z.core.$strict>>;
|
|
2176
|
+
region: z.ZodOptional<z.ZodObject<{
|
|
2177
|
+
value: z.ZodEnum<{
|
|
2178
|
+
us_canada: "us_canada";
|
|
2179
|
+
europe: "europe";
|
|
2180
|
+
rest_of_world: "rest_of_world";
|
|
2181
|
+
}>;
|
|
2182
|
+
set_at: z.ZodString;
|
|
2183
|
+
override: z.ZodBoolean;
|
|
2184
|
+
}, z.core.$strict>>;
|
|
2185
|
+
device_type: z.ZodOptional<z.ZodObject<{
|
|
2186
|
+
value: z.ZodEnum<{
|
|
2187
|
+
unknown: "unknown";
|
|
2188
|
+
desktop: "desktop";
|
|
2189
|
+
mobile: "mobile";
|
|
2190
|
+
tablet: "tablet";
|
|
2191
|
+
}>;
|
|
2192
|
+
set_at: z.ZodString;
|
|
2193
|
+
override: z.ZodBoolean;
|
|
2194
|
+
}, z.core.$strict>>;
|
|
2195
|
+
}, z.core.$strict>;
|
|
2196
|
+
/**
|
|
2197
|
+
* The `builtin_dimensions` of a server-key upsert body (BL-0382): a partial map
|
|
2198
|
+
* of settable key → a value from that dimension's closed vocabulary, or `null`
|
|
2199
|
+
* to CLEAR the customer value (and its pin) for that key. Strict: `seat_type`
|
|
2200
|
+
* and unknown keys are rejected.
|
|
2201
|
+
*/
|
|
2202
|
+
declare const ServerBuiltinDimensionsWriteSchema: z.ZodObject<{
|
|
2203
|
+
activity_level: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
2204
|
+
new: "new";
|
|
2205
|
+
high: "high";
|
|
2206
|
+
medium: "medium";
|
|
2207
|
+
low: "low";
|
|
2208
|
+
inactive: "inactive";
|
|
2209
|
+
}>>>;
|
|
2210
|
+
subscription_state: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
2211
|
+
trial: "trial";
|
|
2212
|
+
none: "none";
|
|
2213
|
+
paid: "paid";
|
|
2214
|
+
cancelled: "cancelled";
|
|
2215
|
+
}>>>;
|
|
2216
|
+
trial_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
2217
|
+
none: "none";
|
|
2218
|
+
free_trial: "free_trial";
|
|
2219
|
+
reverse_trial: "reverse_trial";
|
|
2220
|
+
}>>>;
|
|
2221
|
+
buyer_role: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
2222
|
+
buyer: "buyer";
|
|
2223
|
+
non_buyer: "non_buyer";
|
|
2224
|
+
}>>>;
|
|
2225
|
+
email_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
2226
|
+
unknown: "unknown";
|
|
2227
|
+
business: "business";
|
|
2228
|
+
personal: "personal";
|
|
2229
|
+
}>>>;
|
|
2230
|
+
billing_health: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
2231
|
+
payment_failed: "payment_failed";
|
|
2232
|
+
payment_method_missing: "payment_method_missing";
|
|
2233
|
+
cancelled: "cancelled";
|
|
2234
|
+
no_billing: "no_billing";
|
|
2235
|
+
good_standing: "good_standing";
|
|
2236
|
+
trial_payment_method_attached: "trial_payment_method_attached";
|
|
2237
|
+
payment_overdue: "payment_overdue";
|
|
2238
|
+
}>>>;
|
|
2239
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
2240
|
+
us_canada: "us_canada";
|
|
2241
|
+
europe: "europe";
|
|
2242
|
+
rest_of_world: "rest_of_world";
|
|
2243
|
+
}>>>;
|
|
2244
|
+
device_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
2245
|
+
unknown: "unknown";
|
|
2246
|
+
desktop: "desktop";
|
|
2247
|
+
mobile: "mobile";
|
|
2248
|
+
tablet: "tablet";
|
|
2249
|
+
}>>>;
|
|
2250
|
+
}, z.core.$strict>;
|
|
2077
2251
|
/**
|
|
2078
2252
|
* Usage and entitlements for a specific product instance.
|
|
2079
2253
|
*
|
|
@@ -2173,6 +2347,7 @@ declare const UserContextSchema: z.ZodObject<{
|
|
|
2173
2347
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2174
2348
|
email_type: z.ZodOptional<z.ZodString>;
|
|
2175
2349
|
plan_handle: z.ZodOptional<z.ZodString>;
|
|
2350
|
+
seat_type_handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2176
2351
|
plan: z.ZodOptional<z.ZodObject<{
|
|
2177
2352
|
handle: z.ZodString;
|
|
2178
2353
|
name: z.ZodString;
|
|
@@ -2376,6 +2551,87 @@ declare const UserContextSchema: z.ZodObject<{
|
|
|
2376
2551
|
tablet: "tablet";
|
|
2377
2552
|
}>>;
|
|
2378
2553
|
}, z.core.$strip>>;
|
|
2554
|
+
customer_builtin_dimensions: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2555
|
+
activity_level: z.ZodOptional<z.ZodObject<{
|
|
2556
|
+
value: z.ZodEnum<{
|
|
2557
|
+
new: "new";
|
|
2558
|
+
high: "high";
|
|
2559
|
+
medium: "medium";
|
|
2560
|
+
low: "low";
|
|
2561
|
+
inactive: "inactive";
|
|
2562
|
+
}>;
|
|
2563
|
+
set_at: z.ZodString;
|
|
2564
|
+
override: z.ZodBoolean;
|
|
2565
|
+
}, z.core.$strict>>;
|
|
2566
|
+
subscription_state: z.ZodOptional<z.ZodObject<{
|
|
2567
|
+
value: z.ZodEnum<{
|
|
2568
|
+
trial: "trial";
|
|
2569
|
+
none: "none";
|
|
2570
|
+
paid: "paid";
|
|
2571
|
+
cancelled: "cancelled";
|
|
2572
|
+
}>;
|
|
2573
|
+
set_at: z.ZodString;
|
|
2574
|
+
override: z.ZodBoolean;
|
|
2575
|
+
}, z.core.$strict>>;
|
|
2576
|
+
trial_type: z.ZodOptional<z.ZodObject<{
|
|
2577
|
+
value: z.ZodEnum<{
|
|
2578
|
+
none: "none";
|
|
2579
|
+
free_trial: "free_trial";
|
|
2580
|
+
reverse_trial: "reverse_trial";
|
|
2581
|
+
}>;
|
|
2582
|
+
set_at: z.ZodString;
|
|
2583
|
+
override: z.ZodBoolean;
|
|
2584
|
+
}, z.core.$strict>>;
|
|
2585
|
+
buyer_role: z.ZodOptional<z.ZodObject<{
|
|
2586
|
+
value: z.ZodEnum<{
|
|
2587
|
+
buyer: "buyer";
|
|
2588
|
+
non_buyer: "non_buyer";
|
|
2589
|
+
}>;
|
|
2590
|
+
set_at: z.ZodString;
|
|
2591
|
+
override: z.ZodBoolean;
|
|
2592
|
+
}, z.core.$strict>>;
|
|
2593
|
+
email_type: z.ZodOptional<z.ZodObject<{
|
|
2594
|
+
value: z.ZodEnum<{
|
|
2595
|
+
unknown: "unknown";
|
|
2596
|
+
business: "business";
|
|
2597
|
+
personal: "personal";
|
|
2598
|
+
}>;
|
|
2599
|
+
set_at: z.ZodString;
|
|
2600
|
+
override: z.ZodBoolean;
|
|
2601
|
+
}, z.core.$strict>>;
|
|
2602
|
+
billing_health: z.ZodOptional<z.ZodObject<{
|
|
2603
|
+
value: z.ZodEnum<{
|
|
2604
|
+
payment_failed: "payment_failed";
|
|
2605
|
+
payment_method_missing: "payment_method_missing";
|
|
2606
|
+
cancelled: "cancelled";
|
|
2607
|
+
no_billing: "no_billing";
|
|
2608
|
+
good_standing: "good_standing";
|
|
2609
|
+
trial_payment_method_attached: "trial_payment_method_attached";
|
|
2610
|
+
payment_overdue: "payment_overdue";
|
|
2611
|
+
}>;
|
|
2612
|
+
set_at: z.ZodString;
|
|
2613
|
+
override: z.ZodBoolean;
|
|
2614
|
+
}, z.core.$strict>>;
|
|
2615
|
+
region: z.ZodOptional<z.ZodObject<{
|
|
2616
|
+
value: z.ZodEnum<{
|
|
2617
|
+
us_canada: "us_canada";
|
|
2618
|
+
europe: "europe";
|
|
2619
|
+
rest_of_world: "rest_of_world";
|
|
2620
|
+
}>;
|
|
2621
|
+
set_at: z.ZodString;
|
|
2622
|
+
override: z.ZodBoolean;
|
|
2623
|
+
}, z.core.$strict>>;
|
|
2624
|
+
device_type: z.ZodOptional<z.ZodObject<{
|
|
2625
|
+
value: z.ZodEnum<{
|
|
2626
|
+
unknown: "unknown";
|
|
2627
|
+
desktop: "desktop";
|
|
2628
|
+
mobile: "mobile";
|
|
2629
|
+
tablet: "tablet";
|
|
2630
|
+
}>;
|
|
2631
|
+
set_at: z.ZodString;
|
|
2632
|
+
override: z.ZodBoolean;
|
|
2633
|
+
}, z.core.$strict>>;
|
|
2634
|
+
}, z.core.$strict>>>;
|
|
2379
2635
|
derived_config_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2380
2636
|
context_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2381
2637
|
derived_computed_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -2383,6 +2639,255 @@ declare const UserContextSchema: z.ZodObject<{
|
|
|
2383
2639
|
activity_score_computed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2384
2640
|
experiments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2385
2641
|
}, z.core.$strip>;
|
|
2642
|
+
/**
|
|
2643
|
+
* Request body of `upsertServerUserContext` (`POST /api/sdk/user-contexts`):
|
|
2644
|
+
* the tenant backend's server-side write for one user — its seat assignment
|
|
2645
|
+
* and/or its built-in segment dimension values. The ONE server-key
|
|
2646
|
+
* user-context write (BL-0382 widened it rather than adding a sibling op).
|
|
2647
|
+
*
|
|
2648
|
+
* Deliberately NARROW and STRICT (plan 279 Q-2 (e)). The generic
|
|
2649
|
+
* `createUserContext` write accepts the whole writable {@link UserContextSchema}
|
|
2650
|
+
* — entitlement cache, `activity_score`, derived stamps — and stays
|
|
2651
|
+
* `exposure: 'internal'`; this is the only external user-context write, and it
|
|
2652
|
+
* carries exactly `user_id`, `seat_type_handle`, `builtin_dimensions` and
|
|
2653
|
+
* `override`. Every other key is rejected, so a tenant can never write
|
|
2654
|
+
* `entitlements`, `activity_score`, `custom` or a tenant id through a server key.
|
|
2655
|
+
*
|
|
2656
|
+
* - `seat_type_handle` (D-36): a handle assigns, `null` clears, OMITTED leaves
|
|
2657
|
+
* the assignment unchanged. The shape check here is the handle pattern only;
|
|
2658
|
+
* the control plane validates membership in the token tenant's CURRENT seat
|
|
2659
|
+
* types and answers 422 for an unknown handle (D-36 (c)).
|
|
2660
|
+
* - `builtin_dimensions` (D-46): a partial map of settable built-in dimension
|
|
2661
|
+
* (every delivered catalogue key except `seat_type`, which is
|
|
2662
|
+
* `seat_type_handle`) → a value from its closed vocabulary; `null` clears the
|
|
2663
|
+
* customer value and its pin for that key. Keys not named are untouched.
|
|
2664
|
+
* The control plane re-checks every value against the catalogue (422).
|
|
2665
|
+
* - `override` (D-47; default `false`) applies to the keys this call writes in
|
|
2666
|
+
* `builtin_dimensions`:
|
|
2667
|
+
* - `false` — an UPDATE. The value is delivered until a newer RevTurbine
|
|
2668
|
+
* enrichment change (Stripe subscription / trial / billing, the activity
|
|
2669
|
+
* job, request signals) supersedes it: last writer wins, enrichment
|
|
2670
|
+
* included. Writing a pinned key without the flag UNPINS it.
|
|
2671
|
+
* - `true` — an OVERRIDE. The customer pins the value: enrichment never
|
|
2672
|
+
* replaces it until the customer writes that key again without the flag,
|
|
2673
|
+
* or clears it with `null`.
|
|
2674
|
+
* `override` without `builtin_dimensions` is rejected.
|
|
2675
|
+
*
|
|
2676
|
+
* At least one of `seat_type_handle` / a non-empty `builtin_dimensions` must be
|
|
2677
|
+
* present: an empty write is neither an assignment nor an update. There is no
|
|
2678
|
+
* `tenant_id`: the tenant comes from the server token (D-27).
|
|
2679
|
+
*/
|
|
2680
|
+
declare const ServerUserContextUpsertSchema: z.ZodObject<{
|
|
2681
|
+
user_id: z.ZodString;
|
|
2682
|
+
seat_type_handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2683
|
+
builtin_dimensions: z.ZodOptional<z.ZodObject<{
|
|
2684
|
+
activity_level: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
2685
|
+
new: "new";
|
|
2686
|
+
high: "high";
|
|
2687
|
+
medium: "medium";
|
|
2688
|
+
low: "low";
|
|
2689
|
+
inactive: "inactive";
|
|
2690
|
+
}>>>;
|
|
2691
|
+
subscription_state: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
2692
|
+
trial: "trial";
|
|
2693
|
+
none: "none";
|
|
2694
|
+
paid: "paid";
|
|
2695
|
+
cancelled: "cancelled";
|
|
2696
|
+
}>>>;
|
|
2697
|
+
trial_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
2698
|
+
none: "none";
|
|
2699
|
+
free_trial: "free_trial";
|
|
2700
|
+
reverse_trial: "reverse_trial";
|
|
2701
|
+
}>>>;
|
|
2702
|
+
buyer_role: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
2703
|
+
buyer: "buyer";
|
|
2704
|
+
non_buyer: "non_buyer";
|
|
2705
|
+
}>>>;
|
|
2706
|
+
email_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
2707
|
+
unknown: "unknown";
|
|
2708
|
+
business: "business";
|
|
2709
|
+
personal: "personal";
|
|
2710
|
+
}>>>;
|
|
2711
|
+
billing_health: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
2712
|
+
payment_failed: "payment_failed";
|
|
2713
|
+
payment_method_missing: "payment_method_missing";
|
|
2714
|
+
cancelled: "cancelled";
|
|
2715
|
+
no_billing: "no_billing";
|
|
2716
|
+
good_standing: "good_standing";
|
|
2717
|
+
trial_payment_method_attached: "trial_payment_method_attached";
|
|
2718
|
+
payment_overdue: "payment_overdue";
|
|
2719
|
+
}>>>;
|
|
2720
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
2721
|
+
us_canada: "us_canada";
|
|
2722
|
+
europe: "europe";
|
|
2723
|
+
rest_of_world: "rest_of_world";
|
|
2724
|
+
}>>>;
|
|
2725
|
+
device_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
2726
|
+
unknown: "unknown";
|
|
2727
|
+
desktop: "desktop";
|
|
2728
|
+
mobile: "mobile";
|
|
2729
|
+
tablet: "tablet";
|
|
2730
|
+
}>>>;
|
|
2731
|
+
}, z.core.$strict>>;
|
|
2732
|
+
override: z.ZodOptional<z.ZodBoolean>;
|
|
2733
|
+
}, z.core.$strict>;
|
|
2734
|
+
/**
|
|
2735
|
+
* Response of `upsertServerUserContext`: the user's server-written state as
|
|
2736
|
+
* stored after the upsert. `tenant_id` is the tenant the server token resolved
|
|
2737
|
+
* to (never a request value).
|
|
2738
|
+
*
|
|
2739
|
+
* - `seat_type_handle` — always present, `null` when the user has no assignment.
|
|
2740
|
+
* - `builtin_dimensions` — every customer-set dimension value currently stored
|
|
2741
|
+
* (`{}` when none). These are the customer's INPUTS, not the delivered
|
|
2742
|
+
* values: delivery applies the D-47 precedence against enrichment.
|
|
2743
|
+
* - `overrides` — the keys of `builtin_dimensions` currently pinned
|
|
2744
|
+
* (`override: true`), sorted; `[]` when none.
|
|
2745
|
+
*
|
|
2746
|
+
* The generic context (entitlement cache, activity score, derived stamps) is
|
|
2747
|
+
* not echoed back.
|
|
2748
|
+
*/
|
|
2749
|
+
declare const ServerUserContextAssignmentSchema: z.ZodObject<{
|
|
2750
|
+
updated_at: z.ZodString;
|
|
2751
|
+
tenant_id: z.ZodString;
|
|
2752
|
+
user_id: z.ZodString;
|
|
2753
|
+
seat_type_handle: z.ZodNullable<z.ZodString>;
|
|
2754
|
+
builtin_dimensions: z.ZodObject<{
|
|
2755
|
+
activity_level: z.ZodOptional<z.ZodEnum<{
|
|
2756
|
+
new: "new";
|
|
2757
|
+
high: "high";
|
|
2758
|
+
medium: "medium";
|
|
2759
|
+
low: "low";
|
|
2760
|
+
inactive: "inactive";
|
|
2761
|
+
}>>;
|
|
2762
|
+
subscription_state: z.ZodOptional<z.ZodEnum<{
|
|
2763
|
+
trial: "trial";
|
|
2764
|
+
none: "none";
|
|
2765
|
+
paid: "paid";
|
|
2766
|
+
cancelled: "cancelled";
|
|
2767
|
+
}>>;
|
|
2768
|
+
trial_type: z.ZodOptional<z.ZodEnum<{
|
|
2769
|
+
none: "none";
|
|
2770
|
+
free_trial: "free_trial";
|
|
2771
|
+
reverse_trial: "reverse_trial";
|
|
2772
|
+
}>>;
|
|
2773
|
+
buyer_role: z.ZodOptional<z.ZodEnum<{
|
|
2774
|
+
buyer: "buyer";
|
|
2775
|
+
non_buyer: "non_buyer";
|
|
2776
|
+
}>>;
|
|
2777
|
+
email_type: z.ZodOptional<z.ZodEnum<{
|
|
2778
|
+
unknown: "unknown";
|
|
2779
|
+
business: "business";
|
|
2780
|
+
personal: "personal";
|
|
2781
|
+
}>>;
|
|
2782
|
+
billing_health: z.ZodOptional<z.ZodEnum<{
|
|
2783
|
+
payment_failed: "payment_failed";
|
|
2784
|
+
payment_method_missing: "payment_method_missing";
|
|
2785
|
+
cancelled: "cancelled";
|
|
2786
|
+
no_billing: "no_billing";
|
|
2787
|
+
good_standing: "good_standing";
|
|
2788
|
+
trial_payment_method_attached: "trial_payment_method_attached";
|
|
2789
|
+
payment_overdue: "payment_overdue";
|
|
2790
|
+
}>>;
|
|
2791
|
+
region: z.ZodOptional<z.ZodEnum<{
|
|
2792
|
+
us_canada: "us_canada";
|
|
2793
|
+
europe: "europe";
|
|
2794
|
+
rest_of_world: "rest_of_world";
|
|
2795
|
+
}>>;
|
|
2796
|
+
device_type: z.ZodOptional<z.ZodEnum<{
|
|
2797
|
+
unknown: "unknown";
|
|
2798
|
+
desktop: "desktop";
|
|
2799
|
+
mobile: "mobile";
|
|
2800
|
+
tablet: "tablet";
|
|
2801
|
+
}>>;
|
|
2802
|
+
}, z.core.$strip>;
|
|
2803
|
+
overrides: z.ZodArray<z.ZodEnum<{
|
|
2804
|
+
trial_type: "trial_type";
|
|
2805
|
+
activity_level: "activity_level";
|
|
2806
|
+
subscription_state: "subscription_state";
|
|
2807
|
+
buyer_role: "buyer_role";
|
|
2808
|
+
email_type: "email_type";
|
|
2809
|
+
billing_health: "billing_health";
|
|
2810
|
+
region: "region";
|
|
2811
|
+
device_type: "device_type";
|
|
2812
|
+
}>>;
|
|
2813
|
+
}, z.core.$strip>;
|
|
2814
|
+
/**
|
|
2815
|
+
* Response of `getServerUserBuiltinDimensions`
|
|
2816
|
+
* (`GET /api/sdk/user-contexts/{userId}/builtin-dimensions`): the control
|
|
2817
|
+
* plane's server-resolved built-in segment dimensions for one user of the
|
|
2818
|
+
* token tenant (BL-0366 — the server-port counterpart of the client-context
|
|
2819
|
+
* lane).
|
|
2820
|
+
*
|
|
2821
|
+
* `builtin_dimensions` is the SERVER view, {@link UserBuiltinDimensionsSchema}
|
|
2822
|
+
* — the same keys and closed vocabularies the SDK's `buildTargetingState`
|
|
2823
|
+
* stamps onto `rt_*` traits. It is not the client-safe projection: the caller
|
|
2824
|
+
* is the tenant's own backend holding a server key. Every leaf is coarse
|
|
2825
|
+
* enum data today (no email, IP, country code, provider id), so the two
|
|
2826
|
+
* shapes carry the same values; the server view is simply not re-filtered.
|
|
2827
|
+
* An absent leaf means "not evaluated" (PD-4). The read carries no request
|
|
2828
|
+
* signals, so `region` and `device_type` — derived from the browser request
|
|
2829
|
+
* in the client lane — are always absent here.
|
|
2830
|
+
*
|
|
2831
|
+
* The SDK applies this object as an OVERLAY that wins over any app-set
|
|
2832
|
+
* `builtin_dimensions` leaf (PD-3). `tenant_id` is the tenant the server
|
|
2833
|
+
* token resolved to (D-27), never a request value; `resolved_at` is when the
|
|
2834
|
+
* control plane assembled the values (nothing is persisted or cached).
|
|
2835
|
+
*/
|
|
2836
|
+
declare const ServerUserBuiltinDimensionsSchema: z.ZodObject<{
|
|
2837
|
+
tenant_id: z.ZodString;
|
|
2838
|
+
user_id: z.ZodString;
|
|
2839
|
+
builtin_dimensions: z.ZodObject<{
|
|
2840
|
+
activity_level: z.ZodOptional<z.ZodEnum<{
|
|
2841
|
+
new: "new";
|
|
2842
|
+
high: "high";
|
|
2843
|
+
medium: "medium";
|
|
2844
|
+
low: "low";
|
|
2845
|
+
inactive: "inactive";
|
|
2846
|
+
}>>;
|
|
2847
|
+
subscription_state: z.ZodOptional<z.ZodEnum<{
|
|
2848
|
+
trial: "trial";
|
|
2849
|
+
none: "none";
|
|
2850
|
+
paid: "paid";
|
|
2851
|
+
cancelled: "cancelled";
|
|
2852
|
+
}>>;
|
|
2853
|
+
trial_type: z.ZodOptional<z.ZodEnum<{
|
|
2854
|
+
none: "none";
|
|
2855
|
+
free_trial: "free_trial";
|
|
2856
|
+
reverse_trial: "reverse_trial";
|
|
2857
|
+
}>>;
|
|
2858
|
+
seat_type: z.ZodOptional<z.ZodString>;
|
|
2859
|
+
buyer_role: z.ZodOptional<z.ZodEnum<{
|
|
2860
|
+
buyer: "buyer";
|
|
2861
|
+
non_buyer: "non_buyer";
|
|
2862
|
+
}>>;
|
|
2863
|
+
email_type: z.ZodOptional<z.ZodEnum<{
|
|
2864
|
+
unknown: "unknown";
|
|
2865
|
+
business: "business";
|
|
2866
|
+
personal: "personal";
|
|
2867
|
+
}>>;
|
|
2868
|
+
billing_health: z.ZodOptional<z.ZodEnum<{
|
|
2869
|
+
payment_failed: "payment_failed";
|
|
2870
|
+
payment_method_missing: "payment_method_missing";
|
|
2871
|
+
cancelled: "cancelled";
|
|
2872
|
+
no_billing: "no_billing";
|
|
2873
|
+
good_standing: "good_standing";
|
|
2874
|
+
trial_payment_method_attached: "trial_payment_method_attached";
|
|
2875
|
+
payment_overdue: "payment_overdue";
|
|
2876
|
+
}>>;
|
|
2877
|
+
region: z.ZodOptional<z.ZodEnum<{
|
|
2878
|
+
us_canada: "us_canada";
|
|
2879
|
+
europe: "europe";
|
|
2880
|
+
rest_of_world: "rest_of_world";
|
|
2881
|
+
}>>;
|
|
2882
|
+
device_type: z.ZodOptional<z.ZodEnum<{
|
|
2883
|
+
unknown: "unknown";
|
|
2884
|
+
desktop: "desktop";
|
|
2885
|
+
mobile: "mobile";
|
|
2886
|
+
tablet: "tablet";
|
|
2887
|
+
}>>;
|
|
2888
|
+
}, z.core.$strip>;
|
|
2889
|
+
resolved_at: z.ZodString;
|
|
2890
|
+
}, z.core.$strip>;
|
|
2386
2891
|
declare const ClientContextSchema: z.ZodObject<{
|
|
2387
2892
|
subject: z.ZodString;
|
|
2388
2893
|
context_version: z.ZodOptional<z.ZodString>;
|
|
@@ -2446,6 +2951,15 @@ declare const ClientContextSchema: z.ZodObject<{
|
|
|
2446
2951
|
business: "business";
|
|
2447
2952
|
personal: "personal";
|
|
2448
2953
|
}>>;
|
|
2954
|
+
billing_health: z.ZodOptional<z.ZodEnum<{
|
|
2955
|
+
payment_failed: "payment_failed";
|
|
2956
|
+
payment_method_missing: "payment_method_missing";
|
|
2957
|
+
cancelled: "cancelled";
|
|
2958
|
+
no_billing: "no_billing";
|
|
2959
|
+
good_standing: "good_standing";
|
|
2960
|
+
trial_payment_method_attached: "trial_payment_method_attached";
|
|
2961
|
+
payment_overdue: "payment_overdue";
|
|
2962
|
+
}>>;
|
|
2449
2963
|
region: z.ZodOptional<z.ZodEnum<{
|
|
2450
2964
|
us_canada: "us_canada";
|
|
2451
2965
|
europe: "europe";
|
|
@@ -11510,12 +12024,45 @@ declare function resolveSubscriptionEvidence(input: EvidenceResolution): Subscri
|
|
|
11510
12024
|
* (`StripeSubscriptionStatusSchema`) and the same scope object
|
|
11511
12025
|
* (`StripeBillingScopeSchema`, extended with provider + simulation).
|
|
11512
12026
|
*
|
|
12027
|
+
* ## TASK-28 extensions (BL-0292) — additive on the same families
|
|
12028
|
+
*
|
|
12029
|
+
* Plan 252 TASK-28 extends these profiles in place; every addition is a new
|
|
12030
|
+
* `kind` or an OPTIONAL field, so every 0.1.364 fact still validates:
|
|
12031
|
+
*
|
|
12032
|
+
* - **Exact recurrence.** Interval and interval count stay on each item's
|
|
12033
|
+
* price (mixed item intervals are real); the subscription-level
|
|
12034
|
+
* {@link BillingRecurrenceSchema} carries the billing-cycle anchor,
|
|
12035
|
+
* proration behavior, billing mode and collection method. Exact
|
|
12036
|
+
* per-unit / package (`transform_quantity`) / graduated / volume terms ride
|
|
12037
|
+
* on {@link BillingPriceTermsSchema}; a null `unit_amount_minor` without
|
|
12038
|
+
* terms is a `missing_price_terms` coverage gap, never a `unit * quantity`
|
|
12039
|
+
* guess. The normalization arithmetic is TASK-29.
|
|
12040
|
+
* - **Economic owner.** {@link BillingEconomicOwnerSchema} names the provider
|
|
12041
|
+
* account whose books own a money movement (platform vs connected account,
|
|
12042
|
+
* Connect charge type). The payer is `customer_ref`; the RevTurbine account
|
|
12043
|
+
* is the envelope's `context.groupId`. Three different things.
|
|
12044
|
+
* - **InvoicePayment allocations.** `invoice.payment_allocation` is one edge
|
|
12045
|
+
* of the paginated many-to-many invoice↔payment relation, with requested vs
|
|
12046
|
+
* allocated (`amount_paid_minor`) amounts. Its occurrence is the
|
|
12047
|
+
* InvoicePayment object itself.
|
|
12048
|
+
* - **Receivable transitions.** `invoice.status_transition` is a repeatable
|
|
12049
|
+
* `from_status → to_status` revision (finalize, settle, void, write off,
|
|
12050
|
+
* recover) with due / paid / remaining amounts and the settlement basis
|
|
12051
|
+
* (payments, zero total, customer balance, credit note, rollover, out of
|
|
12052
|
+
* band). {@link INVOICE_RECEIVABLE_TRANSITIONS} is the allowed table.
|
|
12053
|
+
* - **Balance / loss references.** Balance adjustments name their source and
|
|
12054
|
+
* credit note; grant applications link their funding occurrence; dispute
|
|
12055
|
+
* reinstatements link the withdrawal they reverse; loss movements carry the
|
|
12056
|
+
* processor-settlement amount separately from the payment currency.
|
|
12057
|
+
*
|
|
12058
|
+
* The derived accounting contracts — immutable accounting revisions,
|
|
12059
|
+
* provider→RT mapping revisions, output generations and coverage /
|
|
12060
|
+
* generation checkpoints — are in `billing-accounting.ts`.
|
|
12061
|
+
*
|
|
11513
12062
|
* ## What this file does NOT own (later plan 252 tasks)
|
|
11514
12063
|
*
|
|
11515
|
-
*
|
|
11516
|
-
*
|
|
11517
|
-
* recovery) and coverage checkpoints are TASK-28/29; the numeric oracles are
|
|
11518
|
-
* TASK-45/46/48/57. Nothing here computes MRR.
|
|
12064
|
+
* Ordered discounts and the recurring normalization are TASK-29; the numeric
|
|
12065
|
+
* oracles are TASK-45/46/48/57. Nothing here computes MRR.
|
|
11519
12066
|
*
|
|
11520
12067
|
* Classification (plan 157 exposure, BL-0131 D-19 identities): every amount
|
|
11521
12068
|
* and provider object id is `financial` + server-only; times, kinds and
|
|
@@ -11548,6 +12095,7 @@ declare const BillingSourceScopeSchema: z.ZodObject<{
|
|
|
11548
12095
|
}>;
|
|
11549
12096
|
simulation_id: z.ZodOptional<z.ZodString>;
|
|
11550
12097
|
}, z.core.$strict>;
|
|
12098
|
+
type BillingSourceScope$1 = z.infer<typeof BillingSourceScopeSchema>;
|
|
11551
12099
|
/** Occurrence of a SINGULAR kind: the subject object is itself the occurrence. */
|
|
11552
12100
|
declare const BillingOccurrenceSchema: z.ZodObject<{
|
|
11553
12101
|
identity_version: z.ZodLiteral<2>;
|
|
@@ -11569,7 +12117,56 @@ declare const BillingRepeatableOccurrenceSchema: z.ZodObject<{
|
|
|
11569
12117
|
delivery_id: z.ZodOptional<z.ZodString>;
|
|
11570
12118
|
legacy_billing_ref: z.ZodOptional<z.ZodString>;
|
|
11571
12119
|
}, z.core.$strict>;
|
|
11572
|
-
/**
|
|
12120
|
+
/** Upper bound on price tiers (Stripe allows far fewer; this is a safety bound). */
|
|
12121
|
+
declare const MAX_BILLING_PRICE_TIERS = 100;
|
|
12122
|
+
/** One price tier. `up_to: null` is the open-ended last tier (Stripe `inf`). */
|
|
12123
|
+
declare const BillingPriceTierSchema: z.ZodObject<{
|
|
12124
|
+
up_to: z.ZodNullable<z.ZodNumber>;
|
|
12125
|
+
unit_amount_decimal: z.ZodNullable<z.ZodString>;
|
|
12126
|
+
flat_amount_minor: z.ZodNullable<z.ZodString>;
|
|
12127
|
+
}, z.core.$strict>;
|
|
12128
|
+
/**
|
|
12129
|
+
* The exact price terms behind a recurring price (plan 252 A-2: tier,
|
|
12130
|
+
* volume and package transforms need the actual terms — `unit_price *
|
|
12131
|
+
* quantity` is not a universal implementation).
|
|
12132
|
+
*
|
|
12133
|
+
* - `per_unit` — `unit_amount_decimal` per unit, optionally after a
|
|
12134
|
+
* `transform_quantity` (package pricing: divide by N, round up/down).
|
|
12135
|
+
* - `tiered` — `graduated` (each tier prices its own units) or `volume` (the
|
|
12136
|
+
* tier the total falls in prices every unit), tiers ascending, the last one
|
|
12137
|
+
* open-ended.
|
|
12138
|
+
*
|
|
12139
|
+
* Shape only: the charge arithmetic (graduated 116 vs volume 96 vs pack 60)
|
|
12140
|
+
* is TASK-29's normalization.
|
|
12141
|
+
*/
|
|
12142
|
+
declare const BillingPriceTermsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
12143
|
+
billing_scheme: z.ZodLiteral<"per_unit">;
|
|
12144
|
+
unit_amount_decimal: z.ZodString;
|
|
12145
|
+
transform_quantity: z.ZodNullable<z.ZodObject<{
|
|
12146
|
+
divide_by: z.ZodNumber;
|
|
12147
|
+
round: z.ZodEnum<{
|
|
12148
|
+
up: "up";
|
|
12149
|
+
down: "down";
|
|
12150
|
+
}>;
|
|
12151
|
+
}, z.core.$strict>>;
|
|
12152
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
12153
|
+
billing_scheme: z.ZodLiteral<"tiered">;
|
|
12154
|
+
tiers_mode: z.ZodEnum<{
|
|
12155
|
+
graduated: "graduated";
|
|
12156
|
+
volume: "volume";
|
|
12157
|
+
}>;
|
|
12158
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
12159
|
+
up_to: z.ZodNullable<z.ZodNumber>;
|
|
12160
|
+
unit_amount_decimal: z.ZodNullable<z.ZodString>;
|
|
12161
|
+
flat_amount_minor: z.ZodNullable<z.ZodString>;
|
|
12162
|
+
}, z.core.$strict>>;
|
|
12163
|
+
}, z.core.$strict>], "billing_scheme">;
|
|
12164
|
+
/**
|
|
12165
|
+
* Recurring price of one item: interval and interval count are exact per
|
|
12166
|
+
* item (items on one subscription may bill on different intervals).
|
|
12167
|
+
* `unit_amount_minor` is null for tiered/package prices, whose exact
|
|
12168
|
+
* `terms` ride alongside; a null amount WITHOUT terms is a coverage gap.
|
|
12169
|
+
*/
|
|
11573
12170
|
declare const BillingRecurringPriceSchema: z.ZodObject<{
|
|
11574
12171
|
price_id: z.ZodString;
|
|
11575
12172
|
product_id: z.ZodOptional<z.ZodString>;
|
|
@@ -11585,6 +12182,77 @@ declare const BillingRecurringPriceSchema: z.ZodObject<{
|
|
|
11585
12182
|
licensed: "licensed";
|
|
11586
12183
|
}>;
|
|
11587
12184
|
unit_amount_minor: z.ZodNullable<z.ZodString>;
|
|
12185
|
+
terms: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
12186
|
+
billing_scheme: z.ZodLiteral<"per_unit">;
|
|
12187
|
+
unit_amount_decimal: z.ZodString;
|
|
12188
|
+
transform_quantity: z.ZodNullable<z.ZodObject<{
|
|
12189
|
+
divide_by: z.ZodNumber;
|
|
12190
|
+
round: z.ZodEnum<{
|
|
12191
|
+
up: "up";
|
|
12192
|
+
down: "down";
|
|
12193
|
+
}>;
|
|
12194
|
+
}, z.core.$strict>>;
|
|
12195
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
12196
|
+
billing_scheme: z.ZodLiteral<"tiered">;
|
|
12197
|
+
tiers_mode: z.ZodEnum<{
|
|
12198
|
+
graduated: "graduated";
|
|
12199
|
+
volume: "volume";
|
|
12200
|
+
}>;
|
|
12201
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
12202
|
+
up_to: z.ZodNullable<z.ZodNumber>;
|
|
12203
|
+
unit_amount_decimal: z.ZodNullable<z.ZodString>;
|
|
12204
|
+
flat_amount_minor: z.ZodNullable<z.ZodString>;
|
|
12205
|
+
}, z.core.$strict>>;
|
|
12206
|
+
}, z.core.$strict>], "billing_scheme">>;
|
|
12207
|
+
}, z.core.$strict>;
|
|
12208
|
+
/**
|
|
12209
|
+
* Exact subscription-level recurrence (TASK-28). The billing interval itself
|
|
12210
|
+
* is per item price; this carries what the whole subscription shares.
|
|
12211
|
+
*/
|
|
12212
|
+
declare const BillingRecurrenceSchema: z.ZodObject<{
|
|
12213
|
+
billing_cycle_anchor_at: z.ZodISODateTime;
|
|
12214
|
+
proration_behavior: z.ZodEnum<{
|
|
12215
|
+
none: "none";
|
|
12216
|
+
create_prorations: "create_prorations";
|
|
12217
|
+
always_invoice: "always_invoice";
|
|
12218
|
+
}>;
|
|
12219
|
+
billing_mode: z.ZodOptional<z.ZodEnum<{
|
|
12220
|
+
classic: "classic";
|
|
12221
|
+
flexible: "flexible";
|
|
12222
|
+
}>>;
|
|
12223
|
+
collection_method: z.ZodEnum<{
|
|
12224
|
+
charge_automatically: "charge_automatically";
|
|
12225
|
+
send_invoice: "send_invoice";
|
|
12226
|
+
}>;
|
|
12227
|
+
days_until_due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
12228
|
+
}, z.core.$strict>;
|
|
12229
|
+
/**
|
|
12230
|
+
* Who owns a money movement economically (plan 252 A-12; Stripe Connect
|
|
12231
|
+
* charge ownership). A provider account that can SEE a movement is not
|
|
12232
|
+
* necessarily its owner: a destination charge appears on the platform and,
|
|
12233
|
+
* as a transfer/payment, on the connected account — one sale, counted only in
|
|
12234
|
+
* the owner's scope ({@link billingEconomicOwnership}).
|
|
12235
|
+
*/
|
|
12236
|
+
declare const BillingEconomicOwnerSchema: z.ZodObject<{
|
|
12237
|
+
owner_account_id: z.ZodString;
|
|
12238
|
+
charge_type: z.ZodEnum<{
|
|
12239
|
+
platform: "platform";
|
|
12240
|
+
direct: "direct";
|
|
12241
|
+
destination: "destination";
|
|
12242
|
+
separate_charges_and_transfers: "separate_charges_and_transfers";
|
|
12243
|
+
}>;
|
|
12244
|
+
on_behalf_of_account_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12245
|
+
transfer_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12246
|
+
}, z.core.$strict>;
|
|
12247
|
+
/**
|
|
12248
|
+
* An amount in the processor's SETTLEMENT currency, kept apart from the
|
|
12249
|
+
* payment currency (A-12: a USD withdrawal is never subtracted from a EUR
|
|
12250
|
+
* invoice without an authoritative compatible basis).
|
|
12251
|
+
*/
|
|
12252
|
+
declare const BillingSettlementAmountSchema: z.ZodObject<{
|
|
12253
|
+
amount_minor: z.ZodString;
|
|
12254
|
+
currency: z.ZodString;
|
|
12255
|
+
currency_exponent: z.ZodNumber;
|
|
11588
12256
|
}, z.core.$strict>;
|
|
11589
12257
|
/**
|
|
11590
12258
|
* One subscription item AS OF this revision — a revision of plan 248's
|
|
@@ -11607,6 +12275,28 @@ declare const BillingSubscriptionItemSnapshotSchema: z.ZodObject<{
|
|
|
11607
12275
|
licensed: "licensed";
|
|
11608
12276
|
}>;
|
|
11609
12277
|
unit_amount_minor: z.ZodNullable<z.ZodString>;
|
|
12278
|
+
terms: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
12279
|
+
billing_scheme: z.ZodLiteral<"per_unit">;
|
|
12280
|
+
unit_amount_decimal: z.ZodString;
|
|
12281
|
+
transform_quantity: z.ZodNullable<z.ZodObject<{
|
|
12282
|
+
divide_by: z.ZodNumber;
|
|
12283
|
+
round: z.ZodEnum<{
|
|
12284
|
+
up: "up";
|
|
12285
|
+
down: "down";
|
|
12286
|
+
}>;
|
|
12287
|
+
}, z.core.$strict>>;
|
|
12288
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
12289
|
+
billing_scheme: z.ZodLiteral<"tiered">;
|
|
12290
|
+
tiers_mode: z.ZodEnum<{
|
|
12291
|
+
graduated: "graduated";
|
|
12292
|
+
volume: "volume";
|
|
12293
|
+
}>;
|
|
12294
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
12295
|
+
up_to: z.ZodNullable<z.ZodNumber>;
|
|
12296
|
+
unit_amount_decimal: z.ZodNullable<z.ZodString>;
|
|
12297
|
+
flat_amount_minor: z.ZodNullable<z.ZodString>;
|
|
12298
|
+
}, z.core.$strict>>;
|
|
12299
|
+
}, z.core.$strict>], "billing_scheme">>;
|
|
11610
12300
|
}, z.core.$strict>;
|
|
11611
12301
|
quantity: z.ZodNumber;
|
|
11612
12302
|
trial_end_at: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
@@ -11629,6 +12319,28 @@ declare const BillingSubscriptionProfileSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
11629
12319
|
licensed: "licensed";
|
|
11630
12320
|
}>;
|
|
11631
12321
|
unit_amount_minor: z.ZodNullable<z.ZodString>;
|
|
12322
|
+
terms: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
12323
|
+
billing_scheme: z.ZodLiteral<"per_unit">;
|
|
12324
|
+
unit_amount_decimal: z.ZodString;
|
|
12325
|
+
transform_quantity: z.ZodNullable<z.ZodObject<{
|
|
12326
|
+
divide_by: z.ZodNumber;
|
|
12327
|
+
round: z.ZodEnum<{
|
|
12328
|
+
up: "up";
|
|
12329
|
+
down: "down";
|
|
12330
|
+
}>;
|
|
12331
|
+
}, z.core.$strict>>;
|
|
12332
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
12333
|
+
billing_scheme: z.ZodLiteral<"tiered">;
|
|
12334
|
+
tiers_mode: z.ZodEnum<{
|
|
12335
|
+
graduated: "graduated";
|
|
12336
|
+
volume: "volume";
|
|
12337
|
+
}>;
|
|
12338
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
12339
|
+
up_to: z.ZodNullable<z.ZodNumber>;
|
|
12340
|
+
unit_amount_decimal: z.ZodNullable<z.ZodString>;
|
|
12341
|
+
flat_amount_minor: z.ZodNullable<z.ZodString>;
|
|
12342
|
+
}, z.core.$strict>>;
|
|
12343
|
+
}, z.core.$strict>], "billing_scheme">>;
|
|
11632
12344
|
}, z.core.$strict>;
|
|
11633
12345
|
quantity: z.ZodNumber;
|
|
11634
12346
|
trial_end_at: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
@@ -11637,6 +12349,23 @@ declare const BillingSubscriptionProfileSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
11637
12349
|
complete: "complete";
|
|
11638
12350
|
partial: "partial";
|
|
11639
12351
|
}>;
|
|
12352
|
+
recurrence: z.ZodOptional<z.ZodObject<{
|
|
12353
|
+
billing_cycle_anchor_at: z.ZodISODateTime;
|
|
12354
|
+
proration_behavior: z.ZodEnum<{
|
|
12355
|
+
none: "none";
|
|
12356
|
+
create_prorations: "create_prorations";
|
|
12357
|
+
always_invoice: "always_invoice";
|
|
12358
|
+
}>;
|
|
12359
|
+
billing_mode: z.ZodOptional<z.ZodEnum<{
|
|
12360
|
+
classic: "classic";
|
|
12361
|
+
flexible: "flexible";
|
|
12362
|
+
}>>;
|
|
12363
|
+
collection_method: z.ZodEnum<{
|
|
12364
|
+
charge_automatically: "charge_automatically";
|
|
12365
|
+
send_invoice: "send_invoice";
|
|
12366
|
+
}>;
|
|
12367
|
+
days_until_due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
12368
|
+
}, z.core.$strict>>;
|
|
11640
12369
|
currency: z.ZodString;
|
|
11641
12370
|
currency_exponent: z.ZodNumber;
|
|
11642
12371
|
subscription_id: z.ZodString;
|
|
@@ -11694,6 +12423,28 @@ declare const BillingSubscriptionProfileSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
11694
12423
|
licensed: "licensed";
|
|
11695
12424
|
}>;
|
|
11696
12425
|
unit_amount_minor: z.ZodNullable<z.ZodString>;
|
|
12426
|
+
terms: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
12427
|
+
billing_scheme: z.ZodLiteral<"per_unit">;
|
|
12428
|
+
unit_amount_decimal: z.ZodString;
|
|
12429
|
+
transform_quantity: z.ZodNullable<z.ZodObject<{
|
|
12430
|
+
divide_by: z.ZodNumber;
|
|
12431
|
+
round: z.ZodEnum<{
|
|
12432
|
+
up: "up";
|
|
12433
|
+
down: "down";
|
|
12434
|
+
}>;
|
|
12435
|
+
}, z.core.$strict>>;
|
|
12436
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
12437
|
+
billing_scheme: z.ZodLiteral<"tiered">;
|
|
12438
|
+
tiers_mode: z.ZodEnum<{
|
|
12439
|
+
graduated: "graduated";
|
|
12440
|
+
volume: "volume";
|
|
12441
|
+
}>;
|
|
12442
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
12443
|
+
up_to: z.ZodNullable<z.ZodNumber>;
|
|
12444
|
+
unit_amount_decimal: z.ZodNullable<z.ZodString>;
|
|
12445
|
+
flat_amount_minor: z.ZodNullable<z.ZodString>;
|
|
12446
|
+
}, z.core.$strict>>;
|
|
12447
|
+
}, z.core.$strict>], "billing_scheme">>;
|
|
11697
12448
|
}, z.core.$strict>;
|
|
11698
12449
|
quantity: z.ZodNumber;
|
|
11699
12450
|
trial_end_at: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
@@ -11702,6 +12453,23 @@ declare const BillingSubscriptionProfileSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
11702
12453
|
complete: "complete";
|
|
11703
12454
|
partial: "partial";
|
|
11704
12455
|
}>;
|
|
12456
|
+
recurrence: z.ZodOptional<z.ZodObject<{
|
|
12457
|
+
billing_cycle_anchor_at: z.ZodISODateTime;
|
|
12458
|
+
proration_behavior: z.ZodEnum<{
|
|
12459
|
+
none: "none";
|
|
12460
|
+
create_prorations: "create_prorations";
|
|
12461
|
+
always_invoice: "always_invoice";
|
|
12462
|
+
}>;
|
|
12463
|
+
billing_mode: z.ZodOptional<z.ZodEnum<{
|
|
12464
|
+
classic: "classic";
|
|
12465
|
+
flexible: "flexible";
|
|
12466
|
+
}>>;
|
|
12467
|
+
collection_method: z.ZodEnum<{
|
|
12468
|
+
charge_automatically: "charge_automatically";
|
|
12469
|
+
send_invoice: "send_invoice";
|
|
12470
|
+
}>;
|
|
12471
|
+
days_until_due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
12472
|
+
}, z.core.$strict>>;
|
|
11705
12473
|
currency: z.ZodString;
|
|
11706
12474
|
currency_exponent: z.ZodNumber;
|
|
11707
12475
|
subscription_id: z.ZodString;
|
|
@@ -11761,6 +12529,28 @@ declare const BillingSubscriptionProfileSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
11761
12529
|
licensed: "licensed";
|
|
11762
12530
|
}>;
|
|
11763
12531
|
unit_amount_minor: z.ZodNullable<z.ZodString>;
|
|
12532
|
+
terms: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
12533
|
+
billing_scheme: z.ZodLiteral<"per_unit">;
|
|
12534
|
+
unit_amount_decimal: z.ZodString;
|
|
12535
|
+
transform_quantity: z.ZodNullable<z.ZodObject<{
|
|
12536
|
+
divide_by: z.ZodNumber;
|
|
12537
|
+
round: z.ZodEnum<{
|
|
12538
|
+
up: "up";
|
|
12539
|
+
down: "down";
|
|
12540
|
+
}>;
|
|
12541
|
+
}, z.core.$strict>>;
|
|
12542
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
12543
|
+
billing_scheme: z.ZodLiteral<"tiered">;
|
|
12544
|
+
tiers_mode: z.ZodEnum<{
|
|
12545
|
+
graduated: "graduated";
|
|
12546
|
+
volume: "volume";
|
|
12547
|
+
}>;
|
|
12548
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
12549
|
+
up_to: z.ZodNullable<z.ZodNumber>;
|
|
12550
|
+
unit_amount_decimal: z.ZodNullable<z.ZodString>;
|
|
12551
|
+
flat_amount_minor: z.ZodNullable<z.ZodString>;
|
|
12552
|
+
}, z.core.$strict>>;
|
|
12553
|
+
}, z.core.$strict>], "billing_scheme">>;
|
|
11764
12554
|
}, z.core.$strict>;
|
|
11765
12555
|
quantity: z.ZodNumber;
|
|
11766
12556
|
trial_end_at: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
@@ -11769,6 +12559,23 @@ declare const BillingSubscriptionProfileSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
11769
12559
|
complete: "complete";
|
|
11770
12560
|
partial: "partial";
|
|
11771
12561
|
}>;
|
|
12562
|
+
recurrence: z.ZodOptional<z.ZodObject<{
|
|
12563
|
+
billing_cycle_anchor_at: z.ZodISODateTime;
|
|
12564
|
+
proration_behavior: z.ZodEnum<{
|
|
12565
|
+
none: "none";
|
|
12566
|
+
create_prorations: "create_prorations";
|
|
12567
|
+
always_invoice: "always_invoice";
|
|
12568
|
+
}>;
|
|
12569
|
+
billing_mode: z.ZodOptional<z.ZodEnum<{
|
|
12570
|
+
classic: "classic";
|
|
12571
|
+
flexible: "flexible";
|
|
12572
|
+
}>>;
|
|
12573
|
+
collection_method: z.ZodEnum<{
|
|
12574
|
+
charge_automatically: "charge_automatically";
|
|
12575
|
+
send_invoice: "send_invoice";
|
|
12576
|
+
}>;
|
|
12577
|
+
days_until_due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
12578
|
+
}, z.core.$strict>>;
|
|
11772
12579
|
currency: z.ZodString;
|
|
11773
12580
|
currency_exponent: z.ZodNumber;
|
|
11774
12581
|
subscription_id: z.ZodString;
|
|
@@ -11933,6 +12740,28 @@ declare const BillingSubscriptionProfileSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
11933
12740
|
licensed: "licensed";
|
|
11934
12741
|
}>;
|
|
11935
12742
|
unit_amount_minor: z.ZodNullable<z.ZodString>;
|
|
12743
|
+
terms: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
12744
|
+
billing_scheme: z.ZodLiteral<"per_unit">;
|
|
12745
|
+
unit_amount_decimal: z.ZodString;
|
|
12746
|
+
transform_quantity: z.ZodNullable<z.ZodObject<{
|
|
12747
|
+
divide_by: z.ZodNumber;
|
|
12748
|
+
round: z.ZodEnum<{
|
|
12749
|
+
up: "up";
|
|
12750
|
+
down: "down";
|
|
12751
|
+
}>;
|
|
12752
|
+
}, z.core.$strict>>;
|
|
12753
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
12754
|
+
billing_scheme: z.ZodLiteral<"tiered">;
|
|
12755
|
+
tiers_mode: z.ZodEnum<{
|
|
12756
|
+
graduated: "graduated";
|
|
12757
|
+
volume: "volume";
|
|
12758
|
+
}>;
|
|
12759
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
12760
|
+
up_to: z.ZodNullable<z.ZodNumber>;
|
|
12761
|
+
unit_amount_decimal: z.ZodNullable<z.ZodString>;
|
|
12762
|
+
flat_amount_minor: z.ZodNullable<z.ZodString>;
|
|
12763
|
+
}, z.core.$strict>>;
|
|
12764
|
+
}, z.core.$strict>], "billing_scheme">>;
|
|
11936
12765
|
}, z.core.$strict>;
|
|
11937
12766
|
quantity: z.ZodNumber;
|
|
11938
12767
|
trial_end_at: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
@@ -11941,6 +12770,23 @@ declare const BillingSubscriptionProfileSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
11941
12770
|
complete: "complete";
|
|
11942
12771
|
partial: "partial";
|
|
11943
12772
|
}>;
|
|
12773
|
+
recurrence: z.ZodOptional<z.ZodObject<{
|
|
12774
|
+
billing_cycle_anchor_at: z.ZodISODateTime;
|
|
12775
|
+
proration_behavior: z.ZodEnum<{
|
|
12776
|
+
none: "none";
|
|
12777
|
+
create_prorations: "create_prorations";
|
|
12778
|
+
always_invoice: "always_invoice";
|
|
12779
|
+
}>;
|
|
12780
|
+
billing_mode: z.ZodOptional<z.ZodEnum<{
|
|
12781
|
+
classic: "classic";
|
|
12782
|
+
flexible: "flexible";
|
|
12783
|
+
}>>;
|
|
12784
|
+
collection_method: z.ZodEnum<{
|
|
12785
|
+
charge_automatically: "charge_automatically";
|
|
12786
|
+
send_invoice: "send_invoice";
|
|
12787
|
+
}>;
|
|
12788
|
+
days_until_due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
12789
|
+
}, z.core.$strict>>;
|
|
11944
12790
|
currency: z.ZodString;
|
|
11945
12791
|
currency_exponent: z.ZodNumber;
|
|
11946
12792
|
subscription_id: z.ZodString;
|
|
@@ -12000,6 +12846,28 @@ declare const BillingSubscriptionProfileSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
12000
12846
|
licensed: "licensed";
|
|
12001
12847
|
}>;
|
|
12002
12848
|
unit_amount_minor: z.ZodNullable<z.ZodString>;
|
|
12849
|
+
terms: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
12850
|
+
billing_scheme: z.ZodLiteral<"per_unit">;
|
|
12851
|
+
unit_amount_decimal: z.ZodString;
|
|
12852
|
+
transform_quantity: z.ZodNullable<z.ZodObject<{
|
|
12853
|
+
divide_by: z.ZodNumber;
|
|
12854
|
+
round: z.ZodEnum<{
|
|
12855
|
+
up: "up";
|
|
12856
|
+
down: "down";
|
|
12857
|
+
}>;
|
|
12858
|
+
}, z.core.$strict>>;
|
|
12859
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
12860
|
+
billing_scheme: z.ZodLiteral<"tiered">;
|
|
12861
|
+
tiers_mode: z.ZodEnum<{
|
|
12862
|
+
graduated: "graduated";
|
|
12863
|
+
volume: "volume";
|
|
12864
|
+
}>;
|
|
12865
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
12866
|
+
up_to: z.ZodNullable<z.ZodNumber>;
|
|
12867
|
+
unit_amount_decimal: z.ZodNullable<z.ZodString>;
|
|
12868
|
+
flat_amount_minor: z.ZodNullable<z.ZodString>;
|
|
12869
|
+
}, z.core.$strict>>;
|
|
12870
|
+
}, z.core.$strict>], "billing_scheme">>;
|
|
12003
12871
|
}, z.core.$strict>;
|
|
12004
12872
|
quantity: z.ZodNumber;
|
|
12005
12873
|
trial_end_at: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
@@ -12008,6 +12876,23 @@ declare const BillingSubscriptionProfileSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
12008
12876
|
complete: "complete";
|
|
12009
12877
|
partial: "partial";
|
|
12010
12878
|
}>;
|
|
12879
|
+
recurrence: z.ZodOptional<z.ZodObject<{
|
|
12880
|
+
billing_cycle_anchor_at: z.ZodISODateTime;
|
|
12881
|
+
proration_behavior: z.ZodEnum<{
|
|
12882
|
+
none: "none";
|
|
12883
|
+
create_prorations: "create_prorations";
|
|
12884
|
+
always_invoice: "always_invoice";
|
|
12885
|
+
}>;
|
|
12886
|
+
billing_mode: z.ZodOptional<z.ZodEnum<{
|
|
12887
|
+
classic: "classic";
|
|
12888
|
+
flexible: "flexible";
|
|
12889
|
+
}>>;
|
|
12890
|
+
collection_method: z.ZodEnum<{
|
|
12891
|
+
charge_automatically: "charge_automatically";
|
|
12892
|
+
send_invoice: "send_invoice";
|
|
12893
|
+
}>;
|
|
12894
|
+
days_until_due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
12895
|
+
}, z.core.$strict>>;
|
|
12011
12896
|
currency: z.ZodString;
|
|
12012
12897
|
currency_exponent: z.ZodNumber;
|
|
12013
12898
|
subscription_id: z.ZodString;
|
|
@@ -12133,6 +13018,28 @@ declare const BillingSubscriptionProfileSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
12133
13018
|
licensed: "licensed";
|
|
12134
13019
|
}>;
|
|
12135
13020
|
unit_amount_minor: z.ZodNullable<z.ZodString>;
|
|
13021
|
+
terms: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
13022
|
+
billing_scheme: z.ZodLiteral<"per_unit">;
|
|
13023
|
+
unit_amount_decimal: z.ZodString;
|
|
13024
|
+
transform_quantity: z.ZodNullable<z.ZodObject<{
|
|
13025
|
+
divide_by: z.ZodNumber;
|
|
13026
|
+
round: z.ZodEnum<{
|
|
13027
|
+
up: "up";
|
|
13028
|
+
down: "down";
|
|
13029
|
+
}>;
|
|
13030
|
+
}, z.core.$strict>>;
|
|
13031
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
13032
|
+
billing_scheme: z.ZodLiteral<"tiered">;
|
|
13033
|
+
tiers_mode: z.ZodEnum<{
|
|
13034
|
+
graduated: "graduated";
|
|
13035
|
+
volume: "volume";
|
|
13036
|
+
}>;
|
|
13037
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
13038
|
+
up_to: z.ZodNullable<z.ZodNumber>;
|
|
13039
|
+
unit_amount_decimal: z.ZodNullable<z.ZodString>;
|
|
13040
|
+
flat_amount_minor: z.ZodNullable<z.ZodString>;
|
|
13041
|
+
}, z.core.$strict>>;
|
|
13042
|
+
}, z.core.$strict>], "billing_scheme">>;
|
|
12136
13043
|
}, z.core.$strict>;
|
|
12137
13044
|
quantity: z.ZodNumber;
|
|
12138
13045
|
trial_end_at: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
@@ -12141,6 +13048,23 @@ declare const BillingSubscriptionProfileSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
12141
13048
|
complete: "complete";
|
|
12142
13049
|
partial: "partial";
|
|
12143
13050
|
}>;
|
|
13051
|
+
recurrence: z.ZodOptional<z.ZodObject<{
|
|
13052
|
+
billing_cycle_anchor_at: z.ZodISODateTime;
|
|
13053
|
+
proration_behavior: z.ZodEnum<{
|
|
13054
|
+
none: "none";
|
|
13055
|
+
create_prorations: "create_prorations";
|
|
13056
|
+
always_invoice: "always_invoice";
|
|
13057
|
+
}>;
|
|
13058
|
+
billing_mode: z.ZodOptional<z.ZodEnum<{
|
|
13059
|
+
classic: "classic";
|
|
13060
|
+
flexible: "flexible";
|
|
13061
|
+
}>>;
|
|
13062
|
+
collection_method: z.ZodEnum<{
|
|
13063
|
+
charge_automatically: "charge_automatically";
|
|
13064
|
+
send_invoice: "send_invoice";
|
|
13065
|
+
}>;
|
|
13066
|
+
days_until_due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
13067
|
+
}, z.core.$strict>>;
|
|
12144
13068
|
currency: z.ZodString;
|
|
12145
13069
|
currency_exponent: z.ZodNumber;
|
|
12146
13070
|
subscription_id: z.ZodString;
|
|
@@ -12199,6 +13123,28 @@ declare const BillingScheduleProfileSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
12199
13123
|
licensed: "licensed";
|
|
12200
13124
|
}>;
|
|
12201
13125
|
unit_amount_minor: z.ZodNullable<z.ZodString>;
|
|
13126
|
+
terms: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
13127
|
+
billing_scheme: z.ZodLiteral<"per_unit">;
|
|
13128
|
+
unit_amount_decimal: z.ZodString;
|
|
13129
|
+
transform_quantity: z.ZodNullable<z.ZodObject<{
|
|
13130
|
+
divide_by: z.ZodNumber;
|
|
13131
|
+
round: z.ZodEnum<{
|
|
13132
|
+
up: "up";
|
|
13133
|
+
down: "down";
|
|
13134
|
+
}>;
|
|
13135
|
+
}, z.core.$strict>>;
|
|
13136
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
13137
|
+
billing_scheme: z.ZodLiteral<"tiered">;
|
|
13138
|
+
tiers_mode: z.ZodEnum<{
|
|
13139
|
+
graduated: "graduated";
|
|
13140
|
+
volume: "volume";
|
|
13141
|
+
}>;
|
|
13142
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
13143
|
+
up_to: z.ZodNullable<z.ZodNumber>;
|
|
13144
|
+
unit_amount_decimal: z.ZodNullable<z.ZodString>;
|
|
13145
|
+
flat_amount_minor: z.ZodNullable<z.ZodString>;
|
|
13146
|
+
}, z.core.$strict>>;
|
|
13147
|
+
}, z.core.$strict>], "billing_scheme">>;
|
|
12202
13148
|
}, z.core.$strict>;
|
|
12203
13149
|
quantity: z.ZodNumber;
|
|
12204
13150
|
trial_end_at: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
@@ -12208,6 +13154,23 @@ declare const BillingScheduleProfileSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
12208
13154
|
complete: "complete";
|
|
12209
13155
|
partial: "partial";
|
|
12210
13156
|
}>;
|
|
13157
|
+
recurrence: z.ZodOptional<z.ZodObject<{
|
|
13158
|
+
billing_cycle_anchor_at: z.ZodISODateTime;
|
|
13159
|
+
proration_behavior: z.ZodEnum<{
|
|
13160
|
+
none: "none";
|
|
13161
|
+
create_prorations: "create_prorations";
|
|
13162
|
+
always_invoice: "always_invoice";
|
|
13163
|
+
}>;
|
|
13164
|
+
billing_mode: z.ZodOptional<z.ZodEnum<{
|
|
13165
|
+
classic: "classic";
|
|
13166
|
+
flexible: "flexible";
|
|
13167
|
+
}>>;
|
|
13168
|
+
collection_method: z.ZodEnum<{
|
|
13169
|
+
charge_automatically: "charge_automatically";
|
|
13170
|
+
send_invoice: "send_invoice";
|
|
13171
|
+
}>;
|
|
13172
|
+
days_until_due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
13173
|
+
}, z.core.$strict>>;
|
|
12211
13174
|
currency: z.ZodString;
|
|
12212
13175
|
currency_exponent: z.ZodNumber;
|
|
12213
13176
|
schedule_id: z.ZodString;
|
|
@@ -12325,6 +13288,48 @@ declare const BillingScheduleProfileSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
12325
13288
|
}, z.core.$strict>;
|
|
12326
13289
|
customer_ref: z.ZodString;
|
|
12327
13290
|
}, z.core.$strict>], "kind">;
|
|
13291
|
+
/** Provider invoice status (Stripe). */
|
|
13292
|
+
declare const InvoiceStatusSchema: z.ZodEnum<{
|
|
13293
|
+
void: "void";
|
|
13294
|
+
paid: "paid";
|
|
13295
|
+
draft: "draft";
|
|
13296
|
+
open: "open";
|
|
13297
|
+
uncollectible: "uncollectible";
|
|
13298
|
+
}>;
|
|
13299
|
+
type InvoiceStatus$1 = z.infer<typeof InvoiceStatusSchema>;
|
|
13300
|
+
/**
|
|
13301
|
+
* How an invoice reached `paid` (plan 252 A-11). Only `payments` (and the
|
|
13302
|
+
* payment part of `mixed`) can involve fresh cash, and even then the cash is
|
|
13303
|
+
* the InvoicePayment allocations, never this status.
|
|
13304
|
+
*/
|
|
13305
|
+
declare const InvoiceSettlementBasisSchema: z.ZodEnum<{
|
|
13306
|
+
mixed: "mixed";
|
|
13307
|
+
payments: "payments";
|
|
13308
|
+
zero_total: "zero_total";
|
|
13309
|
+
customer_balance: "customer_balance";
|
|
13310
|
+
credit_note: "credit_note";
|
|
13311
|
+
rollover: "rollover";
|
|
13312
|
+
out_of_band: "out_of_band";
|
|
13313
|
+
}>;
|
|
13314
|
+
/** Status of one InvoicePayment edge (Stripe). Named, so generated port enums do not renumber. */
|
|
13315
|
+
declare const InvoicePaymentStatusSchema: z.ZodEnum<{
|
|
13316
|
+
canceled: "canceled";
|
|
13317
|
+
paid: "paid";
|
|
13318
|
+
open: "open";
|
|
13319
|
+
}>;
|
|
13320
|
+
/**
|
|
13321
|
+
* What funded one InvoicePayment. An `out_of_band` edge names no provider
|
|
13322
|
+
* payment: it is external settlement with unknown cash coverage.
|
|
13323
|
+
*/
|
|
13324
|
+
declare const BillingInvoicePaymentSourceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
13325
|
+
type: z.ZodLiteral<"payment_intent">;
|
|
13326
|
+
payment_id: z.ZodString;
|
|
13327
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
13328
|
+
type: z.ZodLiteral<"charge">;
|
|
13329
|
+
payment_id: z.ZodString;
|
|
13330
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
13331
|
+
type: z.ZodLiteral<"out_of_band">;
|
|
13332
|
+
}, z.core.$strict>], "type">;
|
|
12328
13333
|
declare const BillingInvoiceProfileSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
12329
13334
|
total_minor: z.ZodString;
|
|
12330
13335
|
amount_due_minor: z.ZodString;
|
|
@@ -12334,6 +13339,11 @@ declare const BillingInvoiceProfileSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
12334
13339
|
complete: "complete";
|
|
12335
13340
|
partial: "partial";
|
|
12336
13341
|
}>;
|
|
13342
|
+
payment_count: z.ZodOptional<z.ZodNumber>;
|
|
13343
|
+
payments_coverage: z.ZodOptional<z.ZodEnum<{
|
|
13344
|
+
complete: "complete";
|
|
13345
|
+
partial: "partial";
|
|
13346
|
+
}>>;
|
|
12337
13347
|
currency: z.ZodString;
|
|
12338
13348
|
currency_exponent: z.ZodNumber;
|
|
12339
13349
|
invoice_id: z.ZodString;
|
|
@@ -12387,6 +13397,28 @@ declare const BillingInvoiceProfileSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
12387
13397
|
licensed: "licensed";
|
|
12388
13398
|
}>;
|
|
12389
13399
|
unit_amount_minor: z.ZodNullable<z.ZodString>;
|
|
13400
|
+
terms: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
13401
|
+
billing_scheme: z.ZodLiteral<"per_unit">;
|
|
13402
|
+
unit_amount_decimal: z.ZodString;
|
|
13403
|
+
transform_quantity: z.ZodNullable<z.ZodObject<{
|
|
13404
|
+
divide_by: z.ZodNumber;
|
|
13405
|
+
round: z.ZodEnum<{
|
|
13406
|
+
up: "up";
|
|
13407
|
+
down: "down";
|
|
13408
|
+
}>;
|
|
13409
|
+
}, z.core.$strict>>;
|
|
13410
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
13411
|
+
billing_scheme: z.ZodLiteral<"tiered">;
|
|
13412
|
+
tiers_mode: z.ZodEnum<{
|
|
13413
|
+
graduated: "graduated";
|
|
13414
|
+
volume: "volume";
|
|
13415
|
+
}>;
|
|
13416
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
13417
|
+
up_to: z.ZodNullable<z.ZodNumber>;
|
|
13418
|
+
unit_amount_decimal: z.ZodNullable<z.ZodString>;
|
|
13419
|
+
flat_amount_minor: z.ZodNullable<z.ZodString>;
|
|
13420
|
+
}, z.core.$strict>>;
|
|
13421
|
+
}, z.core.$strict>], "billing_scheme">>;
|
|
12390
13422
|
}, z.core.$strict>;
|
|
12391
13423
|
quantity: z.ZodNumber;
|
|
12392
13424
|
service_period_start_at: z.ZodISODateTime;
|
|
@@ -12493,17 +13525,159 @@ declare const BillingInvoiceProfileSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
12493
13525
|
legacy_billing_ref: z.ZodOptional<z.ZodString>;
|
|
12494
13526
|
}, z.core.$strict>;
|
|
12495
13527
|
customer_ref: z.ZodString;
|
|
13528
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
13529
|
+
economic_owner: z.ZodOptional<z.ZodObject<{
|
|
13530
|
+
owner_account_id: z.ZodString;
|
|
13531
|
+
charge_type: z.ZodEnum<{
|
|
13532
|
+
platform: "platform";
|
|
13533
|
+
direct: "direct";
|
|
13534
|
+
destination: "destination";
|
|
13535
|
+
separate_charges_and_transfers: "separate_charges_and_transfers";
|
|
13536
|
+
}>;
|
|
13537
|
+
on_behalf_of_account_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13538
|
+
transfer_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13539
|
+
}, z.core.$strict>>;
|
|
13540
|
+
amount_requested_minor: z.ZodString;
|
|
13541
|
+
amount_paid_minor: z.ZodNullable<z.ZodString>;
|
|
13542
|
+
paid_at: z.ZodNullable<z.ZodISODateTime>;
|
|
13543
|
+
currency: z.ZodString;
|
|
13544
|
+
currency_exponent: z.ZodNumber;
|
|
13545
|
+
invoice_payment_id: z.ZodString;
|
|
13546
|
+
invoice_id: z.ZodString;
|
|
13547
|
+
payment: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
13548
|
+
type: z.ZodLiteral<"payment_intent">;
|
|
13549
|
+
payment_id: z.ZodString;
|
|
13550
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
13551
|
+
type: z.ZodLiteral<"charge">;
|
|
13552
|
+
payment_id: z.ZodString;
|
|
13553
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
13554
|
+
type: z.ZodLiteral<"out_of_band">;
|
|
13555
|
+
}, z.core.$strict>], "type">;
|
|
13556
|
+
status: z.ZodEnum<{
|
|
13557
|
+
canceled: "canceled";
|
|
13558
|
+
paid: "paid";
|
|
13559
|
+
open: "open";
|
|
13560
|
+
}>;
|
|
13561
|
+
is_default: z.ZodOptional<z.ZodBoolean>;
|
|
13562
|
+
effective_at: z.ZodISODateTime;
|
|
13563
|
+
source_recorded_at: z.ZodISODateTime;
|
|
13564
|
+
observed_at: z.ZodISODateTime;
|
|
13565
|
+
profile: z.ZodLiteral<"invoice">;
|
|
13566
|
+
kind: z.ZodLiteral<"payment_allocation">;
|
|
13567
|
+
profile_version: z.ZodLiteral<1>;
|
|
13568
|
+
source: z.ZodObject<{
|
|
13569
|
+
tenant_id: z.ZodString;
|
|
13570
|
+
account_id: z.ZodString;
|
|
13571
|
+
livemode: z.ZodBoolean;
|
|
13572
|
+
provider: z.ZodEnum<{
|
|
13573
|
+
stripe: "stripe";
|
|
13574
|
+
}>;
|
|
13575
|
+
simulation_id: z.ZodOptional<z.ZodString>;
|
|
13576
|
+
}, z.core.$strict>;
|
|
13577
|
+
occurrence: z.ZodObject<{
|
|
13578
|
+
identity_version: z.ZodLiteral<2>;
|
|
13579
|
+
occurrence_key: z.ZodString;
|
|
13580
|
+
source_revision: z.ZodString;
|
|
13581
|
+
source_order: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
13582
|
+
supersedes_revision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13583
|
+
delivery_id: z.ZodOptional<z.ZodString>;
|
|
13584
|
+
legacy_billing_ref: z.ZodOptional<z.ZodString>;
|
|
13585
|
+
}, z.core.$strict>;
|
|
13586
|
+
customer_ref: z.ZodString;
|
|
13587
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
13588
|
+
amount_due_minor: z.ZodString;
|
|
13589
|
+
amount_paid_minor: z.ZodString;
|
|
13590
|
+
amount_remaining_minor: z.ZodString;
|
|
13591
|
+
due_at: z.ZodNullable<z.ZodISODateTime>;
|
|
13592
|
+
paid_out_of_band: z.ZodBoolean;
|
|
13593
|
+
settlement_basis: z.ZodNullable<z.ZodEnum<{
|
|
13594
|
+
mixed: "mixed";
|
|
13595
|
+
payments: "payments";
|
|
13596
|
+
zero_total: "zero_total";
|
|
13597
|
+
customer_balance: "customer_balance";
|
|
13598
|
+
credit_note: "credit_note";
|
|
13599
|
+
rollover: "rollover";
|
|
13600
|
+
out_of_band: "out_of_band";
|
|
13601
|
+
}>>;
|
|
13602
|
+
currency: z.ZodString;
|
|
13603
|
+
currency_exponent: z.ZodNumber;
|
|
13604
|
+
invoice_id: z.ZodString;
|
|
13605
|
+
subscription_id: z.ZodNullable<z.ZodString>;
|
|
13606
|
+
from_status: z.ZodEnum<{
|
|
13607
|
+
void: "void";
|
|
13608
|
+
paid: "paid";
|
|
13609
|
+
draft: "draft";
|
|
13610
|
+
open: "open";
|
|
13611
|
+
uncollectible: "uncollectible";
|
|
13612
|
+
}>;
|
|
13613
|
+
to_status: z.ZodEnum<{
|
|
13614
|
+
void: "void";
|
|
13615
|
+
paid: "paid";
|
|
13616
|
+
draft: "draft";
|
|
13617
|
+
open: "open";
|
|
13618
|
+
uncollectible: "uncollectible";
|
|
13619
|
+
}>;
|
|
13620
|
+
effective_at: z.ZodISODateTime;
|
|
13621
|
+
source_recorded_at: z.ZodISODateTime;
|
|
13622
|
+
observed_at: z.ZodISODateTime;
|
|
13623
|
+
profile: z.ZodLiteral<"invoice">;
|
|
13624
|
+
kind: z.ZodLiteral<"status_transition">;
|
|
13625
|
+
profile_version: z.ZodLiteral<1>;
|
|
13626
|
+
source: z.ZodObject<{
|
|
13627
|
+
tenant_id: z.ZodString;
|
|
13628
|
+
account_id: z.ZodString;
|
|
13629
|
+
livemode: z.ZodBoolean;
|
|
13630
|
+
provider: z.ZodEnum<{
|
|
13631
|
+
stripe: "stripe";
|
|
13632
|
+
}>;
|
|
13633
|
+
simulation_id: z.ZodOptional<z.ZodString>;
|
|
13634
|
+
}, z.core.$strict>;
|
|
13635
|
+
occurrence: z.ZodObject<{
|
|
13636
|
+
identity_version: z.ZodLiteral<2>;
|
|
13637
|
+
occurrence_key: z.ZodString;
|
|
13638
|
+
source_revision: z.ZodString;
|
|
13639
|
+
source_order: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
13640
|
+
supersedes_revision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13641
|
+
delivery_id: z.ZodOptional<z.ZodString>;
|
|
13642
|
+
legacy_billing_ref: z.ZodOptional<z.ZodString>;
|
|
13643
|
+
}, z.core.$strict>;
|
|
13644
|
+
customer_ref: z.ZodString;
|
|
12496
13645
|
}, z.core.$strict>], "kind">;
|
|
13646
|
+
/** Receivable-relevant classification of each allowed invoice transition. */
|
|
13647
|
+
type InvoiceReceivableTransition = 'finalized' | 'settled' | 'voided' | 'written_off' | 'recovered' | 'write_off_voided';
|
|
13648
|
+
/**
|
|
13649
|
+
* The allowed `from → to` invoice transitions and what each means for the
|
|
13650
|
+
* receivable (revenue-accounting §7). `paid` and `void` are terminal: a
|
|
13651
|
+
* refund does not reopen an invoice.
|
|
13652
|
+
*/
|
|
13653
|
+
declare const INVOICE_RECEIVABLE_TRANSITIONS: Readonly<Record<string, InvoiceReceivableTransition>>;
|
|
13654
|
+
/** Classify a transition, or null when the table does not allow it. */
|
|
13655
|
+
declare function classifyInvoiceTransition(from: InvoiceStatus$1, to: InvoiceStatus$1): InvoiceReceivableTransition | null;
|
|
12497
13656
|
declare const BillingTransactionProfileSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
12498
13657
|
amount_captured_minor: z.ZodString;
|
|
12499
13658
|
amount_requested_minor: z.ZodOptional<z.ZodString>;
|
|
13659
|
+
allocations_coverage: z.ZodOptional<z.ZodEnum<{
|
|
13660
|
+
complete: "complete";
|
|
13661
|
+
partial: "partial";
|
|
13662
|
+
}>>;
|
|
13663
|
+
economic_owner: z.ZodOptional<z.ZodObject<{
|
|
13664
|
+
owner_account_id: z.ZodString;
|
|
13665
|
+
charge_type: z.ZodEnum<{
|
|
13666
|
+
platform: "platform";
|
|
13667
|
+
direct: "direct";
|
|
13668
|
+
destination: "destination";
|
|
13669
|
+
separate_charges_and_transfers: "separate_charges_and_transfers";
|
|
13670
|
+
}>;
|
|
13671
|
+
on_behalf_of_account_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13672
|
+
transfer_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13673
|
+
}, z.core.$strict>>;
|
|
12500
13674
|
currency: z.ZodString;
|
|
12501
13675
|
currency_exponent: z.ZodNumber;
|
|
12502
13676
|
payment_id: z.ZodString;
|
|
12503
13677
|
observed_object_type: z.ZodEnum<{
|
|
12504
|
-
invoice: "invoice";
|
|
12505
13678
|
payment_intent: "payment_intent";
|
|
12506
13679
|
charge: "charge";
|
|
13680
|
+
invoice: "invoice";
|
|
12507
13681
|
invoice_payment: "invoice_payment";
|
|
12508
13682
|
checkout_session: "checkout_session";
|
|
12509
13683
|
}>;
|
|
@@ -12535,52 +13709,74 @@ declare const BillingTransactionProfileSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
12535
13709
|
customer_ref: z.ZodString;
|
|
12536
13710
|
}, z.core.$strict>, z.ZodObject<{
|
|
12537
13711
|
amount_requested_minor: z.ZodString;
|
|
12538
|
-
failure_code: z.ZodString;
|
|
12539
|
-
|
|
12540
|
-
|
|
12541
|
-
|
|
12542
|
-
|
|
12543
|
-
|
|
12544
|
-
|
|
12545
|
-
|
|
12546
|
-
|
|
12547
|
-
|
|
12548
|
-
|
|
12549
|
-
|
|
12550
|
-
|
|
12551
|
-
|
|
12552
|
-
|
|
12553
|
-
|
|
12554
|
-
|
|
12555
|
-
|
|
12556
|
-
|
|
12557
|
-
|
|
12558
|
-
|
|
12559
|
-
|
|
12560
|
-
|
|
12561
|
-
|
|
13712
|
+
failure_code: z.ZodString;
|
|
13713
|
+
economic_owner: z.ZodOptional<z.ZodObject<{
|
|
13714
|
+
owner_account_id: z.ZodString;
|
|
13715
|
+
charge_type: z.ZodEnum<{
|
|
13716
|
+
platform: "platform";
|
|
13717
|
+
direct: "direct";
|
|
13718
|
+
destination: "destination";
|
|
13719
|
+
separate_charges_and_transfers: "separate_charges_and_transfers";
|
|
13720
|
+
}>;
|
|
13721
|
+
on_behalf_of_account_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13722
|
+
transfer_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13723
|
+
}, z.core.$strict>>;
|
|
13724
|
+
currency: z.ZodString;
|
|
13725
|
+
currency_exponent: z.ZodNumber;
|
|
13726
|
+
payment_id: z.ZodString;
|
|
13727
|
+
observed_object_type: z.ZodEnum<{
|
|
13728
|
+
payment_intent: "payment_intent";
|
|
13729
|
+
charge: "charge";
|
|
13730
|
+
invoice: "invoice";
|
|
13731
|
+
invoice_payment: "invoice_payment";
|
|
13732
|
+
checkout_session: "checkout_session";
|
|
13733
|
+
}>;
|
|
13734
|
+
observed_object_id: z.ZodString;
|
|
13735
|
+
effective_at: z.ZodISODateTime;
|
|
13736
|
+
source_recorded_at: z.ZodISODateTime;
|
|
13737
|
+
observed_at: z.ZodISODateTime;
|
|
13738
|
+
profile: z.ZodLiteral<"transaction">;
|
|
13739
|
+
kind: z.ZodLiteral<"payment_failed">;
|
|
13740
|
+
profile_version: z.ZodLiteral<1>;
|
|
13741
|
+
source: z.ZodObject<{
|
|
13742
|
+
tenant_id: z.ZodString;
|
|
13743
|
+
account_id: z.ZodString;
|
|
13744
|
+
livemode: z.ZodBoolean;
|
|
13745
|
+
provider: z.ZodEnum<{
|
|
13746
|
+
stripe: "stripe";
|
|
13747
|
+
}>;
|
|
13748
|
+
simulation_id: z.ZodOptional<z.ZodString>;
|
|
13749
|
+
}, z.core.$strict>;
|
|
13750
|
+
occurrence: z.ZodObject<{
|
|
13751
|
+
identity_version: z.ZodLiteral<2>;
|
|
13752
|
+
occurrence_key: z.ZodString;
|
|
13753
|
+
source_revision: z.ZodString;
|
|
13754
|
+
source_order: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
13755
|
+
supersedes_revision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13756
|
+
delivery_id: z.ZodOptional<z.ZodString>;
|
|
13757
|
+
legacy_billing_ref: z.ZodOptional<z.ZodString>;
|
|
13758
|
+
}, z.core.$strict>;
|
|
13759
|
+
customer_ref: z.ZodString;
|
|
13760
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
13761
|
+
amount_requested_minor: z.ZodString;
|
|
13762
|
+
economic_owner: z.ZodOptional<z.ZodObject<{
|
|
13763
|
+
owner_account_id: z.ZodString;
|
|
13764
|
+
charge_type: z.ZodEnum<{
|
|
13765
|
+
platform: "platform";
|
|
13766
|
+
direct: "direct";
|
|
13767
|
+
destination: "destination";
|
|
13768
|
+
separate_charges_and_transfers: "separate_charges_and_transfers";
|
|
12562
13769
|
}>;
|
|
12563
|
-
|
|
12564
|
-
|
|
12565
|
-
|
|
12566
|
-
identity_version: z.ZodLiteral<2>;
|
|
12567
|
-
occurrence_key: z.ZodString;
|
|
12568
|
-
source_revision: z.ZodString;
|
|
12569
|
-
source_order: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
12570
|
-
supersedes_revision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12571
|
-
delivery_id: z.ZodOptional<z.ZodString>;
|
|
12572
|
-
legacy_billing_ref: z.ZodOptional<z.ZodString>;
|
|
12573
|
-
}, z.core.$strict>;
|
|
12574
|
-
customer_ref: z.ZodString;
|
|
12575
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
12576
|
-
amount_requested_minor: z.ZodString;
|
|
13770
|
+
on_behalf_of_account_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13771
|
+
transfer_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13772
|
+
}, z.core.$strict>>;
|
|
12577
13773
|
currency: z.ZodString;
|
|
12578
13774
|
currency_exponent: z.ZodNumber;
|
|
12579
13775
|
payment_id: z.ZodString;
|
|
12580
13776
|
observed_object_type: z.ZodEnum<{
|
|
12581
|
-
invoice: "invoice";
|
|
12582
13777
|
payment_intent: "payment_intent";
|
|
12583
13778
|
charge: "charge";
|
|
13779
|
+
invoice: "invoice";
|
|
12584
13780
|
invoice_payment: "invoice_payment";
|
|
12585
13781
|
checkout_session: "checkout_session";
|
|
12586
13782
|
}>;
|
|
@@ -12612,13 +13808,24 @@ declare const BillingTransactionProfileSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
12612
13808
|
customer_ref: z.ZodString;
|
|
12613
13809
|
}, z.core.$strict>, z.ZodObject<{
|
|
12614
13810
|
amount_requested_minor: z.ZodString;
|
|
13811
|
+
economic_owner: z.ZodOptional<z.ZodObject<{
|
|
13812
|
+
owner_account_id: z.ZodString;
|
|
13813
|
+
charge_type: z.ZodEnum<{
|
|
13814
|
+
platform: "platform";
|
|
13815
|
+
direct: "direct";
|
|
13816
|
+
destination: "destination";
|
|
13817
|
+
separate_charges_and_transfers: "separate_charges_and_transfers";
|
|
13818
|
+
}>;
|
|
13819
|
+
on_behalf_of_account_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13820
|
+
transfer_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13821
|
+
}, z.core.$strict>>;
|
|
12615
13822
|
currency: z.ZodString;
|
|
12616
13823
|
currency_exponent: z.ZodNumber;
|
|
12617
13824
|
payment_id: z.ZodString;
|
|
12618
13825
|
observed_object_type: z.ZodEnum<{
|
|
12619
|
-
invoice: "invoice";
|
|
12620
13826
|
payment_intent: "payment_intent";
|
|
12621
13827
|
charge: "charge";
|
|
13828
|
+
invoice: "invoice";
|
|
12622
13829
|
invoice_payment: "invoice_payment";
|
|
12623
13830
|
checkout_session: "checkout_session";
|
|
12624
13831
|
}>;
|
|
@@ -12657,6 +13864,17 @@ declare const BillingAllocationSchema: z.ZodObject<{
|
|
|
12657
13864
|
amount_minor: z.ZodString;
|
|
12658
13865
|
}, z.core.$strict>;
|
|
12659
13866
|
declare const BillingRefundProfileSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
13867
|
+
economic_owner: z.ZodOptional<z.ZodObject<{
|
|
13868
|
+
owner_account_id: z.ZodString;
|
|
13869
|
+
charge_type: z.ZodEnum<{
|
|
13870
|
+
platform: "platform";
|
|
13871
|
+
direct: "direct";
|
|
13872
|
+
destination: "destination";
|
|
13873
|
+
separate_charges_and_transfers: "separate_charges_and_transfers";
|
|
13874
|
+
}>;
|
|
13875
|
+
on_behalf_of_account_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13876
|
+
transfer_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13877
|
+
}, z.core.$strict>>;
|
|
12660
13878
|
amount_minor: z.ZodString;
|
|
12661
13879
|
reason: z.ZodNullable<z.ZodEnum<{
|
|
12662
13880
|
duplicate: "duplicate";
|
|
@@ -12895,6 +14113,17 @@ declare const BillingBalanceProfileSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
12895
14113
|
invoice_credit_balance: "invoice_credit_balance";
|
|
12896
14114
|
}>;
|
|
12897
14115
|
invoice_id: z.ZodNullable<z.ZodString>;
|
|
14116
|
+
adjustment_source: z.ZodOptional<z.ZodEnum<{
|
|
14117
|
+
credit_note: "credit_note";
|
|
14118
|
+
rollover: "rollover";
|
|
14119
|
+
other: "other";
|
|
14120
|
+
invoice_applied: "invoice_applied";
|
|
14121
|
+
invoice_unapplied: "invoice_unapplied";
|
|
14122
|
+
overpayment: "overpayment";
|
|
14123
|
+
manual_adjustment: "manual_adjustment";
|
|
14124
|
+
migration: "migration";
|
|
14125
|
+
}>>;
|
|
14126
|
+
credit_note_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12898
14127
|
currency: z.ZodString;
|
|
12899
14128
|
currency_exponent: z.ZodNumber;
|
|
12900
14129
|
balance_transaction_id: z.ZodString;
|
|
@@ -12961,6 +14190,7 @@ declare const BillingBalanceProfileSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
12961
14190
|
}, z.core.$strict>, z.ZodObject<{
|
|
12962
14191
|
invoice_id: z.ZodString;
|
|
12963
14192
|
amount_minor: z.ZodString;
|
|
14193
|
+
funding_occurrence_key: z.ZodOptional<z.ZodString>;
|
|
12964
14194
|
currency: z.ZodString;
|
|
12965
14195
|
currency_exponent: z.ZodNumber;
|
|
12966
14196
|
grant_id: z.ZodString;
|
|
@@ -13029,6 +14259,22 @@ declare const BillingBalanceProfileSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
13029
14259
|
customer_ref: z.ZodString;
|
|
13030
14260
|
}, z.core.$strict>], "kind">;
|
|
13031
14261
|
declare const BillingLossProfileSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
14262
|
+
settlement_amount: z.ZodOptional<z.ZodObject<{
|
|
14263
|
+
amount_minor: z.ZodString;
|
|
14264
|
+
currency: z.ZodString;
|
|
14265
|
+
currency_exponent: z.ZodNumber;
|
|
14266
|
+
}, z.core.$strict>>;
|
|
14267
|
+
economic_owner: z.ZodOptional<z.ZodObject<{
|
|
14268
|
+
owner_account_id: z.ZodString;
|
|
14269
|
+
charge_type: z.ZodEnum<{
|
|
14270
|
+
platform: "platform";
|
|
14271
|
+
direct: "direct";
|
|
14272
|
+
destination: "destination";
|
|
14273
|
+
separate_charges_and_transfers: "separate_charges_and_transfers";
|
|
14274
|
+
}>;
|
|
14275
|
+
on_behalf_of_account_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14276
|
+
transfer_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14277
|
+
}, z.core.$strict>>;
|
|
13032
14278
|
amount_minor: z.ZodString;
|
|
13033
14279
|
currency: z.ZodString;
|
|
13034
14280
|
currency_exponent: z.ZodNumber;
|
|
@@ -13061,6 +14307,23 @@ declare const BillingLossProfileSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
13061
14307
|
}, z.core.$strict>;
|
|
13062
14308
|
customer_ref: z.ZodString;
|
|
13063
14309
|
}, z.core.$strict>, z.ZodObject<{
|
|
14310
|
+
reverses_occurrence_key: z.ZodOptional<z.ZodString>;
|
|
14311
|
+
settlement_amount: z.ZodOptional<z.ZodObject<{
|
|
14312
|
+
amount_minor: z.ZodString;
|
|
14313
|
+
currency: z.ZodString;
|
|
14314
|
+
currency_exponent: z.ZodNumber;
|
|
14315
|
+
}, z.core.$strict>>;
|
|
14316
|
+
economic_owner: z.ZodOptional<z.ZodObject<{
|
|
14317
|
+
owner_account_id: z.ZodString;
|
|
14318
|
+
charge_type: z.ZodEnum<{
|
|
14319
|
+
platform: "platform";
|
|
14320
|
+
direct: "direct";
|
|
14321
|
+
destination: "destination";
|
|
14322
|
+
separate_charges_and_transfers: "separate_charges_and_transfers";
|
|
14323
|
+
}>;
|
|
14324
|
+
on_behalf_of_account_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14325
|
+
transfer_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14326
|
+
}, z.core.$strict>>;
|
|
13064
14327
|
amount_minor: z.ZodString;
|
|
13065
14328
|
currency: z.ZodString;
|
|
13066
14329
|
currency_exponent: z.ZodNumber;
|
|
@@ -13130,6 +14393,22 @@ declare const BillingLossProfileSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
13130
14393
|
}, z.core.$strict>;
|
|
13131
14394
|
customer_ref: z.ZodString;
|
|
13132
14395
|
}, z.core.$strict>, z.ZodObject<{
|
|
14396
|
+
settlement_amount: z.ZodOptional<z.ZodObject<{
|
|
14397
|
+
amount_minor: z.ZodString;
|
|
14398
|
+
currency: z.ZodString;
|
|
14399
|
+
currency_exponent: z.ZodNumber;
|
|
14400
|
+
}, z.core.$strict>>;
|
|
14401
|
+
economic_owner: z.ZodOptional<z.ZodObject<{
|
|
14402
|
+
owner_account_id: z.ZodString;
|
|
14403
|
+
charge_type: z.ZodEnum<{
|
|
14404
|
+
platform: "platform";
|
|
14405
|
+
direct: "direct";
|
|
14406
|
+
destination: "destination";
|
|
14407
|
+
separate_charges_and_transfers: "separate_charges_and_transfers";
|
|
14408
|
+
}>;
|
|
14409
|
+
on_behalf_of_account_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14410
|
+
transfer_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14411
|
+
}, z.core.$strict>>;
|
|
13133
14412
|
amount_minor: z.ZodString;
|
|
13134
14413
|
currency: z.ZodString;
|
|
13135
14414
|
currency_exponent: z.ZodNumber;
|
|
@@ -13215,16 +14494,33 @@ declare function deriveBillingRevisionKey(profile: {
|
|
|
13215
14494
|
/** The refund/credit allocation key: the occurrence plus the allocation id. */
|
|
13216
14495
|
declare function deriveBillingAllocationKey(occurrenceKey: string, allocationId: string): string;
|
|
13217
14496
|
/**
|
|
13218
|
-
* The
|
|
13219
|
-
* Storage (TASK-30) declares these as scoped unique indexes
|
|
13220
|
-
*
|
|
13221
|
-
*
|
|
14497
|
+
* The unique keys plan 252's Schema impact requires, as field paths.
|
|
14498
|
+
* Storage (TASK-30) declares these as scoped unique indexes.
|
|
14499
|
+
*
|
|
14500
|
+
* The first four are TASK-3's. TASK-28 adds the credit-note line allocation,
|
|
14501
|
+
* the InvoicePayment edge, and the keys of the derived accounting contracts in
|
|
14502
|
+
* `billing-accounting.ts`. SOURCE keys (occurrence, revision, allocation,
|
|
14503
|
+
* mapping revision) identify what a provider said; OUTPUT keys (output
|
|
14504
|
+
* generation, generation) identify what RevTurbine derived from it under one
|
|
14505
|
+
* policy — a rebuild mints a new generation, never a new source revision.
|
|
13222
14506
|
*/
|
|
13223
14507
|
declare const BILLING_UNIQUE_KEYS: {
|
|
13224
14508
|
readonly logical_occurrence: readonly ["source.tenant_id", "occurrence.occurrence_key"];
|
|
13225
14509
|
readonly source_revision: readonly ["source.tenant_id", "occurrence.occurrence_key", "occurrence.source_revision"];
|
|
13226
14510
|
readonly allocation: readonly ["source.tenant_id", "occurrence.occurrence_key", "allocations[].allocation_id"];
|
|
13227
14511
|
readonly output_generation: readonly ["tenant_id", "policy_version", "generation_id", "output_key"];
|
|
14512
|
+
/** TASK-28: one credit-note line allocation (the credit side of refund/credit allocation). */
|
|
14513
|
+
readonly credit_allocation: readonly ["source.tenant_id", "occurrence.occurrence_key", "lines[].credit_line_id"];
|
|
14514
|
+
/** TASK-28: one InvoicePayment edge — its occurrence is the InvoicePayment object. */
|
|
14515
|
+
readonly invoice_payment_allocation: readonly ["source.tenant_id", "occurrence.occurrence_key"];
|
|
14516
|
+
/** TASK-28: one immutable accounting revision row. */
|
|
14517
|
+
readonly accounting_revision: readonly ["source.tenant_id", "revision_key"];
|
|
14518
|
+
/** TASK-28: one provider-customer → RT-account mapping revision. */
|
|
14519
|
+
readonly mapping_revision: readonly ["source.tenant_id", "source.provider", "source.account_id", "source.livemode", "source.simulation_id", "customer_ref", "mapping_revision"];
|
|
14520
|
+
/** TASK-28: one derived output generation (its checkpoint rides on it). */
|
|
14521
|
+
readonly generation: readonly ["tenant_id", "generation_id"];
|
|
14522
|
+
/** TASK-28: one coverage checkpoint per scope, RT account and fact family. */
|
|
14523
|
+
readonly coverage_checkpoint: readonly ["source.tenant_id", "source.provider", "source.account_id", "source.livemode", "source.simulation_id", "rt_account_id", "family"];
|
|
13228
14524
|
};
|
|
13229
14525
|
/** Plan 248 `stripe_sub_item` unique scope — the join from an item snapshot to observed item state. */
|
|
13230
14526
|
declare const BILLING_ITEM_JOIN_KEYS: readonly ["tenant_id", "account_id", "livemode", "item_id"];
|
|
@@ -13250,6 +14546,28 @@ declare const BillingProfileSchema: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedU
|
|
|
13250
14546
|
licensed: "licensed";
|
|
13251
14547
|
}>;
|
|
13252
14548
|
unit_amount_minor: z.ZodNullable<z.ZodString>;
|
|
14549
|
+
terms: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
14550
|
+
billing_scheme: z.ZodLiteral<"per_unit">;
|
|
14551
|
+
unit_amount_decimal: z.ZodString;
|
|
14552
|
+
transform_quantity: z.ZodNullable<z.ZodObject<{
|
|
14553
|
+
divide_by: z.ZodNumber;
|
|
14554
|
+
round: z.ZodEnum<{
|
|
14555
|
+
up: "up";
|
|
14556
|
+
down: "down";
|
|
14557
|
+
}>;
|
|
14558
|
+
}, z.core.$strict>>;
|
|
14559
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
14560
|
+
billing_scheme: z.ZodLiteral<"tiered">;
|
|
14561
|
+
tiers_mode: z.ZodEnum<{
|
|
14562
|
+
graduated: "graduated";
|
|
14563
|
+
volume: "volume";
|
|
14564
|
+
}>;
|
|
14565
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
14566
|
+
up_to: z.ZodNullable<z.ZodNumber>;
|
|
14567
|
+
unit_amount_decimal: z.ZodNullable<z.ZodString>;
|
|
14568
|
+
flat_amount_minor: z.ZodNullable<z.ZodString>;
|
|
14569
|
+
}, z.core.$strict>>;
|
|
14570
|
+
}, z.core.$strict>], "billing_scheme">>;
|
|
13253
14571
|
}, z.core.$strict>;
|
|
13254
14572
|
quantity: z.ZodNumber;
|
|
13255
14573
|
trial_end_at: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
@@ -13258,6 +14576,23 @@ declare const BillingProfileSchema: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedU
|
|
|
13258
14576
|
complete: "complete";
|
|
13259
14577
|
partial: "partial";
|
|
13260
14578
|
}>;
|
|
14579
|
+
recurrence: z.ZodOptional<z.ZodObject<{
|
|
14580
|
+
billing_cycle_anchor_at: z.ZodISODateTime;
|
|
14581
|
+
proration_behavior: z.ZodEnum<{
|
|
14582
|
+
none: "none";
|
|
14583
|
+
create_prorations: "create_prorations";
|
|
14584
|
+
always_invoice: "always_invoice";
|
|
14585
|
+
}>;
|
|
14586
|
+
billing_mode: z.ZodOptional<z.ZodEnum<{
|
|
14587
|
+
classic: "classic";
|
|
14588
|
+
flexible: "flexible";
|
|
14589
|
+
}>>;
|
|
14590
|
+
collection_method: z.ZodEnum<{
|
|
14591
|
+
charge_automatically: "charge_automatically";
|
|
14592
|
+
send_invoice: "send_invoice";
|
|
14593
|
+
}>;
|
|
14594
|
+
days_until_due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
14595
|
+
}, z.core.$strict>>;
|
|
13261
14596
|
currency: z.ZodString;
|
|
13262
14597
|
currency_exponent: z.ZodNumber;
|
|
13263
14598
|
subscription_id: z.ZodString;
|
|
@@ -13315,6 +14650,28 @@ declare const BillingProfileSchema: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedU
|
|
|
13315
14650
|
licensed: "licensed";
|
|
13316
14651
|
}>;
|
|
13317
14652
|
unit_amount_minor: z.ZodNullable<z.ZodString>;
|
|
14653
|
+
terms: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
14654
|
+
billing_scheme: z.ZodLiteral<"per_unit">;
|
|
14655
|
+
unit_amount_decimal: z.ZodString;
|
|
14656
|
+
transform_quantity: z.ZodNullable<z.ZodObject<{
|
|
14657
|
+
divide_by: z.ZodNumber;
|
|
14658
|
+
round: z.ZodEnum<{
|
|
14659
|
+
up: "up";
|
|
14660
|
+
down: "down";
|
|
14661
|
+
}>;
|
|
14662
|
+
}, z.core.$strict>>;
|
|
14663
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
14664
|
+
billing_scheme: z.ZodLiteral<"tiered">;
|
|
14665
|
+
tiers_mode: z.ZodEnum<{
|
|
14666
|
+
graduated: "graduated";
|
|
14667
|
+
volume: "volume";
|
|
14668
|
+
}>;
|
|
14669
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
14670
|
+
up_to: z.ZodNullable<z.ZodNumber>;
|
|
14671
|
+
unit_amount_decimal: z.ZodNullable<z.ZodString>;
|
|
14672
|
+
flat_amount_minor: z.ZodNullable<z.ZodString>;
|
|
14673
|
+
}, z.core.$strict>>;
|
|
14674
|
+
}, z.core.$strict>], "billing_scheme">>;
|
|
13318
14675
|
}, z.core.$strict>;
|
|
13319
14676
|
quantity: z.ZodNumber;
|
|
13320
14677
|
trial_end_at: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
@@ -13323,6 +14680,23 @@ declare const BillingProfileSchema: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedU
|
|
|
13323
14680
|
complete: "complete";
|
|
13324
14681
|
partial: "partial";
|
|
13325
14682
|
}>;
|
|
14683
|
+
recurrence: z.ZodOptional<z.ZodObject<{
|
|
14684
|
+
billing_cycle_anchor_at: z.ZodISODateTime;
|
|
14685
|
+
proration_behavior: z.ZodEnum<{
|
|
14686
|
+
none: "none";
|
|
14687
|
+
create_prorations: "create_prorations";
|
|
14688
|
+
always_invoice: "always_invoice";
|
|
14689
|
+
}>;
|
|
14690
|
+
billing_mode: z.ZodOptional<z.ZodEnum<{
|
|
14691
|
+
classic: "classic";
|
|
14692
|
+
flexible: "flexible";
|
|
14693
|
+
}>>;
|
|
14694
|
+
collection_method: z.ZodEnum<{
|
|
14695
|
+
charge_automatically: "charge_automatically";
|
|
14696
|
+
send_invoice: "send_invoice";
|
|
14697
|
+
}>;
|
|
14698
|
+
days_until_due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
14699
|
+
}, z.core.$strict>>;
|
|
13326
14700
|
currency: z.ZodString;
|
|
13327
14701
|
currency_exponent: z.ZodNumber;
|
|
13328
14702
|
subscription_id: z.ZodString;
|
|
@@ -13382,6 +14756,28 @@ declare const BillingProfileSchema: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedU
|
|
|
13382
14756
|
licensed: "licensed";
|
|
13383
14757
|
}>;
|
|
13384
14758
|
unit_amount_minor: z.ZodNullable<z.ZodString>;
|
|
14759
|
+
terms: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
14760
|
+
billing_scheme: z.ZodLiteral<"per_unit">;
|
|
14761
|
+
unit_amount_decimal: z.ZodString;
|
|
14762
|
+
transform_quantity: z.ZodNullable<z.ZodObject<{
|
|
14763
|
+
divide_by: z.ZodNumber;
|
|
14764
|
+
round: z.ZodEnum<{
|
|
14765
|
+
up: "up";
|
|
14766
|
+
down: "down";
|
|
14767
|
+
}>;
|
|
14768
|
+
}, z.core.$strict>>;
|
|
14769
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
14770
|
+
billing_scheme: z.ZodLiteral<"tiered">;
|
|
14771
|
+
tiers_mode: z.ZodEnum<{
|
|
14772
|
+
graduated: "graduated";
|
|
14773
|
+
volume: "volume";
|
|
14774
|
+
}>;
|
|
14775
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
14776
|
+
up_to: z.ZodNullable<z.ZodNumber>;
|
|
14777
|
+
unit_amount_decimal: z.ZodNullable<z.ZodString>;
|
|
14778
|
+
flat_amount_minor: z.ZodNullable<z.ZodString>;
|
|
14779
|
+
}, z.core.$strict>>;
|
|
14780
|
+
}, z.core.$strict>], "billing_scheme">>;
|
|
13385
14781
|
}, z.core.$strict>;
|
|
13386
14782
|
quantity: z.ZodNumber;
|
|
13387
14783
|
trial_end_at: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
@@ -13390,6 +14786,23 @@ declare const BillingProfileSchema: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedU
|
|
|
13390
14786
|
complete: "complete";
|
|
13391
14787
|
partial: "partial";
|
|
13392
14788
|
}>;
|
|
14789
|
+
recurrence: z.ZodOptional<z.ZodObject<{
|
|
14790
|
+
billing_cycle_anchor_at: z.ZodISODateTime;
|
|
14791
|
+
proration_behavior: z.ZodEnum<{
|
|
14792
|
+
none: "none";
|
|
14793
|
+
create_prorations: "create_prorations";
|
|
14794
|
+
always_invoice: "always_invoice";
|
|
14795
|
+
}>;
|
|
14796
|
+
billing_mode: z.ZodOptional<z.ZodEnum<{
|
|
14797
|
+
classic: "classic";
|
|
14798
|
+
flexible: "flexible";
|
|
14799
|
+
}>>;
|
|
14800
|
+
collection_method: z.ZodEnum<{
|
|
14801
|
+
charge_automatically: "charge_automatically";
|
|
14802
|
+
send_invoice: "send_invoice";
|
|
14803
|
+
}>;
|
|
14804
|
+
days_until_due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
14805
|
+
}, z.core.$strict>>;
|
|
13393
14806
|
currency: z.ZodString;
|
|
13394
14807
|
currency_exponent: z.ZodNumber;
|
|
13395
14808
|
subscription_id: z.ZodString;
|
|
@@ -13554,6 +14967,28 @@ declare const BillingProfileSchema: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedU
|
|
|
13554
14967
|
licensed: "licensed";
|
|
13555
14968
|
}>;
|
|
13556
14969
|
unit_amount_minor: z.ZodNullable<z.ZodString>;
|
|
14970
|
+
terms: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
14971
|
+
billing_scheme: z.ZodLiteral<"per_unit">;
|
|
14972
|
+
unit_amount_decimal: z.ZodString;
|
|
14973
|
+
transform_quantity: z.ZodNullable<z.ZodObject<{
|
|
14974
|
+
divide_by: z.ZodNumber;
|
|
14975
|
+
round: z.ZodEnum<{
|
|
14976
|
+
up: "up";
|
|
14977
|
+
down: "down";
|
|
14978
|
+
}>;
|
|
14979
|
+
}, z.core.$strict>>;
|
|
14980
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
14981
|
+
billing_scheme: z.ZodLiteral<"tiered">;
|
|
14982
|
+
tiers_mode: z.ZodEnum<{
|
|
14983
|
+
graduated: "graduated";
|
|
14984
|
+
volume: "volume";
|
|
14985
|
+
}>;
|
|
14986
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
14987
|
+
up_to: z.ZodNullable<z.ZodNumber>;
|
|
14988
|
+
unit_amount_decimal: z.ZodNullable<z.ZodString>;
|
|
14989
|
+
flat_amount_minor: z.ZodNullable<z.ZodString>;
|
|
14990
|
+
}, z.core.$strict>>;
|
|
14991
|
+
}, z.core.$strict>], "billing_scheme">>;
|
|
13557
14992
|
}, z.core.$strict>;
|
|
13558
14993
|
quantity: z.ZodNumber;
|
|
13559
14994
|
trial_end_at: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
@@ -13562,6 +14997,23 @@ declare const BillingProfileSchema: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedU
|
|
|
13562
14997
|
complete: "complete";
|
|
13563
14998
|
partial: "partial";
|
|
13564
14999
|
}>;
|
|
15000
|
+
recurrence: z.ZodOptional<z.ZodObject<{
|
|
15001
|
+
billing_cycle_anchor_at: z.ZodISODateTime;
|
|
15002
|
+
proration_behavior: z.ZodEnum<{
|
|
15003
|
+
none: "none";
|
|
15004
|
+
create_prorations: "create_prorations";
|
|
15005
|
+
always_invoice: "always_invoice";
|
|
15006
|
+
}>;
|
|
15007
|
+
billing_mode: z.ZodOptional<z.ZodEnum<{
|
|
15008
|
+
classic: "classic";
|
|
15009
|
+
flexible: "flexible";
|
|
15010
|
+
}>>;
|
|
15011
|
+
collection_method: z.ZodEnum<{
|
|
15012
|
+
charge_automatically: "charge_automatically";
|
|
15013
|
+
send_invoice: "send_invoice";
|
|
15014
|
+
}>;
|
|
15015
|
+
days_until_due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
15016
|
+
}, z.core.$strict>>;
|
|
13565
15017
|
currency: z.ZodString;
|
|
13566
15018
|
currency_exponent: z.ZodNumber;
|
|
13567
15019
|
subscription_id: z.ZodString;
|
|
@@ -13621,6 +15073,28 @@ declare const BillingProfileSchema: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedU
|
|
|
13621
15073
|
licensed: "licensed";
|
|
13622
15074
|
}>;
|
|
13623
15075
|
unit_amount_minor: z.ZodNullable<z.ZodString>;
|
|
15076
|
+
terms: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
15077
|
+
billing_scheme: z.ZodLiteral<"per_unit">;
|
|
15078
|
+
unit_amount_decimal: z.ZodString;
|
|
15079
|
+
transform_quantity: z.ZodNullable<z.ZodObject<{
|
|
15080
|
+
divide_by: z.ZodNumber;
|
|
15081
|
+
round: z.ZodEnum<{
|
|
15082
|
+
up: "up";
|
|
15083
|
+
down: "down";
|
|
15084
|
+
}>;
|
|
15085
|
+
}, z.core.$strict>>;
|
|
15086
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
15087
|
+
billing_scheme: z.ZodLiteral<"tiered">;
|
|
15088
|
+
tiers_mode: z.ZodEnum<{
|
|
15089
|
+
graduated: "graduated";
|
|
15090
|
+
volume: "volume";
|
|
15091
|
+
}>;
|
|
15092
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
15093
|
+
up_to: z.ZodNullable<z.ZodNumber>;
|
|
15094
|
+
unit_amount_decimal: z.ZodNullable<z.ZodString>;
|
|
15095
|
+
flat_amount_minor: z.ZodNullable<z.ZodString>;
|
|
15096
|
+
}, z.core.$strict>>;
|
|
15097
|
+
}, z.core.$strict>], "billing_scheme">>;
|
|
13624
15098
|
}, z.core.$strict>;
|
|
13625
15099
|
quantity: z.ZodNumber;
|
|
13626
15100
|
trial_end_at: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
@@ -13629,6 +15103,23 @@ declare const BillingProfileSchema: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedU
|
|
|
13629
15103
|
complete: "complete";
|
|
13630
15104
|
partial: "partial";
|
|
13631
15105
|
}>;
|
|
15106
|
+
recurrence: z.ZodOptional<z.ZodObject<{
|
|
15107
|
+
billing_cycle_anchor_at: z.ZodISODateTime;
|
|
15108
|
+
proration_behavior: z.ZodEnum<{
|
|
15109
|
+
none: "none";
|
|
15110
|
+
create_prorations: "create_prorations";
|
|
15111
|
+
always_invoice: "always_invoice";
|
|
15112
|
+
}>;
|
|
15113
|
+
billing_mode: z.ZodOptional<z.ZodEnum<{
|
|
15114
|
+
classic: "classic";
|
|
15115
|
+
flexible: "flexible";
|
|
15116
|
+
}>>;
|
|
15117
|
+
collection_method: z.ZodEnum<{
|
|
15118
|
+
charge_automatically: "charge_automatically";
|
|
15119
|
+
send_invoice: "send_invoice";
|
|
15120
|
+
}>;
|
|
15121
|
+
days_until_due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
15122
|
+
}, z.core.$strict>>;
|
|
13632
15123
|
currency: z.ZodString;
|
|
13633
15124
|
currency_exponent: z.ZodNumber;
|
|
13634
15125
|
subscription_id: z.ZodString;
|
|
@@ -13754,6 +15245,28 @@ declare const BillingProfileSchema: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedU
|
|
|
13754
15245
|
licensed: "licensed";
|
|
13755
15246
|
}>;
|
|
13756
15247
|
unit_amount_minor: z.ZodNullable<z.ZodString>;
|
|
15248
|
+
terms: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
15249
|
+
billing_scheme: z.ZodLiteral<"per_unit">;
|
|
15250
|
+
unit_amount_decimal: z.ZodString;
|
|
15251
|
+
transform_quantity: z.ZodNullable<z.ZodObject<{
|
|
15252
|
+
divide_by: z.ZodNumber;
|
|
15253
|
+
round: z.ZodEnum<{
|
|
15254
|
+
up: "up";
|
|
15255
|
+
down: "down";
|
|
15256
|
+
}>;
|
|
15257
|
+
}, z.core.$strict>>;
|
|
15258
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
15259
|
+
billing_scheme: z.ZodLiteral<"tiered">;
|
|
15260
|
+
tiers_mode: z.ZodEnum<{
|
|
15261
|
+
graduated: "graduated";
|
|
15262
|
+
volume: "volume";
|
|
15263
|
+
}>;
|
|
15264
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
15265
|
+
up_to: z.ZodNullable<z.ZodNumber>;
|
|
15266
|
+
unit_amount_decimal: z.ZodNullable<z.ZodString>;
|
|
15267
|
+
flat_amount_minor: z.ZodNullable<z.ZodString>;
|
|
15268
|
+
}, z.core.$strict>>;
|
|
15269
|
+
}, z.core.$strict>], "billing_scheme">>;
|
|
13757
15270
|
}, z.core.$strict>;
|
|
13758
15271
|
quantity: z.ZodNumber;
|
|
13759
15272
|
trial_end_at: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
@@ -13762,6 +15275,23 @@ declare const BillingProfileSchema: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedU
|
|
|
13762
15275
|
complete: "complete";
|
|
13763
15276
|
partial: "partial";
|
|
13764
15277
|
}>;
|
|
15278
|
+
recurrence: z.ZodOptional<z.ZodObject<{
|
|
15279
|
+
billing_cycle_anchor_at: z.ZodISODateTime;
|
|
15280
|
+
proration_behavior: z.ZodEnum<{
|
|
15281
|
+
none: "none";
|
|
15282
|
+
create_prorations: "create_prorations";
|
|
15283
|
+
always_invoice: "always_invoice";
|
|
15284
|
+
}>;
|
|
15285
|
+
billing_mode: z.ZodOptional<z.ZodEnum<{
|
|
15286
|
+
classic: "classic";
|
|
15287
|
+
flexible: "flexible";
|
|
15288
|
+
}>>;
|
|
15289
|
+
collection_method: z.ZodEnum<{
|
|
15290
|
+
charge_automatically: "charge_automatically";
|
|
15291
|
+
send_invoice: "send_invoice";
|
|
15292
|
+
}>;
|
|
15293
|
+
days_until_due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
15294
|
+
}, z.core.$strict>>;
|
|
13765
15295
|
currency: z.ZodString;
|
|
13766
15296
|
currency_exponent: z.ZodNumber;
|
|
13767
15297
|
subscription_id: z.ZodString;
|
|
@@ -13819,6 +15349,28 @@ declare const BillingProfileSchema: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedU
|
|
|
13819
15349
|
licensed: "licensed";
|
|
13820
15350
|
}>;
|
|
13821
15351
|
unit_amount_minor: z.ZodNullable<z.ZodString>;
|
|
15352
|
+
terms: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
15353
|
+
billing_scheme: z.ZodLiteral<"per_unit">;
|
|
15354
|
+
unit_amount_decimal: z.ZodString;
|
|
15355
|
+
transform_quantity: z.ZodNullable<z.ZodObject<{
|
|
15356
|
+
divide_by: z.ZodNumber;
|
|
15357
|
+
round: z.ZodEnum<{
|
|
15358
|
+
up: "up";
|
|
15359
|
+
down: "down";
|
|
15360
|
+
}>;
|
|
15361
|
+
}, z.core.$strict>>;
|
|
15362
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
15363
|
+
billing_scheme: z.ZodLiteral<"tiered">;
|
|
15364
|
+
tiers_mode: z.ZodEnum<{
|
|
15365
|
+
graduated: "graduated";
|
|
15366
|
+
volume: "volume";
|
|
15367
|
+
}>;
|
|
15368
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
15369
|
+
up_to: z.ZodNullable<z.ZodNumber>;
|
|
15370
|
+
unit_amount_decimal: z.ZodNullable<z.ZodString>;
|
|
15371
|
+
flat_amount_minor: z.ZodNullable<z.ZodString>;
|
|
15372
|
+
}, z.core.$strict>>;
|
|
15373
|
+
}, z.core.$strict>], "billing_scheme">>;
|
|
13822
15374
|
}, z.core.$strict>;
|
|
13823
15375
|
quantity: z.ZodNumber;
|
|
13824
15376
|
trial_end_at: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
@@ -13828,6 +15380,23 @@ declare const BillingProfileSchema: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedU
|
|
|
13828
15380
|
complete: "complete";
|
|
13829
15381
|
partial: "partial";
|
|
13830
15382
|
}>;
|
|
15383
|
+
recurrence: z.ZodOptional<z.ZodObject<{
|
|
15384
|
+
billing_cycle_anchor_at: z.ZodISODateTime;
|
|
15385
|
+
proration_behavior: z.ZodEnum<{
|
|
15386
|
+
none: "none";
|
|
15387
|
+
create_prorations: "create_prorations";
|
|
15388
|
+
always_invoice: "always_invoice";
|
|
15389
|
+
}>;
|
|
15390
|
+
billing_mode: z.ZodOptional<z.ZodEnum<{
|
|
15391
|
+
classic: "classic";
|
|
15392
|
+
flexible: "flexible";
|
|
15393
|
+
}>>;
|
|
15394
|
+
collection_method: z.ZodEnum<{
|
|
15395
|
+
charge_automatically: "charge_automatically";
|
|
15396
|
+
send_invoice: "send_invoice";
|
|
15397
|
+
}>;
|
|
15398
|
+
days_until_due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
15399
|
+
}, z.core.$strict>>;
|
|
13831
15400
|
currency: z.ZodString;
|
|
13832
15401
|
currency_exponent: z.ZodNumber;
|
|
13833
15402
|
schedule_id: z.ZodString;
|
|
@@ -13953,6 +15522,11 @@ declare const BillingProfileSchema: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedU
|
|
|
13953
15522
|
complete: "complete";
|
|
13954
15523
|
partial: "partial";
|
|
13955
15524
|
}>;
|
|
15525
|
+
payment_count: z.ZodOptional<z.ZodNumber>;
|
|
15526
|
+
payments_coverage: z.ZodOptional<z.ZodEnum<{
|
|
15527
|
+
complete: "complete";
|
|
15528
|
+
partial: "partial";
|
|
15529
|
+
}>>;
|
|
13956
15530
|
currency: z.ZodString;
|
|
13957
15531
|
currency_exponent: z.ZodNumber;
|
|
13958
15532
|
invoice_id: z.ZodString;
|
|
@@ -14006,6 +15580,28 @@ declare const BillingProfileSchema: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedU
|
|
|
14006
15580
|
licensed: "licensed";
|
|
14007
15581
|
}>;
|
|
14008
15582
|
unit_amount_minor: z.ZodNullable<z.ZodString>;
|
|
15583
|
+
terms: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
15584
|
+
billing_scheme: z.ZodLiteral<"per_unit">;
|
|
15585
|
+
unit_amount_decimal: z.ZodString;
|
|
15586
|
+
transform_quantity: z.ZodNullable<z.ZodObject<{
|
|
15587
|
+
divide_by: z.ZodNumber;
|
|
15588
|
+
round: z.ZodEnum<{
|
|
15589
|
+
up: "up";
|
|
15590
|
+
down: "down";
|
|
15591
|
+
}>;
|
|
15592
|
+
}, z.core.$strict>>;
|
|
15593
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
15594
|
+
billing_scheme: z.ZodLiteral<"tiered">;
|
|
15595
|
+
tiers_mode: z.ZodEnum<{
|
|
15596
|
+
graduated: "graduated";
|
|
15597
|
+
volume: "volume";
|
|
15598
|
+
}>;
|
|
15599
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
15600
|
+
up_to: z.ZodNullable<z.ZodNumber>;
|
|
15601
|
+
unit_amount_decimal: z.ZodNullable<z.ZodString>;
|
|
15602
|
+
flat_amount_minor: z.ZodNullable<z.ZodString>;
|
|
15603
|
+
}, z.core.$strict>>;
|
|
15604
|
+
}, z.core.$strict>], "billing_scheme">>;
|
|
14009
15605
|
}, z.core.$strict>;
|
|
14010
15606
|
quantity: z.ZodNumber;
|
|
14011
15607
|
service_period_start_at: z.ZodISODateTime;
|
|
@@ -14112,16 +15708,148 @@ declare const BillingProfileSchema: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedU
|
|
|
14112
15708
|
legacy_billing_ref: z.ZodOptional<z.ZodString>;
|
|
14113
15709
|
}, z.core.$strict>;
|
|
14114
15710
|
customer_ref: z.ZodString;
|
|
15711
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
15712
|
+
economic_owner: z.ZodOptional<z.ZodObject<{
|
|
15713
|
+
owner_account_id: z.ZodString;
|
|
15714
|
+
charge_type: z.ZodEnum<{
|
|
15715
|
+
platform: "platform";
|
|
15716
|
+
direct: "direct";
|
|
15717
|
+
destination: "destination";
|
|
15718
|
+
separate_charges_and_transfers: "separate_charges_and_transfers";
|
|
15719
|
+
}>;
|
|
15720
|
+
on_behalf_of_account_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15721
|
+
transfer_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15722
|
+
}, z.core.$strict>>;
|
|
15723
|
+
amount_requested_minor: z.ZodString;
|
|
15724
|
+
amount_paid_minor: z.ZodNullable<z.ZodString>;
|
|
15725
|
+
paid_at: z.ZodNullable<z.ZodISODateTime>;
|
|
15726
|
+
currency: z.ZodString;
|
|
15727
|
+
currency_exponent: z.ZodNumber;
|
|
15728
|
+
invoice_payment_id: z.ZodString;
|
|
15729
|
+
invoice_id: z.ZodString;
|
|
15730
|
+
payment: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
15731
|
+
type: z.ZodLiteral<"payment_intent">;
|
|
15732
|
+
payment_id: z.ZodString;
|
|
15733
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
15734
|
+
type: z.ZodLiteral<"charge">;
|
|
15735
|
+
payment_id: z.ZodString;
|
|
15736
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
15737
|
+
type: z.ZodLiteral<"out_of_band">;
|
|
15738
|
+
}, z.core.$strict>], "type">;
|
|
15739
|
+
status: z.ZodEnum<{
|
|
15740
|
+
canceled: "canceled";
|
|
15741
|
+
paid: "paid";
|
|
15742
|
+
open: "open";
|
|
15743
|
+
}>;
|
|
15744
|
+
is_default: z.ZodOptional<z.ZodBoolean>;
|
|
15745
|
+
effective_at: z.ZodISODateTime;
|
|
15746
|
+
source_recorded_at: z.ZodISODateTime;
|
|
15747
|
+
observed_at: z.ZodISODateTime;
|
|
15748
|
+
profile: z.ZodLiteral<"invoice">;
|
|
15749
|
+
kind: z.ZodLiteral<"payment_allocation">;
|
|
15750
|
+
profile_version: z.ZodLiteral<1>;
|
|
15751
|
+
source: z.ZodObject<{
|
|
15752
|
+
tenant_id: z.ZodString;
|
|
15753
|
+
account_id: z.ZodString;
|
|
15754
|
+
livemode: z.ZodBoolean;
|
|
15755
|
+
provider: z.ZodEnum<{
|
|
15756
|
+
stripe: "stripe";
|
|
15757
|
+
}>;
|
|
15758
|
+
simulation_id: z.ZodOptional<z.ZodString>;
|
|
15759
|
+
}, z.core.$strict>;
|
|
15760
|
+
occurrence: z.ZodObject<{
|
|
15761
|
+
identity_version: z.ZodLiteral<2>;
|
|
15762
|
+
occurrence_key: z.ZodString;
|
|
15763
|
+
source_revision: z.ZodString;
|
|
15764
|
+
source_order: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
15765
|
+
supersedes_revision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15766
|
+
delivery_id: z.ZodOptional<z.ZodString>;
|
|
15767
|
+
legacy_billing_ref: z.ZodOptional<z.ZodString>;
|
|
15768
|
+
}, z.core.$strict>;
|
|
15769
|
+
customer_ref: z.ZodString;
|
|
15770
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
15771
|
+
amount_due_minor: z.ZodString;
|
|
15772
|
+
amount_paid_minor: z.ZodString;
|
|
15773
|
+
amount_remaining_minor: z.ZodString;
|
|
15774
|
+
due_at: z.ZodNullable<z.ZodISODateTime>;
|
|
15775
|
+
paid_out_of_band: z.ZodBoolean;
|
|
15776
|
+
settlement_basis: z.ZodNullable<z.ZodEnum<{
|
|
15777
|
+
mixed: "mixed";
|
|
15778
|
+
payments: "payments";
|
|
15779
|
+
zero_total: "zero_total";
|
|
15780
|
+
customer_balance: "customer_balance";
|
|
15781
|
+
credit_note: "credit_note";
|
|
15782
|
+
rollover: "rollover";
|
|
15783
|
+
out_of_band: "out_of_band";
|
|
15784
|
+
}>>;
|
|
15785
|
+
currency: z.ZodString;
|
|
15786
|
+
currency_exponent: z.ZodNumber;
|
|
15787
|
+
invoice_id: z.ZodString;
|
|
15788
|
+
subscription_id: z.ZodNullable<z.ZodString>;
|
|
15789
|
+
from_status: z.ZodEnum<{
|
|
15790
|
+
void: "void";
|
|
15791
|
+
paid: "paid";
|
|
15792
|
+
draft: "draft";
|
|
15793
|
+
open: "open";
|
|
15794
|
+
uncollectible: "uncollectible";
|
|
15795
|
+
}>;
|
|
15796
|
+
to_status: z.ZodEnum<{
|
|
15797
|
+
void: "void";
|
|
15798
|
+
paid: "paid";
|
|
15799
|
+
draft: "draft";
|
|
15800
|
+
open: "open";
|
|
15801
|
+
uncollectible: "uncollectible";
|
|
15802
|
+
}>;
|
|
15803
|
+
effective_at: z.ZodISODateTime;
|
|
15804
|
+
source_recorded_at: z.ZodISODateTime;
|
|
15805
|
+
observed_at: z.ZodISODateTime;
|
|
15806
|
+
profile: z.ZodLiteral<"invoice">;
|
|
15807
|
+
kind: z.ZodLiteral<"status_transition">;
|
|
15808
|
+
profile_version: z.ZodLiteral<1>;
|
|
15809
|
+
source: z.ZodObject<{
|
|
15810
|
+
tenant_id: z.ZodString;
|
|
15811
|
+
account_id: z.ZodString;
|
|
15812
|
+
livemode: z.ZodBoolean;
|
|
15813
|
+
provider: z.ZodEnum<{
|
|
15814
|
+
stripe: "stripe";
|
|
15815
|
+
}>;
|
|
15816
|
+
simulation_id: z.ZodOptional<z.ZodString>;
|
|
15817
|
+
}, z.core.$strict>;
|
|
15818
|
+
occurrence: z.ZodObject<{
|
|
15819
|
+
identity_version: z.ZodLiteral<2>;
|
|
15820
|
+
occurrence_key: z.ZodString;
|
|
15821
|
+
source_revision: z.ZodString;
|
|
15822
|
+
source_order: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
15823
|
+
supersedes_revision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15824
|
+
delivery_id: z.ZodOptional<z.ZodString>;
|
|
15825
|
+
legacy_billing_ref: z.ZodOptional<z.ZodString>;
|
|
15826
|
+
}, z.core.$strict>;
|
|
15827
|
+
customer_ref: z.ZodString;
|
|
14115
15828
|
}, z.core.$strict>], "kind">, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
14116
15829
|
amount_captured_minor: z.ZodString;
|
|
14117
15830
|
amount_requested_minor: z.ZodOptional<z.ZodString>;
|
|
15831
|
+
allocations_coverage: z.ZodOptional<z.ZodEnum<{
|
|
15832
|
+
complete: "complete";
|
|
15833
|
+
partial: "partial";
|
|
15834
|
+
}>>;
|
|
15835
|
+
economic_owner: z.ZodOptional<z.ZodObject<{
|
|
15836
|
+
owner_account_id: z.ZodString;
|
|
15837
|
+
charge_type: z.ZodEnum<{
|
|
15838
|
+
platform: "platform";
|
|
15839
|
+
direct: "direct";
|
|
15840
|
+
destination: "destination";
|
|
15841
|
+
separate_charges_and_transfers: "separate_charges_and_transfers";
|
|
15842
|
+
}>;
|
|
15843
|
+
on_behalf_of_account_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15844
|
+
transfer_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15845
|
+
}, z.core.$strict>>;
|
|
14118
15846
|
currency: z.ZodString;
|
|
14119
15847
|
currency_exponent: z.ZodNumber;
|
|
14120
15848
|
payment_id: z.ZodString;
|
|
14121
15849
|
observed_object_type: z.ZodEnum<{
|
|
14122
|
-
invoice: "invoice";
|
|
14123
15850
|
payment_intent: "payment_intent";
|
|
14124
15851
|
charge: "charge";
|
|
15852
|
+
invoice: "invoice";
|
|
14125
15853
|
invoice_payment: "invoice_payment";
|
|
14126
15854
|
checkout_session: "checkout_session";
|
|
14127
15855
|
}>;
|
|
@@ -14154,13 +15882,24 @@ declare const BillingProfileSchema: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedU
|
|
|
14154
15882
|
}, z.core.$strict>, z.ZodObject<{
|
|
14155
15883
|
amount_requested_minor: z.ZodString;
|
|
14156
15884
|
failure_code: z.ZodString;
|
|
15885
|
+
economic_owner: z.ZodOptional<z.ZodObject<{
|
|
15886
|
+
owner_account_id: z.ZodString;
|
|
15887
|
+
charge_type: z.ZodEnum<{
|
|
15888
|
+
platform: "platform";
|
|
15889
|
+
direct: "direct";
|
|
15890
|
+
destination: "destination";
|
|
15891
|
+
separate_charges_and_transfers: "separate_charges_and_transfers";
|
|
15892
|
+
}>;
|
|
15893
|
+
on_behalf_of_account_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15894
|
+
transfer_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15895
|
+
}, z.core.$strict>>;
|
|
14157
15896
|
currency: z.ZodString;
|
|
14158
15897
|
currency_exponent: z.ZodNumber;
|
|
14159
15898
|
payment_id: z.ZodString;
|
|
14160
15899
|
observed_object_type: z.ZodEnum<{
|
|
14161
|
-
invoice: "invoice";
|
|
14162
15900
|
payment_intent: "payment_intent";
|
|
14163
15901
|
charge: "charge";
|
|
15902
|
+
invoice: "invoice";
|
|
14164
15903
|
invoice_payment: "invoice_payment";
|
|
14165
15904
|
checkout_session: "checkout_session";
|
|
14166
15905
|
}>;
|
|
@@ -14192,13 +15931,24 @@ declare const BillingProfileSchema: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedU
|
|
|
14192
15931
|
customer_ref: z.ZodString;
|
|
14193
15932
|
}, z.core.$strict>, z.ZodObject<{
|
|
14194
15933
|
amount_requested_minor: z.ZodString;
|
|
15934
|
+
economic_owner: z.ZodOptional<z.ZodObject<{
|
|
15935
|
+
owner_account_id: z.ZodString;
|
|
15936
|
+
charge_type: z.ZodEnum<{
|
|
15937
|
+
platform: "platform";
|
|
15938
|
+
direct: "direct";
|
|
15939
|
+
destination: "destination";
|
|
15940
|
+
separate_charges_and_transfers: "separate_charges_and_transfers";
|
|
15941
|
+
}>;
|
|
15942
|
+
on_behalf_of_account_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15943
|
+
transfer_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15944
|
+
}, z.core.$strict>>;
|
|
14195
15945
|
currency: z.ZodString;
|
|
14196
15946
|
currency_exponent: z.ZodNumber;
|
|
14197
15947
|
payment_id: z.ZodString;
|
|
14198
15948
|
observed_object_type: z.ZodEnum<{
|
|
14199
|
-
invoice: "invoice";
|
|
14200
15949
|
payment_intent: "payment_intent";
|
|
14201
15950
|
charge: "charge";
|
|
15951
|
+
invoice: "invoice";
|
|
14202
15952
|
invoice_payment: "invoice_payment";
|
|
14203
15953
|
checkout_session: "checkout_session";
|
|
14204
15954
|
}>;
|
|
@@ -14230,13 +15980,24 @@ declare const BillingProfileSchema: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedU
|
|
|
14230
15980
|
customer_ref: z.ZodString;
|
|
14231
15981
|
}, z.core.$strict>, z.ZodObject<{
|
|
14232
15982
|
amount_requested_minor: z.ZodString;
|
|
15983
|
+
economic_owner: z.ZodOptional<z.ZodObject<{
|
|
15984
|
+
owner_account_id: z.ZodString;
|
|
15985
|
+
charge_type: z.ZodEnum<{
|
|
15986
|
+
platform: "platform";
|
|
15987
|
+
direct: "direct";
|
|
15988
|
+
destination: "destination";
|
|
15989
|
+
separate_charges_and_transfers: "separate_charges_and_transfers";
|
|
15990
|
+
}>;
|
|
15991
|
+
on_behalf_of_account_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15992
|
+
transfer_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15993
|
+
}, z.core.$strict>>;
|
|
14233
15994
|
currency: z.ZodString;
|
|
14234
15995
|
currency_exponent: z.ZodNumber;
|
|
14235
15996
|
payment_id: z.ZodString;
|
|
14236
15997
|
observed_object_type: z.ZodEnum<{
|
|
14237
|
-
invoice: "invoice";
|
|
14238
15998
|
payment_intent: "payment_intent";
|
|
14239
15999
|
charge: "charge";
|
|
16000
|
+
invoice: "invoice";
|
|
14240
16001
|
invoice_payment: "invoice_payment";
|
|
14241
16002
|
checkout_session: "checkout_session";
|
|
14242
16003
|
}>;
|
|
@@ -14267,6 +16028,17 @@ declare const BillingProfileSchema: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedU
|
|
|
14267
16028
|
}, z.core.$strict>;
|
|
14268
16029
|
customer_ref: z.ZodString;
|
|
14269
16030
|
}, z.core.$strict>], "kind">, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
16031
|
+
economic_owner: z.ZodOptional<z.ZodObject<{
|
|
16032
|
+
owner_account_id: z.ZodString;
|
|
16033
|
+
charge_type: z.ZodEnum<{
|
|
16034
|
+
platform: "platform";
|
|
16035
|
+
direct: "direct";
|
|
16036
|
+
destination: "destination";
|
|
16037
|
+
separate_charges_and_transfers: "separate_charges_and_transfers";
|
|
16038
|
+
}>;
|
|
16039
|
+
on_behalf_of_account_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16040
|
+
transfer_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16041
|
+
}, z.core.$strict>>;
|
|
14270
16042
|
amount_minor: z.ZodString;
|
|
14271
16043
|
reason: z.ZodNullable<z.ZodEnum<{
|
|
14272
16044
|
duplicate: "duplicate";
|
|
@@ -14487,6 +16259,17 @@ declare const BillingProfileSchema: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedU
|
|
|
14487
16259
|
invoice_credit_balance: "invoice_credit_balance";
|
|
14488
16260
|
}>;
|
|
14489
16261
|
invoice_id: z.ZodNullable<z.ZodString>;
|
|
16262
|
+
adjustment_source: z.ZodOptional<z.ZodEnum<{
|
|
16263
|
+
credit_note: "credit_note";
|
|
16264
|
+
rollover: "rollover";
|
|
16265
|
+
other: "other";
|
|
16266
|
+
invoice_applied: "invoice_applied";
|
|
16267
|
+
invoice_unapplied: "invoice_unapplied";
|
|
16268
|
+
overpayment: "overpayment";
|
|
16269
|
+
manual_adjustment: "manual_adjustment";
|
|
16270
|
+
migration: "migration";
|
|
16271
|
+
}>>;
|
|
16272
|
+
credit_note_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14490
16273
|
currency: z.ZodString;
|
|
14491
16274
|
currency_exponent: z.ZodNumber;
|
|
14492
16275
|
balance_transaction_id: z.ZodString;
|
|
@@ -14553,6 +16336,7 @@ declare const BillingProfileSchema: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedU
|
|
|
14553
16336
|
}, z.core.$strict>, z.ZodObject<{
|
|
14554
16337
|
invoice_id: z.ZodString;
|
|
14555
16338
|
amount_minor: z.ZodString;
|
|
16339
|
+
funding_occurrence_key: z.ZodOptional<z.ZodString>;
|
|
14556
16340
|
currency: z.ZodString;
|
|
14557
16341
|
currency_exponent: z.ZodNumber;
|
|
14558
16342
|
grant_id: z.ZodString;
|
|
@@ -14620,6 +16404,22 @@ declare const BillingProfileSchema: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedU
|
|
|
14620
16404
|
}, z.core.$strict>;
|
|
14621
16405
|
customer_ref: z.ZodString;
|
|
14622
16406
|
}, z.core.$strict>], "kind">, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
16407
|
+
settlement_amount: z.ZodOptional<z.ZodObject<{
|
|
16408
|
+
amount_minor: z.ZodString;
|
|
16409
|
+
currency: z.ZodString;
|
|
16410
|
+
currency_exponent: z.ZodNumber;
|
|
16411
|
+
}, z.core.$strict>>;
|
|
16412
|
+
economic_owner: z.ZodOptional<z.ZodObject<{
|
|
16413
|
+
owner_account_id: z.ZodString;
|
|
16414
|
+
charge_type: z.ZodEnum<{
|
|
16415
|
+
platform: "platform";
|
|
16416
|
+
direct: "direct";
|
|
16417
|
+
destination: "destination";
|
|
16418
|
+
separate_charges_and_transfers: "separate_charges_and_transfers";
|
|
16419
|
+
}>;
|
|
16420
|
+
on_behalf_of_account_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16421
|
+
transfer_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16422
|
+
}, z.core.$strict>>;
|
|
14623
16423
|
amount_minor: z.ZodString;
|
|
14624
16424
|
currency: z.ZodString;
|
|
14625
16425
|
currency_exponent: z.ZodNumber;
|
|
@@ -14652,6 +16452,23 @@ declare const BillingProfileSchema: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedU
|
|
|
14652
16452
|
}, z.core.$strict>;
|
|
14653
16453
|
customer_ref: z.ZodString;
|
|
14654
16454
|
}, z.core.$strict>, z.ZodObject<{
|
|
16455
|
+
reverses_occurrence_key: z.ZodOptional<z.ZodString>;
|
|
16456
|
+
settlement_amount: z.ZodOptional<z.ZodObject<{
|
|
16457
|
+
amount_minor: z.ZodString;
|
|
16458
|
+
currency: z.ZodString;
|
|
16459
|
+
currency_exponent: z.ZodNumber;
|
|
16460
|
+
}, z.core.$strict>>;
|
|
16461
|
+
economic_owner: z.ZodOptional<z.ZodObject<{
|
|
16462
|
+
owner_account_id: z.ZodString;
|
|
16463
|
+
charge_type: z.ZodEnum<{
|
|
16464
|
+
platform: "platform";
|
|
16465
|
+
direct: "direct";
|
|
16466
|
+
destination: "destination";
|
|
16467
|
+
separate_charges_and_transfers: "separate_charges_and_transfers";
|
|
16468
|
+
}>;
|
|
16469
|
+
on_behalf_of_account_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16470
|
+
transfer_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16471
|
+
}, z.core.$strict>>;
|
|
14655
16472
|
amount_minor: z.ZodString;
|
|
14656
16473
|
currency: z.ZodString;
|
|
14657
16474
|
currency_exponent: z.ZodNumber;
|
|
@@ -14721,6 +16538,22 @@ declare const BillingProfileSchema: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedU
|
|
|
14721
16538
|
}, z.core.$strict>;
|
|
14722
16539
|
customer_ref: z.ZodString;
|
|
14723
16540
|
}, z.core.$strict>, z.ZodObject<{
|
|
16541
|
+
settlement_amount: z.ZodOptional<z.ZodObject<{
|
|
16542
|
+
amount_minor: z.ZodString;
|
|
16543
|
+
currency: z.ZodString;
|
|
16544
|
+
currency_exponent: z.ZodNumber;
|
|
16545
|
+
}, z.core.$strict>>;
|
|
16546
|
+
economic_owner: z.ZodOptional<z.ZodObject<{
|
|
16547
|
+
owner_account_id: z.ZodString;
|
|
16548
|
+
charge_type: z.ZodEnum<{
|
|
16549
|
+
platform: "platform";
|
|
16550
|
+
direct: "direct";
|
|
16551
|
+
destination: "destination";
|
|
16552
|
+
separate_charges_and_transfers: "separate_charges_and_transfers";
|
|
16553
|
+
}>;
|
|
16554
|
+
on_behalf_of_account_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16555
|
+
transfer_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16556
|
+
}, z.core.$strict>>;
|
|
14724
16557
|
amount_minor: z.ZodString;
|
|
14725
16558
|
currency: z.ZodString;
|
|
14726
16559
|
currency_exponent: z.ZodNumber;
|
|
@@ -14755,11 +16588,23 @@ declare const BillingProfileSchema: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedU
|
|
|
14755
16588
|
type BillingProfile$1 = z.infer<typeof BillingProfileSchema>;
|
|
14756
16589
|
interface BillingCoverageGap {
|
|
14757
16590
|
occurrence_key: string;
|
|
14758
|
-
|
|
14759
|
-
|
|
16591
|
+
/** TASK-28 adds `payments` (InvoicePayment pages), `allocations` (a payment's edges) and `price_terms`. */
|
|
16592
|
+
field: 'items' | 'lines' | 'phases' | 'payments' | 'allocations' | 'price_terms';
|
|
16593
|
+
reason: 'partial_hydration' | 'missing_price_terms';
|
|
14760
16594
|
}
|
|
14761
|
-
/**
|
|
16595
|
+
/**
|
|
16596
|
+
* Lists a profile declares partially hydrated, and prices whose exact terms
|
|
16597
|
+
* are missing. A gap is reported, never read as a smaller complete set or
|
|
16598
|
+
* as a `unit * quantity` guess.
|
|
16599
|
+
*/
|
|
14762
16600
|
declare function billingProfileCoverageGaps(profile: BillingProfile$1): BillingCoverageGap[];
|
|
16601
|
+
/**
|
|
16602
|
+
* Whether a money movement counts as a sale IN THE SCOPE THAT OBSERVED IT.
|
|
16603
|
+
* `owner` — the observing provider account owns it; `non_owner` — another
|
|
16604
|
+
* account does (a Connect transfer/destination view: never a second sale);
|
|
16605
|
+
* `unknown` — no ownership evidence, an explicit coverage gap.
|
|
16606
|
+
*/
|
|
16607
|
+
declare function billingEconomicOwnership(profile: BillingProfile$1): 'owner' | 'non_owner' | 'unknown';
|
|
14763
16608
|
/**
|
|
14764
16609
|
* Reduce a stream of profile revisions to one entry per logical occurrence,
|
|
14765
16610
|
* keeping the latest SOURCE revision — by `source_order` when both carry it,
|
|
@@ -14772,6 +16617,734 @@ declare function collapseBillingRevisions(profiles: readonly BillingProfile$1[])
|
|
|
14772
16617
|
ambiguous: string[];
|
|
14773
16618
|
};
|
|
14774
16619
|
|
|
16620
|
+
/**
|
|
16621
|
+
* Derived billing-accounting contracts (plan 252 TASK-28, BL-0292).
|
|
16622
|
+
*
|
|
16623
|
+
* `billing-profiles.ts` says what a PROVIDER reported. This file types what
|
|
16624
|
+
* RevTurbine keeps and derives from it, per plan 252's Schema impact:
|
|
16625
|
+
* "tenant/source/account/mode-scoped immutable accounting revisions and
|
|
16626
|
+
* policy/generation checkpoints", versioned provider→RT mappings, and the
|
|
16627
|
+
* projection/coverage/checkpoint contracts rebuilds publish.
|
|
16628
|
+
*
|
|
16629
|
+
* | Contract | What it is | Unique key (`BILLING_UNIQUE_KEYS`) |
|
|
16630
|
+
* |---|---|---|
|
|
16631
|
+
* | {@link BillingAccountingRevisionSchema} | One immutable source revision of one fact | `accounting_revision` |
|
|
16632
|
+
* | {@link BillingAccountMappingRevisionSchema} | Provider customer → RT account, effective-dated and versioned | `mapping_revision` |
|
|
16633
|
+
* | {@link BillingOutputRowKeySchema} | The identity of one derived output row | `output_generation` |
|
|
16634
|
+
* | {@link BillingGenerationSchema} | One policy-pinned derived generation, its checkpoint and reconciliation | `generation` |
|
|
16635
|
+
* | {@link BillingCoverageCheckpointSchema} | How completely one fact family is known for one scope | `coverage_checkpoint` |
|
|
16636
|
+
*
|
|
16637
|
+
* SOURCE keys vs OUTPUT keys: a source revision is what a provider said and
|
|
16638
|
+
* never changes; an output key names a derived row by WHAT it measures
|
|
16639
|
+
* (kind, scope, RT account, currency, instant, subject) and deliberately NOT
|
|
16640
|
+
* by generation — so rebuilding the same inputs twice yields identical output
|
|
16641
|
+
* keys (AC-20), and the generation id alone separates a shadow rebuild from
|
|
16642
|
+
* the active one.
|
|
16643
|
+
*
|
|
16644
|
+
* Composition with plan 248: these are HISTORY contracts. Current provider
|
|
16645
|
+
* item state stays in plan 248's `stripe_sub_item` / `stripe_sub_evidence`;
|
|
16646
|
+
* nothing here mirrors it.
|
|
16647
|
+
*
|
|
16648
|
+
* All contracts are transient (internal, server-only) until TASK-30 declares
|
|
16649
|
+
* their storage; no field is `pii`.
|
|
16650
|
+
*/
|
|
16651
|
+
|
|
16652
|
+
/** Version stamped on every derived accounting contract in this file. */
|
|
16653
|
+
declare const BILLING_ACCOUNTING_CONTRACT_VERSION = 1;
|
|
16654
|
+
/** Prefix of every derived output key, so it can never be mistaken for a source occurrence key (`bo2`). */
|
|
16655
|
+
declare const BILLING_OUTPUT_KEY_PREFIX = "bout1";
|
|
16656
|
+
/** Bound on gap / failure lists in one checkpoint. */
|
|
16657
|
+
declare const MAX_BILLING_CHECKPOINT_LIST = 250;
|
|
16658
|
+
/** The scope key of a source scope: tenant, provider, account, mode, simulation. */
|
|
16659
|
+
declare function billingSourceScopeKey(source: BillingSourceScope$1): string;
|
|
16660
|
+
/**
|
|
16661
|
+
* One immutable source revision of one billing fact, as accounting storage
|
|
16662
|
+
* keeps it. Rows are never updated: a later provider state is a NEW revision
|
|
16663
|
+
* (`supersedes_revision`), a retraction is its own `retract` occurrence. The
|
|
16664
|
+
* full profile rides beside this row (TASK-30); `fact_digest` pins its bytes,
|
|
16665
|
+
* so a replay of the same `revision_key` with different content is a
|
|
16666
|
+
* conflict, not a silent overwrite ({@link compareAccountingRevision}).
|
|
16667
|
+
*/
|
|
16668
|
+
declare const BillingAccountingRevisionSchema: z.ZodObject<{
|
|
16669
|
+
revision_version: z.ZodLiteral<1>;
|
|
16670
|
+
source: z.ZodObject<{
|
|
16671
|
+
tenant_id: z.ZodString;
|
|
16672
|
+
account_id: z.ZodString;
|
|
16673
|
+
livemode: z.ZodBoolean;
|
|
16674
|
+
provider: z.ZodEnum<{
|
|
16675
|
+
stripe: "stripe";
|
|
16676
|
+
}>;
|
|
16677
|
+
simulation_id: z.ZodOptional<z.ZodString>;
|
|
16678
|
+
}, z.core.$strict>;
|
|
16679
|
+
profile: z.ZodEnum<{
|
|
16680
|
+
transaction: "transaction";
|
|
16681
|
+
subscription: "subscription";
|
|
16682
|
+
schedule: "schedule";
|
|
16683
|
+
invoice: "invoice";
|
|
16684
|
+
refund: "refund";
|
|
16685
|
+
credit: "credit";
|
|
16686
|
+
balance: "balance";
|
|
16687
|
+
loss: "loss";
|
|
16688
|
+
}>;
|
|
16689
|
+
kind: z.ZodString;
|
|
16690
|
+
occurrence_key: z.ZodString;
|
|
16691
|
+
source_revision: z.ZodString;
|
|
16692
|
+
revision_key: z.ZodString;
|
|
16693
|
+
source_order: z.ZodNullable<z.ZodNumber>;
|
|
16694
|
+
supersedes_revision: z.ZodNullable<z.ZodString>;
|
|
16695
|
+
effective_at: z.ZodISODateTime;
|
|
16696
|
+
source_recorded_at: z.ZodISODateTime;
|
|
16697
|
+
observed_at: z.ZodISODateTime;
|
|
16698
|
+
economic_ownership: z.ZodEnum<{
|
|
16699
|
+
unknown: "unknown";
|
|
16700
|
+
owner: "owner";
|
|
16701
|
+
non_owner: "non_owner";
|
|
16702
|
+
}>;
|
|
16703
|
+
legacy_billing_ref: z.ZodNullable<z.ZodString>;
|
|
16704
|
+
fact_digest: z.ZodString;
|
|
16705
|
+
}, z.core.$strict>;
|
|
16706
|
+
type BillingAccountingRevision$1 = z.infer<typeof BillingAccountingRevisionSchema>;
|
|
16707
|
+
/** Build the immutable revision row of a validated profile. The caller supplies the fact digest. */
|
|
16708
|
+
declare function billingAccountingRevisionOf(profile: BillingProfile$1, factDigest: string): BillingAccountingRevision$1;
|
|
16709
|
+
/**
|
|
16710
|
+
* An incoming revision against a stored one with the same `revision_key`:
|
|
16711
|
+
* `replay` (same bytes — a no-op) or `conflict` (same revision, different
|
|
16712
|
+
* content — never overwritten; it needs repair). `observed_at` is excluded:
|
|
16713
|
+
* observing the same revision again is not a different revision.
|
|
16714
|
+
*/
|
|
16715
|
+
declare function compareAccountingRevision(stored: BillingAccountingRevision$1, incoming: BillingAccountingRevision$1): 'replay' | 'conflict' | 'different_revision';
|
|
16716
|
+
/**
|
|
16717
|
+
* One effective-dated revision of the provider-customer → RT-account mapping
|
|
16718
|
+
* (plan 252 A-9). History is never reinterpreted through today's mapping: an
|
|
16719
|
+
* ordinary revision that changes a mapping takes effect no earlier than it
|
|
16720
|
+
* was observed, and only an `approved_correction` — carrying the correction
|
|
16721
|
+
* generation that restates history — may reach back in time.
|
|
16722
|
+
*/
|
|
16723
|
+
declare const BillingAccountMappingRevisionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
16724
|
+
basis: z.ZodLiteral<"explicit_binding">;
|
|
16725
|
+
mapping_version: z.ZodLiteral<1>;
|
|
16726
|
+
source: z.ZodObject<{
|
|
16727
|
+
tenant_id: z.ZodString;
|
|
16728
|
+
account_id: z.ZodString;
|
|
16729
|
+
livemode: z.ZodBoolean;
|
|
16730
|
+
provider: z.ZodEnum<{
|
|
16731
|
+
stripe: "stripe";
|
|
16732
|
+
}>;
|
|
16733
|
+
simulation_id: z.ZodOptional<z.ZodString>;
|
|
16734
|
+
}, z.core.$strict>;
|
|
16735
|
+
customer_ref: z.ZodString;
|
|
16736
|
+
rt_account_id: z.ZodNullable<z.ZodString>;
|
|
16737
|
+
mapping_revision: z.ZodNumber;
|
|
16738
|
+
effective_from: z.ZodISODateTime;
|
|
16739
|
+
effective_to: z.ZodNullable<z.ZodISODateTime>;
|
|
16740
|
+
observed_at: z.ZodISODateTime;
|
|
16741
|
+
supersedes_mapping_revision: z.ZodNullable<z.ZodNumber>;
|
|
16742
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
16743
|
+
basis: z.ZodLiteral<"integration_sync">;
|
|
16744
|
+
mapping_version: z.ZodLiteral<1>;
|
|
16745
|
+
source: z.ZodObject<{
|
|
16746
|
+
tenant_id: z.ZodString;
|
|
16747
|
+
account_id: z.ZodString;
|
|
16748
|
+
livemode: z.ZodBoolean;
|
|
16749
|
+
provider: z.ZodEnum<{
|
|
16750
|
+
stripe: "stripe";
|
|
16751
|
+
}>;
|
|
16752
|
+
simulation_id: z.ZodOptional<z.ZodString>;
|
|
16753
|
+
}, z.core.$strict>;
|
|
16754
|
+
customer_ref: z.ZodString;
|
|
16755
|
+
rt_account_id: z.ZodNullable<z.ZodString>;
|
|
16756
|
+
mapping_revision: z.ZodNumber;
|
|
16757
|
+
effective_from: z.ZodISODateTime;
|
|
16758
|
+
effective_to: z.ZodNullable<z.ZodISODateTime>;
|
|
16759
|
+
observed_at: z.ZodISODateTime;
|
|
16760
|
+
supersedes_mapping_revision: z.ZodNullable<z.ZodNumber>;
|
|
16761
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
16762
|
+
basis: z.ZodLiteral<"approved_correction">;
|
|
16763
|
+
correction_generation_id: z.ZodString;
|
|
16764
|
+
restatement_reason: z.ZodEnum<{
|
|
16765
|
+
split: "split";
|
|
16766
|
+
merge: "merge";
|
|
16767
|
+
provider_migration: "provider_migration";
|
|
16768
|
+
reassignment: "reassignment";
|
|
16769
|
+
error_correction: "error_correction";
|
|
16770
|
+
}>;
|
|
16771
|
+
mapping_version: z.ZodLiteral<1>;
|
|
16772
|
+
source: z.ZodObject<{
|
|
16773
|
+
tenant_id: z.ZodString;
|
|
16774
|
+
account_id: z.ZodString;
|
|
16775
|
+
livemode: z.ZodBoolean;
|
|
16776
|
+
provider: z.ZodEnum<{
|
|
16777
|
+
stripe: "stripe";
|
|
16778
|
+
}>;
|
|
16779
|
+
simulation_id: z.ZodOptional<z.ZodString>;
|
|
16780
|
+
}, z.core.$strict>;
|
|
16781
|
+
customer_ref: z.ZodString;
|
|
16782
|
+
rt_account_id: z.ZodNullable<z.ZodString>;
|
|
16783
|
+
mapping_revision: z.ZodNumber;
|
|
16784
|
+
effective_from: z.ZodISODateTime;
|
|
16785
|
+
effective_to: z.ZodNullable<z.ZodISODateTime>;
|
|
16786
|
+
observed_at: z.ZodISODateTime;
|
|
16787
|
+
supersedes_mapping_revision: z.ZodNullable<z.ZodNumber>;
|
|
16788
|
+
}, z.core.$strict>], "basis">;
|
|
16789
|
+
type BillingAccountMappingRevision$1 = z.infer<typeof BillingAccountMappingRevisionSchema>;
|
|
16790
|
+
type BillingAccountMappingResolution = {
|
|
16791
|
+
state: 'mapped';
|
|
16792
|
+
rt_account_id: string;
|
|
16793
|
+
mapping_revision: number;
|
|
16794
|
+
} | {
|
|
16795
|
+
state: 'unmapped';
|
|
16796
|
+
reason: 'no_mapping' | 'explicitly_unmapped';
|
|
16797
|
+
} | {
|
|
16798
|
+
state: 'ambiguous';
|
|
16799
|
+
mapping_revisions: number[];
|
|
16800
|
+
};
|
|
16801
|
+
/**
|
|
16802
|
+
* The RT account a provider customer mapped to AT `effective_at`, AS KNOWN BY
|
|
16803
|
+
* `observed_cutoff` — never the latest mapping reinterpreting history. The
|
|
16804
|
+
* highest revision known by the cutoff whose interval contains the instant
|
|
16805
|
+
* wins; two such rows with the same revision number are ambiguous.
|
|
16806
|
+
*/
|
|
16807
|
+
declare function resolveBillingAccountMapping(revisions: readonly BillingAccountMappingRevision$1[], query: {
|
|
16808
|
+
source: BillingSourceScope$1;
|
|
16809
|
+
customer_ref: string;
|
|
16810
|
+
effective_at: string;
|
|
16811
|
+
observed_cutoff: string;
|
|
16812
|
+
}): BillingAccountMappingResolution;
|
|
16813
|
+
/**
|
|
16814
|
+
* Derived output kinds. Snapshot kinds keep ACTUAL, RECEIVABLE and
|
|
16815
|
+
* horizon-specific COMMITTED stock distinct (plan 252 Schema impact); the
|
|
16816
|
+
* flow kinds name the occurrence/allocation they derive from.
|
|
16817
|
+
*/
|
|
16818
|
+
declare const BILLING_OUTPUT_KINDS: readonly ["stock_snapshot", "committed_snapshot", "receivable_snapshot", "movement", "collection", "allocation"];
|
|
16819
|
+
type BillingOutputKind = (typeof BILLING_OUTPUT_KINDS)[number];
|
|
16820
|
+
interface BillingOutputKeyInput {
|
|
16821
|
+
output_kind: BillingOutputKind;
|
|
16822
|
+
source: BillingSourceScope$1;
|
|
16823
|
+
/** RT account grain; null only for rows of an unmapped customer. */
|
|
16824
|
+
rt_account_id: string | null;
|
|
16825
|
+
currency: string;
|
|
16826
|
+
/** The instant the row measures (snapshot instant / movement effective time / projection base `b`). */
|
|
16827
|
+
effective_at: string;
|
|
16828
|
+
/** Committed snapshots only: the horizon `h >= b`. */
|
|
16829
|
+
horizon_at?: string;
|
|
16830
|
+
/** Flow kinds only: the source occurrence / allocation / atomic change group it derives from. */
|
|
16831
|
+
subject?: string;
|
|
16832
|
+
}
|
|
16833
|
+
/**
|
|
16834
|
+
* The identity of one derived output row. Depends only on WHAT the row
|
|
16835
|
+
* measures — never on generation, policy or delivery — so two rebuilds of the
|
|
16836
|
+
* same retained facts produce the same keys (AC-20). Instants are normalized
|
|
16837
|
+
* to UTC milliseconds, so `+00:00` and `Z` spellings agree.
|
|
16838
|
+
*/
|
|
16839
|
+
declare function deriveBillingOutputKey(input: BillingOutputKeyInput): string;
|
|
16840
|
+
/**
|
|
16841
|
+
* The unique identity of one derived output row inside a generation —
|
|
16842
|
+
* `BILLING_UNIQUE_KEYS.output_generation`. The same `output_key` recurs in
|
|
16843
|
+
* every generation that measures the same thing.
|
|
16844
|
+
*/
|
|
16845
|
+
declare const BillingOutputRowKeySchema: z.ZodObject<{
|
|
16846
|
+
tenant_id: z.ZodString;
|
|
16847
|
+
policy_version: z.ZodString;
|
|
16848
|
+
generation_id: z.ZodString;
|
|
16849
|
+
output_kind: z.ZodEnum<{
|
|
16850
|
+
allocation: "allocation";
|
|
16851
|
+
collection: "collection";
|
|
16852
|
+
stock_snapshot: "stock_snapshot";
|
|
16853
|
+
committed_snapshot: "committed_snapshot";
|
|
16854
|
+
receivable_snapshot: "receivable_snapshot";
|
|
16855
|
+
movement: "movement";
|
|
16856
|
+
}>;
|
|
16857
|
+
output_key: z.ZodString;
|
|
16858
|
+
}, z.core.$strict>;
|
|
16859
|
+
/**
|
|
16860
|
+
* Resumable progress of one generation build (AC-20: a crash resumes from
|
|
16861
|
+
* the checkpoint). Revisions are consumed in `(observed_at, revision_key)`
|
|
16862
|
+
* order up to the generation's input watermark.
|
|
16863
|
+
*/
|
|
16864
|
+
declare const BillingGenerationCheckpointSchema: z.ZodObject<{
|
|
16865
|
+
cursor_revision_key: z.ZodNullable<z.ZodString>;
|
|
16866
|
+
processed_through: z.ZodNullable<z.ZodISODateTime>;
|
|
16867
|
+
processed_revisions: z.ZodNumber;
|
|
16868
|
+
completed: z.ZodBoolean;
|
|
16869
|
+
}, z.core.$strict>;
|
|
16870
|
+
/**
|
|
16871
|
+
* The comparison that gates activation (AC-20): stock equations,
|
|
16872
|
+
* invoice/payment/refund conservation and shadow-vs-active totals. `failed`
|
|
16873
|
+
* blocks activation; unresolved residuals are reported, not forced to zero.
|
|
16874
|
+
*/
|
|
16875
|
+
declare const BillingReconciliationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
16876
|
+
state: z.ZodLiteral<"pending">;
|
|
16877
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
16878
|
+
state: z.ZodLiteral<"passed">;
|
|
16879
|
+
checked_at: z.ZodISODateTime;
|
|
16880
|
+
compared_with_generation_id: z.ZodNullable<z.ZodString>;
|
|
16881
|
+
unresolved_residuals: z.ZodNumber;
|
|
16882
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
16883
|
+
state: z.ZodLiteral<"failed">;
|
|
16884
|
+
checked_at: z.ZodISODateTime;
|
|
16885
|
+
compared_with_generation_id: z.ZodNullable<z.ZodString>;
|
|
16886
|
+
failure_codes: z.ZodArray<z.ZodEnum<{
|
|
16887
|
+
stock_equation: "stock_equation";
|
|
16888
|
+
collection_conservation: "collection_conservation";
|
|
16889
|
+
allocation_conservation: "allocation_conservation";
|
|
16890
|
+
receivable_conservation: "receivable_conservation";
|
|
16891
|
+
source_totals: "source_totals";
|
|
16892
|
+
shadow_divergence: "shadow_divergence";
|
|
16893
|
+
}>>;
|
|
16894
|
+
}, z.core.$strict>], "state">;
|
|
16895
|
+
/** A checkpoint whose build finished — the only one an active or superseded generation may carry. */
|
|
16896
|
+
declare const BillingCompletedGenerationCheckpointSchema: z.ZodObject<{
|
|
16897
|
+
cursor_revision_key: z.ZodNullable<z.ZodString>;
|
|
16898
|
+
processed_through: z.ZodNullable<z.ZodISODateTime>;
|
|
16899
|
+
processed_revisions: z.ZodNumber;
|
|
16900
|
+
completed: z.ZodLiteral<true>;
|
|
16901
|
+
}, z.core.$strict>;
|
|
16902
|
+
/**
|
|
16903
|
+
* One policy-pinned derived generation (plan 252 A-7). Built as `building`,
|
|
16904
|
+
* compared as `shadow`, published atomically as `active`, retired as
|
|
16905
|
+
* `superseded`. Activation requires a COMPLETED checkpoint and a PASSED
|
|
16906
|
+
* reconciliation — structurally, not by convention: the `active` and
|
|
16907
|
+
* `superseded` members admit no other.
|
|
16908
|
+
*/
|
|
16909
|
+
declare const BillingGenerationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
16910
|
+
status: z.ZodLiteral<"building">;
|
|
16911
|
+
reconciliation: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
16912
|
+
state: z.ZodLiteral<"pending">;
|
|
16913
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
16914
|
+
state: z.ZodLiteral<"passed">;
|
|
16915
|
+
checked_at: z.ZodISODateTime;
|
|
16916
|
+
compared_with_generation_id: z.ZodNullable<z.ZodString>;
|
|
16917
|
+
unresolved_residuals: z.ZodNumber;
|
|
16918
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
16919
|
+
state: z.ZodLiteral<"failed">;
|
|
16920
|
+
checked_at: z.ZodISODateTime;
|
|
16921
|
+
compared_with_generation_id: z.ZodNullable<z.ZodString>;
|
|
16922
|
+
failure_codes: z.ZodArray<z.ZodEnum<{
|
|
16923
|
+
stock_equation: "stock_equation";
|
|
16924
|
+
collection_conservation: "collection_conservation";
|
|
16925
|
+
allocation_conservation: "allocation_conservation";
|
|
16926
|
+
receivable_conservation: "receivable_conservation";
|
|
16927
|
+
source_totals: "source_totals";
|
|
16928
|
+
shadow_divergence: "shadow_divergence";
|
|
16929
|
+
}>>;
|
|
16930
|
+
}, z.core.$strict>], "state">;
|
|
16931
|
+
generation_version: z.ZodLiteral<1>;
|
|
16932
|
+
tenant_id: z.ZodString;
|
|
16933
|
+
generation_id: z.ZodString;
|
|
16934
|
+
source: z.ZodObject<{
|
|
16935
|
+
tenant_id: z.ZodString;
|
|
16936
|
+
account_id: z.ZodString;
|
|
16937
|
+
livemode: z.ZodBoolean;
|
|
16938
|
+
provider: z.ZodEnum<{
|
|
16939
|
+
stripe: "stripe";
|
|
16940
|
+
}>;
|
|
16941
|
+
simulation_id: z.ZodOptional<z.ZodString>;
|
|
16942
|
+
}, z.core.$strict>;
|
|
16943
|
+
policy_version: z.ZodString;
|
|
16944
|
+
policy_pins: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
16945
|
+
input_watermark: z.ZodISODateTime;
|
|
16946
|
+
created_at: z.ZodISODateTime;
|
|
16947
|
+
checkpoint: z.ZodObject<{
|
|
16948
|
+
cursor_revision_key: z.ZodNullable<z.ZodString>;
|
|
16949
|
+
processed_through: z.ZodNullable<z.ZodISODateTime>;
|
|
16950
|
+
processed_revisions: z.ZodNumber;
|
|
16951
|
+
completed: z.ZodBoolean;
|
|
16952
|
+
}, z.core.$strict>;
|
|
16953
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
16954
|
+
status: z.ZodLiteral<"shadow">;
|
|
16955
|
+
reconciliation: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
16956
|
+
state: z.ZodLiteral<"pending">;
|
|
16957
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
16958
|
+
state: z.ZodLiteral<"passed">;
|
|
16959
|
+
checked_at: z.ZodISODateTime;
|
|
16960
|
+
compared_with_generation_id: z.ZodNullable<z.ZodString>;
|
|
16961
|
+
unresolved_residuals: z.ZodNumber;
|
|
16962
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
16963
|
+
state: z.ZodLiteral<"failed">;
|
|
16964
|
+
checked_at: z.ZodISODateTime;
|
|
16965
|
+
compared_with_generation_id: z.ZodNullable<z.ZodString>;
|
|
16966
|
+
failure_codes: z.ZodArray<z.ZodEnum<{
|
|
16967
|
+
stock_equation: "stock_equation";
|
|
16968
|
+
collection_conservation: "collection_conservation";
|
|
16969
|
+
allocation_conservation: "allocation_conservation";
|
|
16970
|
+
receivable_conservation: "receivable_conservation";
|
|
16971
|
+
source_totals: "source_totals";
|
|
16972
|
+
shadow_divergence: "shadow_divergence";
|
|
16973
|
+
}>>;
|
|
16974
|
+
}, z.core.$strict>], "state">;
|
|
16975
|
+
generation_version: z.ZodLiteral<1>;
|
|
16976
|
+
tenant_id: z.ZodString;
|
|
16977
|
+
generation_id: z.ZodString;
|
|
16978
|
+
source: z.ZodObject<{
|
|
16979
|
+
tenant_id: z.ZodString;
|
|
16980
|
+
account_id: z.ZodString;
|
|
16981
|
+
livemode: z.ZodBoolean;
|
|
16982
|
+
provider: z.ZodEnum<{
|
|
16983
|
+
stripe: "stripe";
|
|
16984
|
+
}>;
|
|
16985
|
+
simulation_id: z.ZodOptional<z.ZodString>;
|
|
16986
|
+
}, z.core.$strict>;
|
|
16987
|
+
policy_version: z.ZodString;
|
|
16988
|
+
policy_pins: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
16989
|
+
input_watermark: z.ZodISODateTime;
|
|
16990
|
+
created_at: z.ZodISODateTime;
|
|
16991
|
+
checkpoint: z.ZodObject<{
|
|
16992
|
+
cursor_revision_key: z.ZodNullable<z.ZodString>;
|
|
16993
|
+
processed_through: z.ZodNullable<z.ZodISODateTime>;
|
|
16994
|
+
processed_revisions: z.ZodNumber;
|
|
16995
|
+
completed: z.ZodBoolean;
|
|
16996
|
+
}, z.core.$strict>;
|
|
16997
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
16998
|
+
status: z.ZodLiteral<"active">;
|
|
16999
|
+
checkpoint: z.ZodObject<{
|
|
17000
|
+
cursor_revision_key: z.ZodNullable<z.ZodString>;
|
|
17001
|
+
processed_through: z.ZodNullable<z.ZodISODateTime>;
|
|
17002
|
+
processed_revisions: z.ZodNumber;
|
|
17003
|
+
completed: z.ZodLiteral<true>;
|
|
17004
|
+
}, z.core.$strict>;
|
|
17005
|
+
reconciliation: z.ZodObject<{
|
|
17006
|
+
state: z.ZodLiteral<"passed">;
|
|
17007
|
+
checked_at: z.ZodISODateTime;
|
|
17008
|
+
compared_with_generation_id: z.ZodNullable<z.ZodString>;
|
|
17009
|
+
unresolved_residuals: z.ZodNumber;
|
|
17010
|
+
}, z.core.$strict>;
|
|
17011
|
+
activated_at: z.ZodISODateTime;
|
|
17012
|
+
generation_version: z.ZodLiteral<1>;
|
|
17013
|
+
tenant_id: z.ZodString;
|
|
17014
|
+
generation_id: z.ZodString;
|
|
17015
|
+
source: z.ZodObject<{
|
|
17016
|
+
tenant_id: z.ZodString;
|
|
17017
|
+
account_id: z.ZodString;
|
|
17018
|
+
livemode: z.ZodBoolean;
|
|
17019
|
+
provider: z.ZodEnum<{
|
|
17020
|
+
stripe: "stripe";
|
|
17021
|
+
}>;
|
|
17022
|
+
simulation_id: z.ZodOptional<z.ZodString>;
|
|
17023
|
+
}, z.core.$strict>;
|
|
17024
|
+
policy_version: z.ZodString;
|
|
17025
|
+
policy_pins: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
17026
|
+
input_watermark: z.ZodISODateTime;
|
|
17027
|
+
created_at: z.ZodISODateTime;
|
|
17028
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
17029
|
+
status: z.ZodLiteral<"superseded">;
|
|
17030
|
+
checkpoint: z.ZodObject<{
|
|
17031
|
+
cursor_revision_key: z.ZodNullable<z.ZodString>;
|
|
17032
|
+
processed_through: z.ZodNullable<z.ZodISODateTime>;
|
|
17033
|
+
processed_revisions: z.ZodNumber;
|
|
17034
|
+
completed: z.ZodLiteral<true>;
|
|
17035
|
+
}, z.core.$strict>;
|
|
17036
|
+
reconciliation: z.ZodObject<{
|
|
17037
|
+
state: z.ZodLiteral<"passed">;
|
|
17038
|
+
checked_at: z.ZodISODateTime;
|
|
17039
|
+
compared_with_generation_id: z.ZodNullable<z.ZodString>;
|
|
17040
|
+
unresolved_residuals: z.ZodNumber;
|
|
17041
|
+
}, z.core.$strict>;
|
|
17042
|
+
activated_at: z.ZodISODateTime;
|
|
17043
|
+
superseded_at: z.ZodISODateTime;
|
|
17044
|
+
superseded_by_generation_id: z.ZodString;
|
|
17045
|
+
generation_version: z.ZodLiteral<1>;
|
|
17046
|
+
tenant_id: z.ZodString;
|
|
17047
|
+
generation_id: z.ZodString;
|
|
17048
|
+
source: z.ZodObject<{
|
|
17049
|
+
tenant_id: z.ZodString;
|
|
17050
|
+
account_id: z.ZodString;
|
|
17051
|
+
livemode: z.ZodBoolean;
|
|
17052
|
+
provider: z.ZodEnum<{
|
|
17053
|
+
stripe: "stripe";
|
|
17054
|
+
}>;
|
|
17055
|
+
simulation_id: z.ZodOptional<z.ZodString>;
|
|
17056
|
+
}, z.core.$strict>;
|
|
17057
|
+
policy_version: z.ZodString;
|
|
17058
|
+
policy_pins: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
17059
|
+
input_watermark: z.ZodISODateTime;
|
|
17060
|
+
created_at: z.ZodISODateTime;
|
|
17061
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
17062
|
+
status: z.ZodLiteral<"failed">;
|
|
17063
|
+
reconciliation: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
17064
|
+
state: z.ZodLiteral<"pending">;
|
|
17065
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
17066
|
+
state: z.ZodLiteral<"passed">;
|
|
17067
|
+
checked_at: z.ZodISODateTime;
|
|
17068
|
+
compared_with_generation_id: z.ZodNullable<z.ZodString>;
|
|
17069
|
+
unresolved_residuals: z.ZodNumber;
|
|
17070
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
17071
|
+
state: z.ZodLiteral<"failed">;
|
|
17072
|
+
checked_at: z.ZodISODateTime;
|
|
17073
|
+
compared_with_generation_id: z.ZodNullable<z.ZodString>;
|
|
17074
|
+
failure_codes: z.ZodArray<z.ZodEnum<{
|
|
17075
|
+
stock_equation: "stock_equation";
|
|
17076
|
+
collection_conservation: "collection_conservation";
|
|
17077
|
+
allocation_conservation: "allocation_conservation";
|
|
17078
|
+
receivable_conservation: "receivable_conservation";
|
|
17079
|
+
source_totals: "source_totals";
|
|
17080
|
+
shadow_divergence: "shadow_divergence";
|
|
17081
|
+
}>>;
|
|
17082
|
+
}, z.core.$strict>], "state">;
|
|
17083
|
+
failure_code: z.ZodString;
|
|
17084
|
+
generation_version: z.ZodLiteral<1>;
|
|
17085
|
+
tenant_id: z.ZodString;
|
|
17086
|
+
generation_id: z.ZodString;
|
|
17087
|
+
source: z.ZodObject<{
|
|
17088
|
+
tenant_id: z.ZodString;
|
|
17089
|
+
account_id: z.ZodString;
|
|
17090
|
+
livemode: z.ZodBoolean;
|
|
17091
|
+
provider: z.ZodEnum<{
|
|
17092
|
+
stripe: "stripe";
|
|
17093
|
+
}>;
|
|
17094
|
+
simulation_id: z.ZodOptional<z.ZodString>;
|
|
17095
|
+
}, z.core.$strict>;
|
|
17096
|
+
policy_version: z.ZodString;
|
|
17097
|
+
policy_pins: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
17098
|
+
input_watermark: z.ZodISODateTime;
|
|
17099
|
+
created_at: z.ZodISODateTime;
|
|
17100
|
+
checkpoint: z.ZodObject<{
|
|
17101
|
+
cursor_revision_key: z.ZodNullable<z.ZodString>;
|
|
17102
|
+
processed_through: z.ZodNullable<z.ZodISODateTime>;
|
|
17103
|
+
processed_revisions: z.ZodNumber;
|
|
17104
|
+
completed: z.ZodBoolean;
|
|
17105
|
+
}, z.core.$strict>;
|
|
17106
|
+
}, z.core.$strict>], "status">;
|
|
17107
|
+
type BillingGeneration$1 = z.infer<typeof BillingGenerationSchema>;
|
|
17108
|
+
/**
|
|
17109
|
+
* Whether a generation may be published as active: only a completed build
|
|
17110
|
+
* whose reconciliation passed. Every refusal names why (AC-20: a failed
|
|
17111
|
+
* reconciliation blocks activation).
|
|
17112
|
+
*/
|
|
17113
|
+
declare function canActivateBillingGeneration(generation: BillingGeneration$1): {
|
|
17114
|
+
ok: true;
|
|
17115
|
+
} | {
|
|
17116
|
+
ok: false;
|
|
17117
|
+
reason: 'not_shadow' | 'checkpoint_incomplete' | 'reconciliation_pending' | 'reconciliation_failed';
|
|
17118
|
+
};
|
|
17119
|
+
/** Fact families whose completeness is tracked independently (revenue-accounting §9). */
|
|
17120
|
+
declare const BILLING_COVERAGE_FAMILIES: readonly ["subscription_stock", "movement_history", "schedule_phases", "invoices", "invoice_payments", "payments", "adjustments", "balances", "losses", "receivables", "account_mappings", "cohort_membership"];
|
|
17121
|
+
/**
|
|
17122
|
+
* A declared opening balance where retained history begins after the first
|
|
17123
|
+
* commitment. It seeds a roll-forward; it is NEVER a movement, so it can
|
|
17124
|
+
* never be classified as new business or reactivation (revenue-accounting §4).
|
|
17125
|
+
*/
|
|
17126
|
+
declare const BillingOpeningSeedSchema: z.ZodObject<{
|
|
17127
|
+
as_of: z.ZodISODateTime;
|
|
17128
|
+
basis: z.ZodEnum<{
|
|
17129
|
+
imported_opening_balance: "imported_opening_balance";
|
|
17130
|
+
verified_snapshot: "verified_snapshot";
|
|
17131
|
+
}>;
|
|
17132
|
+
}, z.core.$strict>;
|
|
17133
|
+
/** Why a span of coverage is missing. Named, so generated port enums do not renumber. */
|
|
17134
|
+
declare const BillingCoverageGapReasonSchema: z.ZodEnum<{
|
|
17135
|
+
provider_error: "provider_error";
|
|
17136
|
+
partial_hydration: "partial_hydration";
|
|
17137
|
+
missing_price_terms: "missing_price_terms";
|
|
17138
|
+
missing_history: "missing_history";
|
|
17139
|
+
ambiguous_revision: "ambiguous_revision";
|
|
17140
|
+
unmapped_customer: "unmapped_customer";
|
|
17141
|
+
missing_linkage: "missing_linkage";
|
|
17142
|
+
missing_ownership: "missing_ownership";
|
|
17143
|
+
retention_window: "retention_window";
|
|
17144
|
+
}>;
|
|
17145
|
+
/** Why a family's coverage is unavailable altogether. Named, so generated port enums do not renumber. */
|
|
17146
|
+
declare const BillingCoverageUnavailableReasonSchema: z.ZodEnum<{
|
|
17147
|
+
uninitialized: "uninitialized";
|
|
17148
|
+
provider_error: "provider_error";
|
|
17149
|
+
not_connected: "not_connected";
|
|
17150
|
+
hydration_in_progress: "hydration_in_progress";
|
|
17151
|
+
history_unavailable: "history_unavailable";
|
|
17152
|
+
}>;
|
|
17153
|
+
/** One known hole in coverage. `to: null` = still open. */
|
|
17154
|
+
declare const BillingCoverageGapRangeSchema: z.ZodObject<{
|
|
17155
|
+
from: z.ZodISODateTime;
|
|
17156
|
+
to: z.ZodNullable<z.ZodISODateTime>;
|
|
17157
|
+
reason: z.ZodEnum<{
|
|
17158
|
+
provider_error: "provider_error";
|
|
17159
|
+
partial_hydration: "partial_hydration";
|
|
17160
|
+
missing_price_terms: "missing_price_terms";
|
|
17161
|
+
missing_history: "missing_history";
|
|
17162
|
+
ambiguous_revision: "ambiguous_revision";
|
|
17163
|
+
unmapped_customer: "unmapped_customer";
|
|
17164
|
+
missing_linkage: "missing_linkage";
|
|
17165
|
+
missing_ownership: "missing_ownership";
|
|
17166
|
+
retention_window: "retention_window";
|
|
17167
|
+
}>;
|
|
17168
|
+
}, z.core.$strict>;
|
|
17169
|
+
/**
|
|
17170
|
+
* How completely one fact family is known for one scope. Mirrors plan 248's
|
|
17171
|
+
* evidence discipline: `unavailable` carries no coverage window at all, so an
|
|
17172
|
+
* unknown family can never be read as a verified empty one; `partial` must
|
|
17173
|
+
* name at least one gap; only `complete` is gap-free.
|
|
17174
|
+
*/
|
|
17175
|
+
declare const BillingCoverageCheckpointSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
17176
|
+
state: z.ZodLiteral<"complete">;
|
|
17177
|
+
earliest_complete_at: z.ZodISODateTime;
|
|
17178
|
+
covered_through: z.ZodISODateTime;
|
|
17179
|
+
opening_seed: z.ZodNullable<z.ZodObject<{
|
|
17180
|
+
as_of: z.ZodISODateTime;
|
|
17181
|
+
basis: z.ZodEnum<{
|
|
17182
|
+
imported_opening_balance: "imported_opening_balance";
|
|
17183
|
+
verified_snapshot: "verified_snapshot";
|
|
17184
|
+
}>;
|
|
17185
|
+
}, z.core.$strict>>;
|
|
17186
|
+
checkpoint_version: z.ZodLiteral<1>;
|
|
17187
|
+
source: z.ZodObject<{
|
|
17188
|
+
tenant_id: z.ZodString;
|
|
17189
|
+
account_id: z.ZodString;
|
|
17190
|
+
livemode: z.ZodBoolean;
|
|
17191
|
+
provider: z.ZodEnum<{
|
|
17192
|
+
stripe: "stripe";
|
|
17193
|
+
}>;
|
|
17194
|
+
simulation_id: z.ZodOptional<z.ZodString>;
|
|
17195
|
+
}, z.core.$strict>;
|
|
17196
|
+
rt_account_id: z.ZodNullable<z.ZodString>;
|
|
17197
|
+
family: z.ZodEnum<{
|
|
17198
|
+
payments: "payments";
|
|
17199
|
+
subscription_stock: "subscription_stock";
|
|
17200
|
+
movement_history: "movement_history";
|
|
17201
|
+
schedule_phases: "schedule_phases";
|
|
17202
|
+
invoices: "invoices";
|
|
17203
|
+
invoice_payments: "invoice_payments";
|
|
17204
|
+
adjustments: "adjustments";
|
|
17205
|
+
balances: "balances";
|
|
17206
|
+
losses: "losses";
|
|
17207
|
+
receivables: "receivables";
|
|
17208
|
+
account_mappings: "account_mappings";
|
|
17209
|
+
cohort_membership: "cohort_membership";
|
|
17210
|
+
}>;
|
|
17211
|
+
recorded_at: z.ZodISODateTime;
|
|
17212
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
17213
|
+
state: z.ZodLiteral<"partial">;
|
|
17214
|
+
earliest_complete_at: z.ZodNullable<z.ZodISODateTime>;
|
|
17215
|
+
covered_through: z.ZodISODateTime;
|
|
17216
|
+
opening_seed: z.ZodNullable<z.ZodObject<{
|
|
17217
|
+
as_of: z.ZodISODateTime;
|
|
17218
|
+
basis: z.ZodEnum<{
|
|
17219
|
+
imported_opening_balance: "imported_opening_balance";
|
|
17220
|
+
verified_snapshot: "verified_snapshot";
|
|
17221
|
+
}>;
|
|
17222
|
+
}, z.core.$strict>>;
|
|
17223
|
+
gaps: z.ZodArray<z.ZodObject<{
|
|
17224
|
+
from: z.ZodISODateTime;
|
|
17225
|
+
to: z.ZodNullable<z.ZodISODateTime>;
|
|
17226
|
+
reason: z.ZodEnum<{
|
|
17227
|
+
provider_error: "provider_error";
|
|
17228
|
+
partial_hydration: "partial_hydration";
|
|
17229
|
+
missing_price_terms: "missing_price_terms";
|
|
17230
|
+
missing_history: "missing_history";
|
|
17231
|
+
ambiguous_revision: "ambiguous_revision";
|
|
17232
|
+
unmapped_customer: "unmapped_customer";
|
|
17233
|
+
missing_linkage: "missing_linkage";
|
|
17234
|
+
missing_ownership: "missing_ownership";
|
|
17235
|
+
retention_window: "retention_window";
|
|
17236
|
+
}>;
|
|
17237
|
+
}, z.core.$strict>>;
|
|
17238
|
+
checkpoint_version: z.ZodLiteral<1>;
|
|
17239
|
+
source: z.ZodObject<{
|
|
17240
|
+
tenant_id: z.ZodString;
|
|
17241
|
+
account_id: z.ZodString;
|
|
17242
|
+
livemode: z.ZodBoolean;
|
|
17243
|
+
provider: z.ZodEnum<{
|
|
17244
|
+
stripe: "stripe";
|
|
17245
|
+
}>;
|
|
17246
|
+
simulation_id: z.ZodOptional<z.ZodString>;
|
|
17247
|
+
}, z.core.$strict>;
|
|
17248
|
+
rt_account_id: z.ZodNullable<z.ZodString>;
|
|
17249
|
+
family: z.ZodEnum<{
|
|
17250
|
+
payments: "payments";
|
|
17251
|
+
subscription_stock: "subscription_stock";
|
|
17252
|
+
movement_history: "movement_history";
|
|
17253
|
+
schedule_phases: "schedule_phases";
|
|
17254
|
+
invoices: "invoices";
|
|
17255
|
+
invoice_payments: "invoice_payments";
|
|
17256
|
+
adjustments: "adjustments";
|
|
17257
|
+
balances: "balances";
|
|
17258
|
+
losses: "losses";
|
|
17259
|
+
receivables: "receivables";
|
|
17260
|
+
account_mappings: "account_mappings";
|
|
17261
|
+
cohort_membership: "cohort_membership";
|
|
17262
|
+
}>;
|
|
17263
|
+
recorded_at: z.ZodISODateTime;
|
|
17264
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
17265
|
+
state: z.ZodLiteral<"unavailable">;
|
|
17266
|
+
reason: z.ZodEnum<{
|
|
17267
|
+
uninitialized: "uninitialized";
|
|
17268
|
+
provider_error: "provider_error";
|
|
17269
|
+
not_connected: "not_connected";
|
|
17270
|
+
hydration_in_progress: "hydration_in_progress";
|
|
17271
|
+
history_unavailable: "history_unavailable";
|
|
17272
|
+
}>;
|
|
17273
|
+
last_observed_at: z.ZodNullable<z.ZodISODateTime>;
|
|
17274
|
+
checkpoint_version: z.ZodLiteral<1>;
|
|
17275
|
+
source: z.ZodObject<{
|
|
17276
|
+
tenant_id: z.ZodString;
|
|
17277
|
+
account_id: z.ZodString;
|
|
17278
|
+
livemode: z.ZodBoolean;
|
|
17279
|
+
provider: z.ZodEnum<{
|
|
17280
|
+
stripe: "stripe";
|
|
17281
|
+
}>;
|
|
17282
|
+
simulation_id: z.ZodOptional<z.ZodString>;
|
|
17283
|
+
}, z.core.$strict>;
|
|
17284
|
+
rt_account_id: z.ZodNullable<z.ZodString>;
|
|
17285
|
+
family: z.ZodEnum<{
|
|
17286
|
+
payments: "payments";
|
|
17287
|
+
subscription_stock: "subscription_stock";
|
|
17288
|
+
movement_history: "movement_history";
|
|
17289
|
+
schedule_phases: "schedule_phases";
|
|
17290
|
+
invoices: "invoices";
|
|
17291
|
+
invoice_payments: "invoice_payments";
|
|
17292
|
+
adjustments: "adjustments";
|
|
17293
|
+
balances: "balances";
|
|
17294
|
+
losses: "losses";
|
|
17295
|
+
receivables: "receivables";
|
|
17296
|
+
account_mappings: "account_mappings";
|
|
17297
|
+
cohort_membership: "cohort_membership";
|
|
17298
|
+
}>;
|
|
17299
|
+
recorded_at: z.ZodISODateTime;
|
|
17300
|
+
}, z.core.$strict>], "state">;
|
|
17301
|
+
interface InvoicePaymentAllocationSummary {
|
|
17302
|
+
payments: {
|
|
17303
|
+
scope: string;
|
|
17304
|
+
payment_id: string;
|
|
17305
|
+
currency: string;
|
|
17306
|
+
/** Captured cash; null when no capture of this payment was observed. */
|
|
17307
|
+
captured_minor: string | null;
|
|
17308
|
+
allocated_minor: string;
|
|
17309
|
+
/** Captured minus allocated; null unless capture AND complete allocation coverage are known. */
|
|
17310
|
+
unapplied_minor: string | null;
|
|
17311
|
+
allocations_coverage: 'complete' | 'partial' | 'unknown';
|
|
17312
|
+
}[];
|
|
17313
|
+
invoices: {
|
|
17314
|
+
scope: string;
|
|
17315
|
+
invoice_id: string;
|
|
17316
|
+
currency: string;
|
|
17317
|
+
/** Allocated from provider payments (cash-bearing edges). */
|
|
17318
|
+
allocated_from_payments_minor: string;
|
|
17319
|
+
/** Marked settled out of band: no evidenced cash. */
|
|
17320
|
+
out_of_band_minor: string;
|
|
17321
|
+
payments_coverage: 'complete' | 'partial' | 'unknown';
|
|
17322
|
+
}[];
|
|
17323
|
+
/** Captured cash per currency, counted once per payment, in the owner's scope (or unknown ownership). */
|
|
17324
|
+
collections_minor: Record<string, string>;
|
|
17325
|
+
/** Payments whose allocations exceed their captured amount. */
|
|
17326
|
+
over_allocated: {
|
|
17327
|
+
scope: string;
|
|
17328
|
+
payment_id: string;
|
|
17329
|
+
}[];
|
|
17330
|
+
/** Occurrences with tied revisions and no order evidence (need repair). */
|
|
17331
|
+
ambiguous: string[];
|
|
17332
|
+
/** Captures excluded because another account owns them (Connect views). */
|
|
17333
|
+
non_owner_payment_ids: string[];
|
|
17334
|
+
}
|
|
17335
|
+
/**
|
|
17336
|
+
* The conservation shape of InvoicePayment allocations (plan 252 A-11 /
|
|
17337
|
+
* AC-25): each payment is ONE collection however many invoices it funds; an
|
|
17338
|
+
* invoice's allocated amount is the sum of its paid edges, never a payment's
|
|
17339
|
+
* full amount; out-of-band edges carry no cash; applying funded balance or
|
|
17340
|
+
* credit is not an edge and so never a collection; partial page coverage
|
|
17341
|
+
* leaves unapplied cash unknown rather than inferred.
|
|
17342
|
+
*
|
|
17343
|
+
* A structural check over validated facts — the allocation / netting ORACLE
|
|
17344
|
+
* (refunds, credits, conversions) is TASK-46.
|
|
17345
|
+
*/
|
|
17346
|
+
declare function summarizeInvoicePaymentAllocations(profiles: readonly BillingProfile$1[]): InvoicePaymentAllocationSummary;
|
|
17347
|
+
|
|
14775
17348
|
/**
|
|
14776
17349
|
* Segment B2B SaaS semantic events (plan 252 TASK-3, BL-0304; "B2B semantic map").
|
|
14777
17350
|
*
|
|
@@ -15105,8 +17678,8 @@ declare const WebhookProcessingStatusSchema: z.ZodEnum<{
|
|
|
15105
17678
|
unknown: "unknown";
|
|
15106
17679
|
failed: "failed";
|
|
15107
17680
|
pending: "pending";
|
|
15108
|
-
processing: "processing";
|
|
15109
17681
|
completed: "completed";
|
|
17682
|
+
processing: "processing";
|
|
15110
17683
|
terminal: "terminal";
|
|
15111
17684
|
not_required: "not_required";
|
|
15112
17685
|
}>;
|
|
@@ -15144,10 +17717,10 @@ declare const WebhookDispatchStatusSchema: z.ZodEnum<{
|
|
|
15144
17717
|
accepted: "accepted";
|
|
15145
17718
|
failed: "failed";
|
|
15146
17719
|
pending: "pending";
|
|
17720
|
+
ambiguous: "ambiguous";
|
|
15147
17721
|
terminal: "terminal";
|
|
15148
17722
|
not_required: "not_required";
|
|
15149
17723
|
dispatching: "dispatching";
|
|
15150
|
-
ambiguous: "ambiguous";
|
|
15151
17724
|
}>;
|
|
15152
17725
|
/** No CRUD operation exposes this record; webhookEventLog remains the display projection. */
|
|
15153
17726
|
declare const WebhookDeliverySchema: z.ZodObject<{
|
|
@@ -15192,8 +17765,8 @@ declare const WebhookDeliverySchema: z.ZodObject<{
|
|
|
15192
17765
|
unknown: "unknown";
|
|
15193
17766
|
failed: "failed";
|
|
15194
17767
|
pending: "pending";
|
|
15195
|
-
processing: "processing";
|
|
15196
17768
|
completed: "completed";
|
|
17769
|
+
processing: "processing";
|
|
15197
17770
|
terminal: "terminal";
|
|
15198
17771
|
not_required: "not_required";
|
|
15199
17772
|
}>>;
|
|
@@ -15202,17 +17775,17 @@ declare const WebhookDeliverySchema: z.ZodObject<{
|
|
|
15202
17775
|
accepted: "accepted";
|
|
15203
17776
|
failed: "failed";
|
|
15204
17777
|
pending: "pending";
|
|
17778
|
+
ambiguous: "ambiguous";
|
|
15205
17779
|
terminal: "terminal";
|
|
15206
17780
|
not_required: "not_required";
|
|
15207
17781
|
dispatching: "dispatching";
|
|
15208
|
-
ambiguous: "ambiguous";
|
|
15209
17782
|
}>>;
|
|
15210
17783
|
downstream_status: z.ZodDefault<z.ZodEnum<{
|
|
15211
17784
|
unknown: "unknown";
|
|
15212
17785
|
failed: "failed";
|
|
15213
17786
|
pending: "pending";
|
|
15214
|
-
processing: "processing";
|
|
15215
17787
|
completed: "completed";
|
|
17788
|
+
processing: "processing";
|
|
15216
17789
|
terminal: "terminal";
|
|
15217
17790
|
not_required: "not_required";
|
|
15218
17791
|
}>>;
|
|
@@ -18382,6 +20955,7 @@ declare const SeatTypeSchema: z.ZodObject<{
|
|
|
18382
20955
|
handle: z.ZodString;
|
|
18383
20956
|
description: z.ZodOptional<z.ZodString>;
|
|
18384
20957
|
is_default: z.ZodDefault<z.ZodBoolean>;
|
|
20958
|
+
is_buyer: z.ZodDefault<z.ZodBoolean>;
|
|
18385
20959
|
entitlement_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
18386
20960
|
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
18387
20961
|
}, z.core.$strip>;
|
|
@@ -18823,6 +21397,7 @@ declare const RevTurbineConfigSeatTypesItemSchema: z.ZodObject<{
|
|
|
18823
21397
|
name: z.ZodString;
|
|
18824
21398
|
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
18825
21399
|
is_default: z.ZodDefault<z.ZodBoolean>;
|
|
21400
|
+
is_buyer: z.ZodDefault<z.ZodBoolean>;
|
|
18826
21401
|
entitlement_handles: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
18827
21402
|
}, z.core.$strip>;
|
|
18828
21403
|
/** Global usage-enforcement defaults projection (strategy). */
|
|
@@ -20063,6 +22638,7 @@ declare const PlaybookBodySchema: z.ZodObject<{
|
|
|
20063
22638
|
name: z.ZodString;
|
|
20064
22639
|
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
20065
22640
|
is_default: z.ZodDefault<z.ZodBoolean>;
|
|
22641
|
+
is_buyer: z.ZodDefault<z.ZodBoolean>;
|
|
20066
22642
|
entitlement_handles: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
20067
22643
|
}, z.core.$strip>>>;
|
|
20068
22644
|
enforcement_defaults: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -20722,6 +23298,7 @@ declare const PlaybookObjectSchema: z.ZodObject<{
|
|
|
20722
23298
|
name: z.ZodString;
|
|
20723
23299
|
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
20724
23300
|
is_default: z.ZodDefault<z.ZodBoolean>;
|
|
23301
|
+
is_buyer: z.ZodDefault<z.ZodBoolean>;
|
|
20725
23302
|
entitlement_handles: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
20726
23303
|
}, z.core.$strip>>>;
|
|
20727
23304
|
enforcement_defaults: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -21367,6 +23944,7 @@ declare const PlaybookSchema: z.ZodPreprocess<z.ZodObject<{
|
|
|
21367
23944
|
name: z.ZodString;
|
|
21368
23945
|
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
21369
23946
|
is_default: z.ZodDefault<z.ZodBoolean>;
|
|
23947
|
+
is_buyer: z.ZodDefault<z.ZodBoolean>;
|
|
21370
23948
|
entitlement_handles: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
21371
23949
|
}, z.core.$strip>>>;
|
|
21372
23950
|
enforcement_defaults: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -22030,6 +24608,7 @@ declare const PlaybookStrictSchema: z.ZodPreprocess<z.ZodObject<{
|
|
|
22030
24608
|
name: z.ZodString;
|
|
22031
24609
|
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
22032
24610
|
is_default: z.ZodDefault<z.ZodBoolean>;
|
|
24611
|
+
is_buyer: z.ZodDefault<z.ZodBoolean>;
|
|
22033
24612
|
entitlement_handles: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
22034
24613
|
}, z.core.$strip>>>;
|
|
22035
24614
|
enforcement_defaults: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -22672,6 +25251,7 @@ declare const RevTurbineConfigSchema: z.ZodPreprocess<z.ZodObject<{
|
|
|
22672
25251
|
name: z.ZodString;
|
|
22673
25252
|
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
22674
25253
|
is_default: z.ZodDefault<z.ZodBoolean>;
|
|
25254
|
+
is_buyer: z.ZodDefault<z.ZodBoolean>;
|
|
22675
25255
|
entitlement_handles: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
22676
25256
|
}, z.core.$strip>>>;
|
|
22677
25257
|
enforcement_defaults: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -24150,21 +26730,39 @@ type AuthTwoFactor = z.infer<typeof AuthTwoFactorSchema>;
|
|
|
24150
26730
|
type AuthUser = z.infer<typeof AuthUserSchema>;
|
|
24151
26731
|
type AuthVerification = z.infer<typeof AuthVerificationSchema>;
|
|
24152
26732
|
type B2BSegmentEventName = z.infer<typeof B2BSegmentEventNameSchema>;
|
|
26733
|
+
type BillingAccountingRevision = z.infer<typeof BillingAccountingRevisionSchema>;
|
|
26734
|
+
type BillingAccountMappingRevision = z.infer<typeof BillingAccountMappingRevisionSchema>;
|
|
24153
26735
|
type BillingAllocation = z.infer<typeof BillingAllocationSchema>;
|
|
24154
26736
|
type BillingBalanceProfile = z.infer<typeof BillingBalanceProfileSchema>;
|
|
24155
26737
|
type BillingCadence = z.infer<typeof BillingCadenceSchema>;
|
|
26738
|
+
type BillingCompletedGenerationCheckpoint = z.infer<typeof BillingCompletedGenerationCheckpointSchema>;
|
|
26739
|
+
type BillingCoverageCheckpoint = z.infer<typeof BillingCoverageCheckpointSchema>;
|
|
26740
|
+
type BillingCoverageGapRange = z.infer<typeof BillingCoverageGapRangeSchema>;
|
|
26741
|
+
type BillingCoverageGapReason = z.infer<typeof BillingCoverageGapReasonSchema>;
|
|
26742
|
+
type BillingCoverageUnavailableReason = z.infer<typeof BillingCoverageUnavailableReasonSchema>;
|
|
24156
26743
|
type BillingCreditNoteLine = z.infer<typeof BillingCreditNoteLineSchema>;
|
|
24157
26744
|
type BillingCreditProfile = z.infer<typeof BillingCreditProfileSchema>;
|
|
24158
26745
|
type BillingCreditSettlement = z.infer<typeof BillingCreditSettlementSchema>;
|
|
26746
|
+
type BillingEconomicOwner = z.infer<typeof BillingEconomicOwnerSchema>;
|
|
26747
|
+
type BillingGenerationCheckpoint = z.infer<typeof BillingGenerationCheckpointSchema>;
|
|
26748
|
+
type BillingGeneration = z.infer<typeof BillingGenerationSchema>;
|
|
24159
26749
|
type BillingHealthStatus = z.infer<typeof BillingHealthStatusSchema>;
|
|
26750
|
+
type BillingInvoicePaymentSource = z.infer<typeof BillingInvoicePaymentSourceSchema>;
|
|
24160
26751
|
type BillingInvoiceProfile = z.infer<typeof BillingInvoiceProfileSchema>;
|
|
24161
26752
|
type BillingLossProfile = z.infer<typeof BillingLossProfileSchema>;
|
|
24162
26753
|
type BillingOccurrence = z.infer<typeof BillingOccurrenceSchema>;
|
|
26754
|
+
type BillingOpeningSeed = z.infer<typeof BillingOpeningSeedSchema>;
|
|
26755
|
+
type BillingOutputRowKey = z.infer<typeof BillingOutputRowKeySchema>;
|
|
26756
|
+
type BillingPriceTerms = z.infer<typeof BillingPriceTermsSchema>;
|
|
26757
|
+
type BillingPriceTier = z.infer<typeof BillingPriceTierSchema>;
|
|
24163
26758
|
type BillingProfile = z.infer<typeof BillingProfileSchema>;
|
|
26759
|
+
type BillingReconciliation = z.infer<typeof BillingReconciliationSchema>;
|
|
26760
|
+
type BillingRecurrence = z.infer<typeof BillingRecurrenceSchema>;
|
|
24164
26761
|
type BillingRecurringPrice = z.infer<typeof BillingRecurringPriceSchema>;
|
|
24165
26762
|
type BillingRefundProfile = z.infer<typeof BillingRefundProfileSchema>;
|
|
24166
26763
|
type BillingRepeatableOccurrence = z.infer<typeof BillingRepeatableOccurrenceSchema>;
|
|
24167
26764
|
type BillingScheduleProfile = z.infer<typeof BillingScheduleProfileSchema>;
|
|
26765
|
+
type BillingSettlementAmount = z.infer<typeof BillingSettlementAmountSchema>;
|
|
24168
26766
|
type BillingSourceScope = z.infer<typeof BillingSourceScopeSchema>;
|
|
24169
26767
|
type BillingSubscriptionItemSnapshot = z.infer<typeof BillingSubscriptionItemSnapshotSchema>;
|
|
24170
26768
|
type BillingSubscriptionProfile = z.infer<typeof BillingSubscriptionProfileSchema>;
|
|
@@ -24195,6 +26793,7 @@ type CtaObject = z.infer<typeof CtaObjectSchema>;
|
|
|
24195
26793
|
type CtaPath = z.infer<typeof CtaPathSchema>;
|
|
24196
26794
|
type CtaPathType = z.infer<typeof CtaPathTypeSchema>;
|
|
24197
26795
|
type Currency = z.infer<typeof CurrencySchema>;
|
|
26796
|
+
type CustomerBuiltinDimensions = z.infer<typeof CustomerBuiltinDimensionsSchema>;
|
|
24198
26797
|
type CustomerOverrideDuration = z.infer<typeof CustomerOverrideDurationSchema>;
|
|
24199
26798
|
type CustomerOverride = z.infer<typeof CustomerOverrideSchema>;
|
|
24200
26799
|
type CustomerOverrideStatus = z.infer<typeof CustomerOverrideStatusSchema>;
|
|
@@ -24276,6 +26875,9 @@ type GrowthSignalSeries = z.infer<typeof GrowthSignalSeriesSchema>;
|
|
|
24276
26875
|
type Identity = z.infer<typeof IdentitySchema>;
|
|
24277
26876
|
type IngestedEvent = z.infer<typeof IngestedEventSchema>;
|
|
24278
26877
|
type InvitationStatus = z.infer<typeof InvitationStatusSchema>;
|
|
26878
|
+
type InvoicePaymentStatus = z.infer<typeof InvoicePaymentStatusSchema>;
|
|
26879
|
+
type InvoiceSettlementBasis = z.infer<typeof InvoiceSettlementBasisSchema>;
|
|
26880
|
+
type InvoiceStatus = z.infer<typeof InvoiceStatusSchema>;
|
|
24279
26881
|
type KpiAggregate = z.infer<typeof KpiAggregateSchema>;
|
|
24280
26882
|
type LocalizedText = z.infer<typeof LocalizedTextSchema>;
|
|
24281
26883
|
type McpConfig = z.infer<typeof McpConfigSchema>;
|
|
@@ -24415,12 +27017,16 @@ type SegmentScreenInput = z.infer<typeof SegmentScreenInputSchema>;
|
|
|
24415
27017
|
type SegmentTrackInput = z.infer<typeof SegmentTrackInputSchema>;
|
|
24416
27018
|
type SegmentValue = z.infer<typeof SegmentValueSchema>;
|
|
24417
27019
|
type SemanticEvent = z.infer<typeof SemanticEventSchema>;
|
|
27020
|
+
type ServerBuiltinDimensionsWrite = z.infer<typeof ServerBuiltinDimensionsWriteSchema>;
|
|
24418
27021
|
type ServerEvaluationPayloadDecisionsItem = z.infer<typeof ServerEvaluationPayloadDecisionsItemSchema>;
|
|
24419
27022
|
type ServerEvaluationPayloadEntitlementsValue = z.infer<typeof ServerEvaluationPayloadEntitlementsValueSchema>;
|
|
24420
27023
|
type ServerEvaluationPayload = z.infer<typeof ServerEvaluationPayloadSchema>;
|
|
24421
27024
|
type ServerEvaluationPayloadTrialStatus = z.infer<typeof ServerEvaluationPayloadTrialStatusSchema>;
|
|
24422
27025
|
type ServerEvaluationPayloadUserContext = z.infer<typeof ServerEvaluationPayloadUserContextSchema>;
|
|
24423
27026
|
type ServerEvaluationPayloadUser = z.infer<typeof ServerEvaluationPayloadUserSchema>;
|
|
27027
|
+
type ServerUserBuiltinDimensions = z.infer<typeof ServerUserBuiltinDimensionsSchema>;
|
|
27028
|
+
type ServerUserContextAssignment = z.infer<typeof ServerUserContextAssignmentSchema>;
|
|
27029
|
+
type ServerUserContextUpsert = z.infer<typeof ServerUserContextUpsertSchema>;
|
|
24424
27030
|
type Severity = z.infer<typeof SeveritySchema>;
|
|
24425
27031
|
type StripeBillingScope = z.infer<typeof StripeBillingScopeSchema>;
|
|
24426
27032
|
type StripeIntegrationConfig = z.infer<typeof StripeIntegrationConfigSchema>;
|
|
@@ -24537,8 +27143,13 @@ type UnvalidatedConfigArtifact = {
|
|
|
24537
27143
|
* @public
|
|
24538
27144
|
*/
|
|
24539
27145
|
interface ConfigTargetDefaults {
|
|
24540
|
-
/**
|
|
24541
|
-
|
|
27146
|
+
/**
|
|
27147
|
+
* Tenant the SDK was initialized with. Wins over the artifact's `tenant_id`.
|
|
27148
|
+
* Optional since `0.11.14` (BL-0335): a key-only browser init passes none, and
|
|
27149
|
+
* the artifact's own `tenant_id` — stamped by the control plane for the
|
|
27150
|
+
* public key's tenant — is used.
|
|
27151
|
+
*/
|
|
27152
|
+
tenantId?: string;
|
|
24542
27153
|
/** Environment the SDK was initialized with. Wins over the artifact's `environment_id`. */
|
|
24543
27154
|
environmentId: string;
|
|
24544
27155
|
}
|
|
@@ -26445,6 +29056,35 @@ interface StaticAdapterOptions extends AdapterBaseOptions {
|
|
|
26445
29056
|
* holding no tier.
|
|
26446
29057
|
*/
|
|
26447
29058
|
tiers?: Record<string, string>;
|
|
29059
|
+
/**
|
|
29060
|
+
* Tenant-authored segment handles the app already resolved for this user
|
|
29061
|
+
* (BL-0369). Reported as members verbatim, ahead of any evaluated
|
|
29062
|
+
* membership. Omit when the app resolves none.
|
|
29063
|
+
*/
|
|
29064
|
+
segmentIds?: string[];
|
|
29065
|
+
/**
|
|
29066
|
+
* The user context segment membership is evaluated from (BL-0369). Every
|
|
29067
|
+
* configured segment's predicates run against
|
|
29068
|
+
* `buildTargetingState(userContext).segmentTraits` — which is where the
|
|
29069
|
+
* reserved `rt_<dimension>` traits the generated built-in segments match on
|
|
29070
|
+
* come from (`builtin_dimensions`, plan 279 PD-3) — with
|
|
29071
|
+
* `userContext.experiments` as the enrollment map. Omit it and no segment is
|
|
29072
|
+
* evaluated: membership is `segmentIds` alone (fail closed).
|
|
29073
|
+
*/
|
|
29074
|
+
userContext?: UserContextSnapshot;
|
|
29075
|
+
/**
|
|
29076
|
+
* The control plane's server-resolved built-in dimensions for this user
|
|
29077
|
+
* (BL-0366) — e.g. the `builtin_dimensions` of
|
|
29078
|
+
* `GET /api/sdk/user-contexts/{userId}/builtin-dimensions`, fetched with
|
|
29079
|
+
* the server key. Applied as a per-key OVERLAY on
|
|
29080
|
+
* `userContext.builtin_dimensions` before membership is evaluated: a leaf
|
|
29081
|
+
* present here wins over the app-set value (plan 279 PD-3), and an app-set
|
|
29082
|
+
* leaf the server did not deliver survives — the same overlay
|
|
29083
|
+
* `mergeUserContext` applies to a client-context delivery in the browser.
|
|
29084
|
+
* Ignored without a `userContext` (nothing is evaluated then; fail closed).
|
|
29085
|
+
* See {@link applyServerBuiltinDimensions}.
|
|
29086
|
+
*/
|
|
29087
|
+
serverBuiltinDimensions?: UserContextSnapshot['builtin_dimensions'];
|
|
26448
29088
|
}
|
|
26449
29089
|
/**
|
|
26450
29090
|
* Create domain providers from a static RevTurbineConfig snapshot.
|
|
@@ -27557,6 +30197,22 @@ declare function formatCurrencyMinorUnits(amount: number, currencyCode: string,
|
|
|
27557
30197
|
type SdkMetadata = Record<string, JsonValue>;
|
|
27558
30198
|
/** User-provided traits or custom context (inherently untyped from customer code). */
|
|
27559
30199
|
type SdkTraits = Record<string, JsonValue>;
|
|
30200
|
+
/**
|
|
30201
|
+
* Top-level keys {@link RevTurbineCustomerSdk.identify} recognizes on a
|
|
30202
|
+
* canonical user-context input. Anything else is dropped and reported
|
|
30203
|
+
* (plan 168 REQ-3, plan 191 REQ-3). `satisfies` guards each entry against
|
|
30204
|
+
* typos; `update-keys-exhaustiveness.test-d.ts` derives the reverse
|
|
30205
|
+
* direction, so an {@link IdentifyContextInput} field identify() does not
|
|
30206
|
+
* merge has to be acknowledged there (BL-0352).
|
|
30207
|
+
*/
|
|
30208
|
+
declare const RECOGNIZED_IDENTIFY_KEYS: readonly ["account_id", "email", "plan", "plan_handle", "usage", "entitlements", "custom", "personalization"];
|
|
30209
|
+
/**
|
|
30210
|
+
* The top-level {@link IdentifyContextInput} keys
|
|
30211
|
+
* {@link RevTurbineCustomerSdk.identify} merges into the held context (the
|
|
30212
|
+
* entries of its recognized-key list). Exported for type-level
|
|
30213
|
+
* exhaustiveness checks; it has no runtime value.
|
|
30214
|
+
*/
|
|
30215
|
+
type RecognizedIdentifyKey = (typeof RECOGNIZED_IDENTIFY_KEYS)[number];
|
|
27560
30216
|
/** Properties attached to analytics events. */
|
|
27561
30217
|
type SdkEventProperties = Record<string, JsonValue>;
|
|
27562
30218
|
interface RevTurbineSdkProvider {
|
|
@@ -27685,13 +30341,55 @@ type RevTurbinePlaybookLoadState = 'ready' | 'loading' | 'unavailable';
|
|
|
27685
30341
|
* ```
|
|
27686
30342
|
*/
|
|
27687
30343
|
type UserContextInput = Omit<UserContext, 'id' | 'tenant_id' | 'user_id' | 'created_at' | 'updated_at'>;
|
|
30344
|
+
/**
|
|
30345
|
+
* User-context fields only the server may write, so the browser input types
|
|
30346
|
+
* ({@link IdentifyContextInput}, {@link RevTurbineUserContext} and, through it,
|
|
30347
|
+
* {@link RevTurbineUpdateInput}) omit them, and every browser entry point
|
|
30348
|
+
* (`identify()`, `update()`, `setUserContext()`, the `user` init option)
|
|
30349
|
+
* drops them at runtime for plain-JS callers (BL-0351, BL-0352, BL-0381).
|
|
30350
|
+
*
|
|
30351
|
+
* Trust is by party (D-46): the browser client never asserts these values;
|
|
30352
|
+
* the customer's server may (a server-key user-context write, or a server
|
|
30353
|
+
* SDK's overlay inputs), and RevTurbine's server may enrich them.
|
|
30354
|
+
*
|
|
30355
|
+
* - `seat_type_handle` — the user's seat-type assignment (plan 279, D-36).
|
|
30356
|
+
* It has exactly two writers: the tenant's backend, through a server-key
|
|
30357
|
+
* user-context upsert, and RevTurbine's own server-side enrichment in
|
|
30358
|
+
* hosted mode. It is never accepted from `identify()`, `update()` or any
|
|
30359
|
+
* credential the browser holds; the control plane resolves the delivered
|
|
30360
|
+
* `seat_type` / `buyer_role` built-in dimensions from it.
|
|
30361
|
+
* - `activity_score` / `activity_score_computed_at` — computed by the
|
|
30362
|
+
* control plane's hourly activity-score refresh from the event stream and
|
|
30363
|
+
* persisted on `user_contexts` (plan 180; targeting-studio-ui.md §4.1,
|
|
30364
|
+
* Activity State). The browser receives the derived level through the
|
|
30365
|
+
* `activity_level` built-in dimension, never the score, and never writes
|
|
30366
|
+
* either field (D-36's principle).
|
|
30367
|
+
* - `builtin_dimensions` — the resolved built-in segment dimensions that
|
|
30368
|
+
* stamp the reserved `rt_<dimension>` traits (plan 279 PD-3, as amended by
|
|
30369
|
+
* D-46; BL-0381). The only browser source is the authenticated
|
|
30370
|
+
* `GET /api/sdk/client-context` delivery, which the SDK merges into its
|
|
30371
|
+
* held context itself; an app-supplied value would let the browser claim
|
|
30372
|
+
* any built-in segment (e.g. `rt.subscription_state.paid`).
|
|
30373
|
+
* - `customer_builtin_dimensions` — the customer-set built-in dimension
|
|
30374
|
+
* values and their per-key `override` pins (D-47; BL-0382). Written only by
|
|
30375
|
+
* the customer's server through the server-key `POST /api/sdk/user-contexts`
|
|
30376
|
+
* upsert (server-node `setBuiltinDimensions`); the control plane folds them
|
|
30377
|
+
* into `builtin_dimensions` before delivery.
|
|
30378
|
+
*/
|
|
30379
|
+
declare const SERVER_ASSIGNED_USER_CONTEXT_KEYS: readonly ["seat_type_handle", "activity_score", "activity_score_computed_at", "builtin_dimensions", "customer_builtin_dimensions"];
|
|
30380
|
+
type ServerAssignedUserContextKey = (typeof SERVER_ASSIGNED_USER_CONTEXT_KEYS)[number];
|
|
27688
30381
|
/**
|
|
27689
30382
|
* Input accepted by {@link RevTurbineCustomerSdk.identify} for the canonical
|
|
27690
30383
|
* user-context shape (plan 191). `plan_handle` is THE plan matching
|
|
27691
30384
|
* identity — the plan's `unique_handle`; the `plan` object is display
|
|
27692
30385
|
* metadata (name/price/period) and never participates in matching.
|
|
30386
|
+
*
|
|
30387
|
+
* Server-assigned fields (`seat_type_handle`, `activity_score`,
|
|
30388
|
+
* `activity_score_computed_at`, `builtin_dimensions`) are not accepted here
|
|
30389
|
+
* (plan 279, D-36, D-46; BL-0352, BL-0381); the tenant's backend or
|
|
30390
|
+
* RevTurbine's enrichment writes them.
|
|
27693
30391
|
*/
|
|
27694
|
-
type IdentifyContextInput = Partial<UserContextInput
|
|
30392
|
+
type IdentifyContextInput = Partial<Omit<UserContextInput, ServerAssignedUserContextKey>> & {
|
|
27695
30393
|
/** THE plan matching identity — the plan's `unique_handle` (e.g. `'pro'`). */
|
|
27696
30394
|
plan_handle?: string;
|
|
27697
30395
|
};
|
|
@@ -27820,7 +30518,11 @@ type RevTurbineGateResult<T> = {
|
|
|
27820
30518
|
* `{ plan }`) never clobbers other context. Patchable fields include `plan`,
|
|
27821
30519
|
* `email`, `account_id`, `entitlements`, `custom`, `personalization`, `trial`,
|
|
27822
30520
|
* the billing-recovery signals (`payment_failed` / `payment_at_risk`), `tiers`,
|
|
27823
|
-
* and `usage`.
|
|
30521
|
+
* app-known experiment assignments (`experiments`, plan 183), and `usage`.
|
|
30522
|
+
* Server-assigned fields (`seat_type_handle`, `activity_score`,
|
|
30523
|
+
* `activity_score_computed_at`, `builtin_dimensions`) are not patchable
|
|
30524
|
+
* (D-36, D-46; BL-0352, BL-0381): built-in dimension values reach the browser
|
|
30525
|
+
* only from the authenticated client-context delivery.
|
|
27824
30526
|
*
|
|
27825
30527
|
* `usage` keeps its friendly `Record<string, number>` shape (absolute balances),
|
|
27826
30528
|
* distinct from the richer per-entry `usage` on {@link RevTurbineUserContext}.
|
|
@@ -27832,12 +30534,21 @@ type RevTurbineUpdateInput = Omit<RevTurbineUserContext, 'id' | 'usage'> & {
|
|
|
27832
30534
|
/**
|
|
27833
30535
|
* Runtime mirror of {@link RevTurbineUpdateInput}'s keys — the fields
|
|
27834
30536
|
* `update()` patches. `satisfies` guards each entry against typos/renames;
|
|
27835
|
-
*
|
|
27836
|
-
*
|
|
27837
|
-
*
|
|
27838
|
-
*
|
|
30537
|
+
* `update-keys-exhaustiveness.test-d.ts` (compiled by
|
|
30538
|
+
* `pnpm check:types:exact`) derives the reverse direction, so a
|
|
30539
|
+
* schema-added context field fails the build until it is acknowledged here
|
|
30540
|
+
* or omitted from the browser input types (BL-0352). JS callers' keys
|
|
30541
|
+
* outside this set are dropped with a warning rather than merged into the
|
|
30542
|
+
* context.
|
|
30543
|
+
*/
|
|
30544
|
+
declare const RECOGNIZED_UPDATE_KEYS: readonly ["usage", "account_id", "email", "email_type", "plan_handle", "plan", "trial", "payment_failed", "payment_at_risk", "tiers", "entitlements", "instances", "custom", "personalization", "experiments", "derived_config_version", "context_hash", "derived_computed_at"];
|
|
30545
|
+
/**
|
|
30546
|
+
* The top-level {@link RevTurbineUpdateInput} keys
|
|
30547
|
+
* {@link RevTurbineCustomerSdk.update} patches (the entries of
|
|
30548
|
+
* {@link RECOGNIZED_UPDATE_KEYS}). Exported for type-level exhaustiveness
|
|
30549
|
+
* checks; it has no runtime value.
|
|
27839
30550
|
*/
|
|
27840
|
-
|
|
30551
|
+
type RecognizedUpdateKey = (typeof RECOGNIZED_UPDATE_KEYS)[number];
|
|
27841
30552
|
/** Usage snapshot entry for a usage unit. */
|
|
27842
30553
|
interface RevTurbineUsageSnapshotEntry {
|
|
27843
30554
|
/** Current consumed amount for the usage unit. */
|
|
@@ -27890,8 +30601,27 @@ type ServerEvaluationHydrationPayload = ServerEvaluationPayload;
|
|
|
27890
30601
|
* `custom` is widened to `Record<string, unknown>` at the SDK boundary
|
|
27891
30602
|
* for customer convenience; values are narrowed to `TraitValue` when
|
|
27892
30603
|
* persisted via the API.
|
|
27893
|
-
|
|
27894
|
-
|
|
30604
|
+
*
|
|
30605
|
+
* `seat_type_handle` is omitted on purpose (plan 279, D-36). A user's seat
|
|
30606
|
+
* type is assigned only server-side: by the tenant's backend through a
|
|
30607
|
+
* server-key user-context upsert, or by RevTurbine's enrichment in hosted
|
|
30608
|
+
* mode. The browser never writes it, so neither `identify()`, `update()`,
|
|
30609
|
+
* `setUserContext()` nor the `user` init option accepts it. The browser
|
|
30610
|
+
* receives the resolved `seat_type` / `buyer_role` as built-in dimensions
|
|
30611
|
+
* delivered by `GET /api/sdk/client-context` instead. The server-computed
|
|
30612
|
+
* `activity_score` / `activity_score_computed_at` are omitted on the same
|
|
30613
|
+
* principle (BL-0352); the browser receives the derived `activity_level`
|
|
30614
|
+
* dimension.
|
|
30615
|
+
*
|
|
30616
|
+
* `builtin_dimensions` is omitted too (D-46, BL-0381): the browser never
|
|
30617
|
+
* asserts a built-in dimension value. The SDK holds the values
|
|
30618
|
+
* `fetchClientContext` delivers and stamps the reserved `rt_<dimension>`
|
|
30619
|
+
* segment traits from them; read them back through
|
|
30620
|
+
* {@link RevTurbineCustomerSdk.getUserContext getUserContext()}. A plain-JS
|
|
30621
|
+
* caller that passes any of these keys has them dropped and reported at
|
|
30622
|
+
* runtime.
|
|
30623
|
+
*/
|
|
30624
|
+
interface RevTurbineUserContext extends Omit<UserContextInput, 'custom' | 'entitlements' | 'usage' | 'personalization' | 'derived_computed_at' | 'context_hash' | ServerAssignedUserContextKey> {
|
|
27895
30625
|
/** Authenticated user identifier. When undefined, the SDK uses an anonymous ID. */
|
|
27896
30626
|
id?: string;
|
|
27897
30627
|
/**
|
|
@@ -27920,25 +30650,6 @@ interface RevTurbineUserContext extends Omit<UserContextInput, 'custom' | 'entit
|
|
|
27920
30650
|
* `string | number` when serialized.
|
|
27921
30651
|
*/
|
|
27922
30652
|
personalization?: SdkTraits;
|
|
27923
|
-
/**
|
|
27924
|
-
* Server-evaluated built-in segment dimensions (plan 279 PD-3), one leaf
|
|
27925
|
-
* per resolved dimension keyed by its dimension key (e.g.
|
|
27926
|
-
* `subscription_state`, `region`) — see the built-in segment resolution
|
|
27927
|
-
* contract in `targeting-studio-ui.md` §4.1 for the full vocabulary.
|
|
27928
|
-
*
|
|
27929
|
-
* `fetchClientContext` delivers this from `GET /api/sdk/client-context`
|
|
27930
|
-
* and merges it the way it merges `plan_handle`: **server values overlay
|
|
27931
|
-
* app-set values**, per leaf. A dimension the server did not evaluate on a
|
|
27932
|
-
* given fetch leaves whatever the app (or a prior fetch) had set for that
|
|
27933
|
-
* leaf untouched; a dimension is simply absent when neither side has ever
|
|
27934
|
-
* set it (unknown is trait absence — plan 255).
|
|
27935
|
-
*
|
|
27936
|
-
* Feeds the reserved `rt_<dimension>` segment traits that built-in
|
|
27937
|
-
* Playbook segments match on — never read or write those trait keys
|
|
27938
|
-
* directly. Set this yourself only to seed `local_only` mode or a
|
|
27939
|
-
* server-side port, which has no client-context fetch of its own.
|
|
27940
|
-
*/
|
|
27941
|
-
builtin_dimensions?: UserContextInput['builtin_dimensions'];
|
|
27942
30653
|
}
|
|
27943
30654
|
/** Page-level context automatically inferred or manually set. */
|
|
27944
30655
|
interface RevTurbinePageContext {
|
|
@@ -28133,8 +30844,26 @@ interface RevTurbineTelemetryOptions {
|
|
|
28133
30844
|
consent?: TelemetryConsent;
|
|
28134
30845
|
}
|
|
28135
30846
|
interface RevTurbineInitOptions {
|
|
28136
|
-
/**
|
|
28137
|
-
|
|
30847
|
+
/**
|
|
30848
|
+
* Your RevTurbine tenant identifier — **optional whenever a
|
|
30849
|
+
* {@link publicKey} is supplied** (BL-0335, `0.11.14`).
|
|
30850
|
+
*
|
|
30851
|
+
* The public key is bound to exactly one tenant, so the control plane
|
|
30852
|
+
* resolves the tenant from the key alone and the SDK reads it back from the
|
|
30853
|
+
* launched Playbook it fetches (the signed manifest's and the Playbook's
|
|
30854
|
+
* `tenant_id`). Passing a tenant id as well is still accepted, but the key
|
|
30855
|
+
* is the sole arbiter of the tenant (D-49): when the key-authenticated
|
|
30856
|
+
* delivery names a different tenant, the SDK warns once per init
|
|
30857
|
+
* (`tenantId <x> does not match the key's tenant <y>; using <y>`) and adopts
|
|
30858
|
+
* the key's tenant. The control plane likewise ignores a mismatching tenant
|
|
30859
|
+
* id (with a server-side warning); it never refuses the request.
|
|
30860
|
+
*
|
|
30861
|
+
* Still required when there is no public key to identify the tenant — a
|
|
30862
|
+
* `local_only` init without `localRuntime.playbook` (with one, the SDK
|
|
30863
|
+
* defaults it to `'local'`), or a server-key (`apiKey`) headless init. The
|
|
30864
|
+
* SDK throws a descriptive error at init when neither is present.
|
|
30865
|
+
*/
|
|
30866
|
+
tenantId?: string;
|
|
28138
30867
|
/**
|
|
28139
30868
|
// @revturbine-graph configuration:revturbine-sdk-internal:web-sdk/customer-side.ts#RevTurbineInitOptions
|
|
28140
30869
|
* Your **public key** — the browser credential.
|
|
@@ -28570,6 +31299,17 @@ interface RevTurbineLocalRuntimeOptions {
|
|
|
28570
31299
|
* './revturbine.playbook.json'` passes `tsc --strict` directly, no cast
|
|
28571
31300
|
* needed; the SDK validates the shape at init and fails fast on a malformed
|
|
28572
31301
|
* artifact.
|
|
31302
|
+
*
|
|
31303
|
+
* Built-in segments (`rt.<dimension>.<value>`) need no definitions in the
|
|
31304
|
+
* file: the SDK adds them at load from RevTurbine's catalogue, with Seat Type
|
|
31305
|
+
* values taken from the Playbook's own `seat_types`. An authored segment
|
|
31306
|
+
* under the reserved `rt.` prefix is ignored.
|
|
31307
|
+
*
|
|
31308
|
+
* The definitions exist, but the values do not come from the app: the
|
|
31309
|
+
* browser never sets built-in dimensions (D-46, BL-0381). They reach the
|
|
31310
|
+
* SDK only from `GET /api/sdk/client-context` (a `clientSession` minter
|
|
31311
|
+
* backed by your server), so without that delivery every built-in segment
|
|
31312
|
+
* fails closed — a chip or rule naming one matches nobody.
|
|
28573
31313
|
*/
|
|
28574
31314
|
playbook?: ConfigArtifact | UnvalidatedConfigArtifact;
|
|
28575
31315
|
/**
|
|
@@ -29031,7 +31771,21 @@ declare const EMITTABLE_PLATFORM_EVENT_NAMES: readonly string[];
|
|
|
29031
31771
|
* ```
|
|
29032
31772
|
*/
|
|
29033
31773
|
declare class RevTurbineCustomerSdk {
|
|
29034
|
-
|
|
31774
|
+
/**
|
|
31775
|
+
* The tenant the integration passed at init, if any. Optional since BL-0335:
|
|
31776
|
+
* with a public key the tenant is read from the launched Playbook instead —
|
|
31777
|
+
* see the `tenantId` getter.
|
|
31778
|
+
*/
|
|
31779
|
+
private readonly configuredTenantId?;
|
|
31780
|
+
/**
|
|
31781
|
+
* Stable namespace for everything the SDK keys LOCALLY — storage keys,
|
|
31782
|
+
* cache/cap keys, generated placement ids. It is the configured tenant id
|
|
31783
|
+
* when one was passed (so existing integrations keep every persisted key
|
|
31784
|
+
* byte-for-byte), else a hash of the public key. It never changes during a
|
|
31785
|
+
* session, unlike `tenantId`, which a key-only integration learns only once
|
|
31786
|
+
* the Playbook loads.
|
|
31787
|
+
*/
|
|
31788
|
+
private readonly tenantNamespace;
|
|
29035
31789
|
/** The browser credential — `publicKey`, the only name it arrives under. */
|
|
29036
31790
|
private readonly publicKey;
|
|
29037
31791
|
/**
|
|
@@ -29189,6 +31943,21 @@ declare class RevTurbineCustomerSdk {
|
|
|
29189
31943
|
readonly impressionHistory: ImpressionHistory;
|
|
29190
31944
|
constructor(options: RevTurbineInitOptions);
|
|
29191
31945
|
private isLocalOnlyMode;
|
|
31946
|
+
/**
|
|
31947
|
+
* The tenant this SDK operates in: the key's tenant once a key-authenticated
|
|
31948
|
+
* delivery named one that differs from the configured `tenantId` (D-49),
|
|
31949
|
+
* else the configured `tenantId`, else the one the Playbook delivery named
|
|
31950
|
+
* (BL-0335). `undefined` only between init and the first Playbook load of a
|
|
31951
|
+
* key-only integration.
|
|
31952
|
+
*/
|
|
31953
|
+
private get tenantId();
|
|
31954
|
+
/**
|
|
31955
|
+
* The tenant header for the SDK's direct control-plane calls: sent only when
|
|
31956
|
+
* the integration CONFIGURED a tenant id — and then the key's tenant once it
|
|
31957
|
+
* was adopted (D-49). The control plane ignores a mismatching value with a
|
|
31958
|
+
* warning. A key-only integration sends none — the key names the tenant.
|
|
31959
|
+
*/
|
|
31960
|
+
private tenantHeader;
|
|
29192
31961
|
private resolveConfigProvider;
|
|
29193
31962
|
private refreshPlaybookSnapshot;
|
|
29194
31963
|
/**
|
|
@@ -29862,9 +32631,19 @@ declare class RevTurbineCustomerSdk {
|
|
|
29862
32631
|
* upsert; an omitted field never clobbers a previously-set value. See the
|
|
29863
32632
|
* advertised {@link update} alias for the full recognized-field contract.
|
|
29864
32633
|
*
|
|
32634
|
+
* Server-assigned fields (`seat_type_handle`, `activity_score`,
|
|
32635
|
+
* `activity_score_computed_at`) are dropped and reported, never merged:
|
|
32636
|
+
* they are written only by the tenant's backend or RevTurbine's
|
|
32637
|
+
* enrichment (D-36, BL-0352). The parameter type does not yet reject other
|
|
32638
|
+
* undeclared keys the way {@link identify} and {@link update} do; that
|
|
32639
|
+
* `Exact<>` narrowing is deferred to `0.12.0` because it can break callers
|
|
32640
|
+
* that pass a wider object today.
|
|
32641
|
+
*
|
|
29865
32642
|
* @public
|
|
29866
32643
|
*/
|
|
29867
32644
|
setUserContext(userContext: RevTurbineUserContext): void;
|
|
32645
|
+
/** {@link setUserContext}'s merge, on a patch already cleared of server-assigned keys. */
|
|
32646
|
+
private mergeAcceptedUserContext;
|
|
29868
32647
|
/**
|
|
29869
32648
|
* Subscribe to user-context changes — `identify()`, `setUserContext()`,
|
|
29870
32649
|
* `update()`, `updateUsage()`, and `resetIdentity()` (plan 194 REQ-3).
|
|
@@ -30218,6 +32997,15 @@ declare class RevTurbineCustomerSdk {
|
|
|
30218
32997
|
*/
|
|
30219
32998
|
private rejectLegacyPlanId;
|
|
30220
32999
|
private reportUnrecognizedContextKeys;
|
|
33000
|
+
/**
|
|
33001
|
+
* Report server-assigned keys a browser entry point dropped (D-36,
|
|
33002
|
+
* BL-0351, BL-0352). Same once-per-session dedupe and anonymous
|
|
33003
|
+
* `sdk_validation_warning` lane as {@link reportUnrecognizedContextKeys},
|
|
33004
|
+
* with guidance that names the actual writer instead of pointing the caller
|
|
33005
|
+
* at `custom` — moving a server-assigned value under `custom` would not make
|
|
33006
|
+
* it any less browser-supplied.
|
|
33007
|
+
*/
|
|
33008
|
+
private reportServerAssignedContextKeys;
|
|
30221
33009
|
private normalizePlacementOutput;
|
|
30222
33010
|
private validateTrialStatusShape;
|
|
30223
33011
|
/**
|
|
@@ -32539,6 +35327,46 @@ interface paths {
|
|
|
32539
35327
|
patch?: never;
|
|
32540
35328
|
trace?: never;
|
|
32541
35329
|
};
|
|
35330
|
+
"/api/sdk/user-contexts": {
|
|
35331
|
+
parameters: {
|
|
35332
|
+
query?: never;
|
|
35333
|
+
header?: never;
|
|
35334
|
+
path?: never;
|
|
35335
|
+
cookie?: never;
|
|
35336
|
+
};
|
|
35337
|
+
get?: never;
|
|
35338
|
+
put?: never;
|
|
35339
|
+
/**
|
|
35340
|
+
* Set a user's seat type and built-in dimension values — server key only
|
|
35341
|
+
* @description Upserts the server-written state of one user by (token tenant, user_id): the seat assignment and/or built-in segment dimension values (D-46). Accepts ONLY a Bearer API token whose token_type is `server`; a session, `client`, `mcp` or `public` credential is refused with 401/403. The tenant comes from the token, never from the request. The body is strict: `user_id`, `seat_type_handle`, `builtin_dimensions`, `override`. `seat_type_handle` must be one of the tenant's current seat types (422 otherwise); `null` clears it; omitted leaves it unchanged. Each `builtin_dimensions` value must be in its dimension's vocabulary (422 otherwise); `null` clears it. `override: true` pins the written dimensions so RevTurbine enrichment does not replace them; without it the write is an update that a newer enrichment change supersedes (last writer wins), and a pinned dimension written without it is unpinned (D-47).
|
|
35342
|
+
*/
|
|
35343
|
+
post: operations["upsertServerUserContext"];
|
|
35344
|
+
delete?: never;
|
|
35345
|
+
options?: never;
|
|
35346
|
+
head?: never;
|
|
35347
|
+
patch?: never;
|
|
35348
|
+
trace?: never;
|
|
35349
|
+
};
|
|
35350
|
+
"/api/sdk/user-contexts/{userId}/builtin-dimensions": {
|
|
35351
|
+
parameters: {
|
|
35352
|
+
query?: never;
|
|
35353
|
+
header?: never;
|
|
35354
|
+
path?: never;
|
|
35355
|
+
cookie?: never;
|
|
35356
|
+
};
|
|
35357
|
+
/**
|
|
35358
|
+
* Read a user's server-resolved built-in segment dimensions — server key only
|
|
35359
|
+
* @description Returns the control plane's built-in segment dimensions (subscription state, trial type, activity level, seat type, buyer role, billing health, …) for one user of the token tenant, so a server SDK can overlay them onto the app-supplied context (the server value wins, PD-3). Accepts ONLY a Bearer API token whose token_type is `server`; a session, `client`, `mcp` or `public` credential is refused with 401/403. The tenant comes from the token, never from the request. An unknown user resolves to each dimension's default, not 404. Request-derived dimensions (`region`, `device_type`) are never present.
|
|
35360
|
+
*/
|
|
35361
|
+
get: operations["getServerUserBuiltinDimensions"];
|
|
35362
|
+
put?: never;
|
|
35363
|
+
post?: never;
|
|
35364
|
+
delete?: never;
|
|
35365
|
+
options?: never;
|
|
35366
|
+
head?: never;
|
|
35367
|
+
patch?: never;
|
|
35368
|
+
trace?: never;
|
|
35369
|
+
};
|
|
32542
35370
|
}
|
|
32543
35371
|
interface components {
|
|
32544
35372
|
schemas: {
|
|
@@ -32738,6 +35566,12 @@ interface components {
|
|
|
32738
35566
|
/** @enum {string} */
|
|
32739
35567
|
TreatmentInteractionType: "impression" | "dismiss" | "remind_me_later" | "cta_clicked" | "cta_completed" | "suppress";
|
|
32740
35568
|
TreatmentInteractionBatch: components["schemas"]["TreatmentInteractionInput"][];
|
|
35569
|
+
ServerUserContextUpsert: {
|
|
35570
|
+
user_id: components["schemas"]["Anon_761f976a1da1_1"];
|
|
35571
|
+
seat_type_handle?: components["schemas"]["Anon_abb9584a79fc_1"];
|
|
35572
|
+
builtin_dimensions?: components["schemas"]["Anon_7720c3584d94"];
|
|
35573
|
+
override?: components["schemas"]["Anon_fb9ddeea992e_6"];
|
|
35574
|
+
};
|
|
32741
35575
|
/** @default 1 */
|
|
32742
35576
|
Anon_9370e83b9cfe: number;
|
|
32743
35577
|
/** @default 25 */
|
|
@@ -33097,8 +35931,8 @@ interface components {
|
|
|
33097
35931
|
Anon_f090cb615c84_21: string | null;
|
|
33098
35932
|
Anon_4fc4bfa2adad_10: components["schemas"]["Anon_f090cb615c84_22"];
|
|
33099
35933
|
Anon_f090cb615c84_22: string | null;
|
|
33100
|
-
Anon_fb9ddeea992e_2: components["schemas"]["
|
|
33101
|
-
|
|
35934
|
+
Anon_fb9ddeea992e_2: components["schemas"]["Anon_7cb541e84f22_31"];
|
|
35935
|
+
Anon_7cb541e84f22_31: boolean;
|
|
33102
35936
|
Anon_96967a4faf8d: components["schemas"]["SdkMetaEvent"][];
|
|
33103
35937
|
Anon_53b83ce9a609: components["schemas"]["SdkMetaEventType"];
|
|
33104
35938
|
/** Format: date-time */
|
|
@@ -33164,12 +35998,52 @@ interface components {
|
|
|
33164
35998
|
Anon_9ac136edb99a_18: string;
|
|
33165
35999
|
Anon_94b7b4f4c44a: components["schemas"]["Anon_904af497346b"];
|
|
33166
36000
|
Anon_904af497346b: string | null;
|
|
33167
|
-
Anon_fb9ddeea992e_3: components["schemas"]["
|
|
33168
|
-
|
|
36001
|
+
Anon_fb9ddeea992e_3: components["schemas"]["Anon_7cb541e84f22_32"];
|
|
36002
|
+
Anon_7cb541e84f22_32: boolean;
|
|
33169
36003
|
Anon_a249e58b3222: components["schemas"]["Anon_c65c1fbd5acf_8"];
|
|
33170
36004
|
Anon_c65c1fbd5acf_8: {
|
|
33171
36005
|
[key: string]: unknown;
|
|
33172
36006
|
};
|
|
36007
|
+
Anon_761f976a1da1_1: string;
|
|
36008
|
+
/** @enum {string} */
|
|
36009
|
+
Anon_d1623b956533: "new" | "high" | "medium" | "low" | "inactive";
|
|
36010
|
+
/** @enum {string} */
|
|
36011
|
+
Anon_a68601fc8ae6: "none" | "trial" | "paid" | "cancelled";
|
|
36012
|
+
/** @enum {string} */
|
|
36013
|
+
Anon_2277a9ff20f2: "none" | "free_trial" | "reverse_trial";
|
|
36014
|
+
/** @enum {string} */
|
|
36015
|
+
Anon_36144f6ff1f7: "buyer" | "non_buyer";
|
|
36016
|
+
/** @enum {string} */
|
|
36017
|
+
Anon_2e475c2b8517: "business" | "personal" | "unknown";
|
|
36018
|
+
/** @enum {string} */
|
|
36019
|
+
Anon_ea3031eacbdb: "no_billing" | "good_standing" | "trial_payment_method_attached" | "payment_method_missing" | "payment_failed" | "payment_overdue" | "cancelled";
|
|
36020
|
+
/** @enum {string} */
|
|
36021
|
+
Anon_4304284c431c: "us_canada" | "europe" | "rest_of_world";
|
|
36022
|
+
/** @enum {string} */
|
|
36023
|
+
Anon_eca965e9cb3d: "desktop" | "mobile" | "tablet" | "unknown";
|
|
36024
|
+
Anon_abb9584a79fc_1: components["schemas"]["Anon_97d5d0070850_1"];
|
|
36025
|
+
Anon_97d5d0070850_1: string | null;
|
|
36026
|
+
Anon_7720c3584d94: components["schemas"]["Anon_4b790ef08790"];
|
|
36027
|
+
Anon_4b790ef08790: {
|
|
36028
|
+
activity_level?: components["schemas"]["Anon_8f515c161b83"];
|
|
36029
|
+
subscription_state?: components["schemas"]["Anon_ed91fb5f5619"];
|
|
36030
|
+
trial_type?: components["schemas"]["Anon_888d7176e40e"];
|
|
36031
|
+
buyer_role?: components["schemas"]["Anon_6bead9fc16d2"];
|
|
36032
|
+
email_type?: components["schemas"]["Anon_e92ea640abba"];
|
|
36033
|
+
billing_health?: components["schemas"]["Anon_59a9cbd75a66"];
|
|
36034
|
+
region?: components["schemas"]["Anon_10d900d3a9e4"];
|
|
36035
|
+
device_type?: components["schemas"]["Anon_01efac8cdc3b"];
|
|
36036
|
+
};
|
|
36037
|
+
Anon_8f515c161b83: components["schemas"]["Anon_d1623b956533"] | null;
|
|
36038
|
+
Anon_ed91fb5f5619: components["schemas"]["Anon_a68601fc8ae6"] | null;
|
|
36039
|
+
Anon_888d7176e40e: components["schemas"]["Anon_2277a9ff20f2"] | null;
|
|
36040
|
+
Anon_6bead9fc16d2: components["schemas"]["Anon_36144f6ff1f7"] | null;
|
|
36041
|
+
Anon_e92ea640abba: components["schemas"]["Anon_2e475c2b8517"] | null;
|
|
36042
|
+
Anon_59a9cbd75a66: components["schemas"]["Anon_ea3031eacbdb"] | null;
|
|
36043
|
+
Anon_10d900d3a9e4: components["schemas"]["Anon_4304284c431c"] | null;
|
|
36044
|
+
Anon_01efac8cdc3b: components["schemas"]["Anon_eca965e9cb3d"] | null;
|
|
36045
|
+
Anon_fb9ddeea992e_6: components["schemas"]["Anon_7cb541e84f22_35"];
|
|
36046
|
+
Anon_7cb541e84f22_35: boolean;
|
|
33173
36047
|
Plan: {
|
|
33174
36048
|
id: components["schemas"]["Anon_fb248bf5a9f7_9"];
|
|
33175
36049
|
created_at: components["schemas"]["Anon_be3e2585472d_2"];
|
|
@@ -33269,7 +36143,7 @@ interface components {
|
|
|
33269
36143
|
currency: components["schemas"]["Anon_1788a9a8a0b9_2"];
|
|
33270
36144
|
pricing_model: components["schemas"]["Anon_1b09b93e2f83_5"];
|
|
33271
36145
|
nickname: components["schemas"]["Anon_f7fb9744a6e4_14"];
|
|
33272
|
-
is_mock: components["schemas"]["
|
|
36146
|
+
is_mock: components["schemas"]["Anon_062d958a93c4_5"];
|
|
33273
36147
|
last_updated_from_stripe: components["schemas"]["Anon_711dc9708535_7"];
|
|
33274
36148
|
};
|
|
33275
36149
|
Entitlement: {
|
|
@@ -33327,13 +36201,13 @@ interface components {
|
|
|
33327
36201
|
rate_value?: components["schemas"]["Anon_9c7f41b09bde_4"];
|
|
33328
36202
|
initial_grant?: components["schemas"]["Anon_9c7f41b09bde_5"];
|
|
33329
36203
|
allowance_value?: components["schemas"]["Anon_811366723713_3"];
|
|
33330
|
-
rollover_enabled?: components["schemas"]["
|
|
36204
|
+
rollover_enabled?: components["schemas"]["Anon_fb9ddeea992e_7"];
|
|
33331
36205
|
max_balance: components["schemas"]["Anon_d84a41962ed1_1"];
|
|
33332
36206
|
seat_type_id?: components["schemas"]["Anon_96f9066c2fdc_38"];
|
|
33333
36207
|
included_count?: components["schemas"]["Anon_5d154a3d9b9e_1"];
|
|
33334
36208
|
at_limit_behavior?: components["schemas"]["Anon_28e076aa98f9_1"];
|
|
33335
36209
|
stripe_metered_price_id?: components["schemas"]["Anon_96f9066c2fdc_39"];
|
|
33336
|
-
enabled?: components["schemas"]["
|
|
36210
|
+
enabled?: components["schemas"]["Anon_fb9ddeea992e_8"];
|
|
33337
36211
|
allocation?: components["schemas"]["Anon_a7c491664ac5_4"];
|
|
33338
36212
|
max_seats?: components["schemas"]["Anon_0dc47bdde23b_1"];
|
|
33339
36213
|
amount_cents?: components["schemas"]["Anon_18968514c96d_1"];
|
|
@@ -33370,13 +36244,13 @@ interface components {
|
|
|
33370
36244
|
rate_value?: components["schemas"]["Anon_9c7f41b09bde_4"];
|
|
33371
36245
|
initial_grant?: components["schemas"]["Anon_9c7f41b09bde_5"];
|
|
33372
36246
|
allowance_value?: components["schemas"]["Anon_811366723713_3"];
|
|
33373
|
-
rollover_enabled?: components["schemas"]["
|
|
36247
|
+
rollover_enabled?: components["schemas"]["Anon_fb9ddeea992e_7"];
|
|
33374
36248
|
max_balance: components["schemas"]["Anon_d84a41962ed1_1"];
|
|
33375
36249
|
seat_type_id?: components["schemas"]["Anon_96f9066c2fdc_38"];
|
|
33376
36250
|
included_count?: components["schemas"]["Anon_5d154a3d9b9e_1"];
|
|
33377
36251
|
at_limit_behavior?: components["schemas"]["Anon_28e076aa98f9_1"];
|
|
33378
36252
|
stripe_metered_price_id?: components["schemas"]["Anon_96f9066c2fdc_39"];
|
|
33379
|
-
enabled?: components["schemas"]["
|
|
36253
|
+
enabled?: components["schemas"]["Anon_fb9ddeea992e_8"];
|
|
33380
36254
|
allocation?: components["schemas"]["Anon_a7c491664ac5_4"];
|
|
33381
36255
|
max_seats?: components["schemas"]["Anon_0dc47bdde23b_1"];
|
|
33382
36256
|
amount_cents?: components["schemas"]["Anon_18968514c96d_1"];
|
|
@@ -33406,7 +36280,7 @@ interface components {
|
|
|
33406
36280
|
rule_id: components["schemas"]["Anon_57796118d046_36"];
|
|
33407
36281
|
experiment_id: components["schemas"]["Anon_57796118d046_37"];
|
|
33408
36282
|
variant_name: components["schemas"]["Anon_872e58432369_1"];
|
|
33409
|
-
is_control: components["schemas"]["
|
|
36283
|
+
is_control: components["schemas"]["Anon_062d958a93c4_6"];
|
|
33410
36284
|
override_fields: components["schemas"]["Anon_5142f8473790_6"];
|
|
33411
36285
|
};
|
|
33412
36286
|
Placement: {
|
|
@@ -33530,6 +36404,7 @@ interface components {
|
|
|
33530
36404
|
first_seen: components["schemas"]["Anon_be3e2585472d_4"];
|
|
33531
36405
|
last_seen: components["schemas"]["Anon_be3e2585472d_5"];
|
|
33532
36406
|
route?: components["schemas"]["Anon_babb60294324"];
|
|
36407
|
+
slot_name?: components["schemas"]["Anon_34e621e2f47f"];
|
|
33533
36408
|
status: components["schemas"]["Anon_4c42c2590496"];
|
|
33534
36409
|
placement_count: components["schemas"]["Anon_b32f11b2ff5e_2"];
|
|
33535
36410
|
};
|
|
@@ -33538,6 +36413,20 @@ interface components {
|
|
|
33538
36413
|
null: {
|
|
33539
36414
|
accepted: components["schemas"]["Anon_274ba4ca49d5_28"];
|
|
33540
36415
|
};
|
|
36416
|
+
ServerUserContextAssignment: {
|
|
36417
|
+
tenant_id: components["schemas"]["Anon_fb248bf5a9f7_10"];
|
|
36418
|
+
user_id: components["schemas"]["Anon_761f976a1da1_7"];
|
|
36419
|
+
updated_at: components["schemas"]["Anon_be3e2585472d_3"];
|
|
36420
|
+
seat_type_handle: components["schemas"]["Anon_c5d45818321f"];
|
|
36421
|
+
builtin_dimensions: components["schemas"]["Anon_fc091757ffd3"];
|
|
36422
|
+
overrides: components["schemas"]["Anon_df4ebd6a2dc0"];
|
|
36423
|
+
};
|
|
36424
|
+
ServerUserBuiltinDimensions: {
|
|
36425
|
+
tenant_id: components["schemas"]["Anon_fb248bf5a9f7_10"];
|
|
36426
|
+
user_id: components["schemas"]["Anon_761f976a1da1_7"];
|
|
36427
|
+
builtin_dimensions: components["schemas"]["Anon_ad3c35aa933d"];
|
|
36428
|
+
resolved_at: components["schemas"]["Anon_3c179513a5d9_21"];
|
|
36429
|
+
};
|
|
33541
36430
|
Anon_fb248bf5a9f7_9: string;
|
|
33542
36431
|
/** Format: date-time */
|
|
33543
36432
|
Anon_be3e2585472d_2: string;
|
|
@@ -33557,11 +36446,11 @@ interface components {
|
|
|
33557
36446
|
Anon_f7fb9744a6e4_11: components["schemas"]["Anon_f090cb615c84_25"];
|
|
33558
36447
|
Anon_f090cb615c84_25: string | null;
|
|
33559
36448
|
/** @default true */
|
|
33560
|
-
Anon_d295959bf4db_2: components["schemas"]["
|
|
33561
|
-
|
|
36449
|
+
Anon_d295959bf4db_2: components["schemas"]["Anon_7cb541e84f22_39"];
|
|
36450
|
+
Anon_7cb541e84f22_39: boolean;
|
|
33562
36451
|
/** @default false */
|
|
33563
|
-
Anon_4dc549443053_1: components["schemas"]["
|
|
33564
|
-
|
|
36452
|
+
Anon_4dc549443053_1: components["schemas"]["Anon_7cb541e84f22_40"];
|
|
36453
|
+
Anon_7cb541e84f22_40: boolean;
|
|
33565
36454
|
/** @default null */
|
|
33566
36455
|
Anon_e4ee8e45dcea_1: components["schemas"]["Anon_b0c21ae8f968_14"];
|
|
33567
36456
|
Anon_b0c21ae8f968_14: string | null;
|
|
@@ -33645,8 +36534,8 @@ interface components {
|
|
|
33645
36534
|
Anon_f7fb9744a6e4_14: components["schemas"]["Anon_f090cb615c84_28"];
|
|
33646
36535
|
Anon_f090cb615c84_28: string | null;
|
|
33647
36536
|
/** @default false */
|
|
33648
|
-
|
|
33649
|
-
|
|
36537
|
+
Anon_062d958a93c4_5: components["schemas"]["Anon_7cb541e84f22_41"];
|
|
36538
|
+
Anon_7cb541e84f22_41: boolean;
|
|
33650
36539
|
Anon_711dc9708535_7: components["schemas"]["Anon_11c9ad639448_1"];
|
|
33651
36540
|
Anon_b0c21ae8f968_15: string | null;
|
|
33652
36541
|
/** @default null */
|
|
@@ -33705,8 +36594,8 @@ interface components {
|
|
|
33705
36594
|
Anon_cddf8275afa1_9: number;
|
|
33706
36595
|
Anon_811366723713_3: components["schemas"]["Anon_4c1d2cc17cf8_3"];
|
|
33707
36596
|
Anon_4c1d2cc17cf8_3: number | "unlimited";
|
|
33708
|
-
|
|
33709
|
-
|
|
36597
|
+
Anon_fb9ddeea992e_7: components["schemas"]["Anon_7cb541e84f22_42"];
|
|
36598
|
+
Anon_7cb541e84f22_42: boolean;
|
|
33710
36599
|
/** @default null */
|
|
33711
36600
|
Anon_d84a41962ed1_1: components["schemas"]["Anon_853b74b4f5a9_2"];
|
|
33712
36601
|
Anon_853b74b4f5a9_2: (number | "unlimited") | null;
|
|
@@ -33719,8 +36608,8 @@ interface components {
|
|
|
33719
36608
|
Anon_408f15090b22_1: "hard_cap" | "auto_upgrade_at_renewal";
|
|
33720
36609
|
Anon_96f9066c2fdc_39: components["schemas"]["Anon_00404e686415_43"];
|
|
33721
36610
|
Anon_00404e686415_43: string;
|
|
33722
|
-
|
|
33723
|
-
|
|
36611
|
+
Anon_fb9ddeea992e_8: components["schemas"]["Anon_7cb541e84f22_43"];
|
|
36612
|
+
Anon_7cb541e84f22_43: boolean;
|
|
33724
36613
|
Anon_a7c491664ac5_4: components["schemas"]["UsageAllocation"];
|
|
33725
36614
|
Anon_0dc47bdde23b_1: components["schemas"]["Anon_853b74b4f5a9_3"];
|
|
33726
36615
|
Anon_853b74b4f5a9_3: (number | "unlimited") | null;
|
|
@@ -33739,8 +36628,8 @@ interface components {
|
|
|
33739
36628
|
Anon_57796118d046_37: string;
|
|
33740
36629
|
Anon_872e58432369_1: string;
|
|
33741
36630
|
/** @default false */
|
|
33742
|
-
|
|
33743
|
-
|
|
36631
|
+
Anon_062d958a93c4_6: components["schemas"]["Anon_7cb541e84f22_44"];
|
|
36632
|
+
Anon_7cb541e84f22_44: boolean;
|
|
33744
36633
|
/** @default {} */
|
|
33745
36634
|
Anon_5142f8473790_6: components["schemas"]["Anon_c65c1fbd5acf_12"];
|
|
33746
36635
|
Anon_c65c1fbd5acf_12: {
|
|
@@ -33855,6 +36744,8 @@ interface components {
|
|
|
33855
36744
|
Anon_be3e2585472d_5: string;
|
|
33856
36745
|
Anon_babb60294324: components["schemas"]["Anon_2df8ddc2275c"];
|
|
33857
36746
|
Anon_2df8ddc2275c: string | null;
|
|
36747
|
+
Anon_34e621e2f47f: components["schemas"]["Anon_8c923fd28c9a_1"];
|
|
36748
|
+
Anon_8c923fd28c9a_1: string | null;
|
|
33858
36749
|
/** @default idle */
|
|
33859
36750
|
Anon_4c42c2590496: components["schemas"]["SurfaceSlotStatus"];
|
|
33860
36751
|
/** @default 0 */
|
|
@@ -33911,6 +36802,70 @@ interface components {
|
|
|
33911
36802
|
};
|
|
33912
36803
|
Anon_f27cb44c32f6_19: components["schemas"]["Anon_f2d1b3e449b4_1"];
|
|
33913
36804
|
Anon_274ba4ca49d5_28: number;
|
|
36805
|
+
Anon_761f976a1da1_7: string;
|
|
36806
|
+
Anon_a328336b75d6: {
|
|
36807
|
+
activity_level?: components["schemas"]["Anon_3b35bf76a160"];
|
|
36808
|
+
subscription_state?: components["schemas"]["Anon_dd3586a1ddbf"];
|
|
36809
|
+
trial_type?: components["schemas"]["Anon_a76d44f71d99"];
|
|
36810
|
+
seat_type?: components["schemas"]["Anon_4d82b9ae113d"];
|
|
36811
|
+
buyer_role?: components["schemas"]["Anon_e49ebf4157ee"];
|
|
36812
|
+
email_type?: components["schemas"]["Anon_04c0f0c7b77f"];
|
|
36813
|
+
billing_health?: components["schemas"]["Anon_0da5f739d027"];
|
|
36814
|
+
region?: components["schemas"]["Anon_56e83e25debd"];
|
|
36815
|
+
device_type?: components["schemas"]["Anon_decf640c9996"];
|
|
36816
|
+
};
|
|
36817
|
+
Anon_3b35bf76a160: components["schemas"]["Anon_d1623b956533_1"];
|
|
36818
|
+
/** @enum {string} */
|
|
36819
|
+
Anon_d1623b956533_1: "new" | "high" | "medium" | "low" | "inactive";
|
|
36820
|
+
Anon_dd3586a1ddbf: components["schemas"]["Anon_a68601fc8ae6_1"];
|
|
36821
|
+
/** @enum {string} */
|
|
36822
|
+
Anon_a68601fc8ae6_1: "none" | "trial" | "paid" | "cancelled";
|
|
36823
|
+
Anon_a76d44f71d99: components["schemas"]["Anon_2277a9ff20f2_1"];
|
|
36824
|
+
/** @enum {string} */
|
|
36825
|
+
Anon_2277a9ff20f2_1: "none" | "free_trial" | "reverse_trial";
|
|
36826
|
+
Anon_4d82b9ae113d: components["schemas"]["Anon_d85e54d83006_1"];
|
|
36827
|
+
Anon_d85e54d83006_1: string;
|
|
36828
|
+
Anon_e49ebf4157ee: components["schemas"]["Anon_36144f6ff1f7_1"];
|
|
36829
|
+
/** @enum {string} */
|
|
36830
|
+
Anon_36144f6ff1f7_1: "buyer" | "non_buyer";
|
|
36831
|
+
Anon_04c0f0c7b77f: components["schemas"]["Anon_2e475c2b8517_1"];
|
|
36832
|
+
/** @enum {string} */
|
|
36833
|
+
Anon_2e475c2b8517_1: "business" | "personal" | "unknown";
|
|
36834
|
+
Anon_0da5f739d027: components["schemas"]["Anon_ea3031eacbdb_1"];
|
|
36835
|
+
/** @enum {string} */
|
|
36836
|
+
Anon_ea3031eacbdb_1: "no_billing" | "good_standing" | "trial_payment_method_attached" | "payment_method_missing" | "payment_failed" | "payment_overdue" | "cancelled";
|
|
36837
|
+
Anon_56e83e25debd: components["schemas"]["Anon_4304284c431c_1"];
|
|
36838
|
+
/** @enum {string} */
|
|
36839
|
+
Anon_4304284c431c_1: "us_canada" | "europe" | "rest_of_world";
|
|
36840
|
+
Anon_decf640c9996: components["schemas"]["Anon_eca965e9cb3d_1"];
|
|
36841
|
+
/** @enum {string} */
|
|
36842
|
+
Anon_eca965e9cb3d_1: "desktop" | "mobile" | "tablet" | "unknown";
|
|
36843
|
+
Anon_c5d45818321f: components["schemas"]["Anon_0083ff3642e4"] | null;
|
|
36844
|
+
Anon_0083ff3642e4: string;
|
|
36845
|
+
Anon_fc091757ffd3: {
|
|
36846
|
+
activity_level?: components["schemas"]["Anon_3b35bf76a160_1"];
|
|
36847
|
+
subscription_state?: components["schemas"]["Anon_dd3586a1ddbf_1"];
|
|
36848
|
+
trial_type?: components["schemas"]["Anon_a76d44f71d99_1"];
|
|
36849
|
+
buyer_role?: components["schemas"]["Anon_e49ebf4157ee_1"];
|
|
36850
|
+
email_type?: components["schemas"]["Anon_04c0f0c7b77f_1"];
|
|
36851
|
+
billing_health?: components["schemas"]["Anon_0da5f739d027_1"];
|
|
36852
|
+
region?: components["schemas"]["Anon_56e83e25debd_1"];
|
|
36853
|
+
device_type?: components["schemas"]["Anon_decf640c9996_1"];
|
|
36854
|
+
};
|
|
36855
|
+
Anon_3b35bf76a160_1: components["schemas"]["Anon_d1623b956533_1"];
|
|
36856
|
+
Anon_dd3586a1ddbf_1: components["schemas"]["Anon_a68601fc8ae6_1"];
|
|
36857
|
+
Anon_a76d44f71d99_1: components["schemas"]["Anon_2277a9ff20f2_1"];
|
|
36858
|
+
Anon_e49ebf4157ee_1: components["schemas"]["Anon_36144f6ff1f7_1"];
|
|
36859
|
+
Anon_04c0f0c7b77f_1: components["schemas"]["Anon_2e475c2b8517_1"];
|
|
36860
|
+
Anon_0da5f739d027_1: components["schemas"]["Anon_ea3031eacbdb_1"];
|
|
36861
|
+
Anon_56e83e25debd_1: components["schemas"]["Anon_4304284c431c_1"];
|
|
36862
|
+
Anon_decf640c9996_1: components["schemas"]["Anon_eca965e9cb3d_1"];
|
|
36863
|
+
Anon_df4ebd6a2dc0: components["schemas"]["Anon_0375edee48c3"][];
|
|
36864
|
+
/** @enum {string} */
|
|
36865
|
+
Anon_0375edee48c3: "activity_level" | "subscription_state" | "trial_type" | "buyer_role" | "email_type" | "billing_health" | "region" | "device_type";
|
|
36866
|
+
Anon_ad3c35aa933d: components["schemas"]["Anon_a328336b75d6"];
|
|
36867
|
+
/** Format: date-time */
|
|
36868
|
+
Anon_3c179513a5d9_21: string;
|
|
33914
36869
|
/** @default usd */
|
|
33915
36870
|
CurrencyOutput: components["schemas"]["Anon_063c0cce3710_1"];
|
|
33916
36871
|
EntitlementRuleTargetOutput: {
|
|
@@ -35816,6 +38771,133 @@ interface operations {
|
|
|
35816
38771
|
};
|
|
35817
38772
|
};
|
|
35818
38773
|
};
|
|
38774
|
+
upsertServerUserContext: {
|
|
38775
|
+
parameters: {
|
|
38776
|
+
query?: never;
|
|
38777
|
+
header?: never;
|
|
38778
|
+
path?: never;
|
|
38779
|
+
cookie?: never;
|
|
38780
|
+
};
|
|
38781
|
+
requestBody: {
|
|
38782
|
+
content: {
|
|
38783
|
+
"application/json": components["schemas"]["ServerUserContextUpsert"];
|
|
38784
|
+
};
|
|
38785
|
+
};
|
|
38786
|
+
responses: {
|
|
38787
|
+
/** @description The resulting server-written state */
|
|
38788
|
+
200: {
|
|
38789
|
+
headers: {
|
|
38790
|
+
[name: string]: unknown;
|
|
38791
|
+
};
|
|
38792
|
+
content: {
|
|
38793
|
+
"application/json": components["schemas"]["ServerUserContextAssignment"];
|
|
38794
|
+
};
|
|
38795
|
+
};
|
|
38796
|
+
/** @description Malformed body, an empty write, or a key outside user_id / seat_type_handle / builtin_dimensions / override */
|
|
38797
|
+
400: {
|
|
38798
|
+
headers: {
|
|
38799
|
+
[name: string]: unknown;
|
|
38800
|
+
};
|
|
38801
|
+
content: {
|
|
38802
|
+
"application/json": components["schemas"]["Anon_ed3fcc71dea7"];
|
|
38803
|
+
};
|
|
38804
|
+
};
|
|
38805
|
+
/** @description Missing or invalid credential */
|
|
38806
|
+
401: {
|
|
38807
|
+
headers: {
|
|
38808
|
+
[name: string]: unknown;
|
|
38809
|
+
};
|
|
38810
|
+
content: {
|
|
38811
|
+
"application/json": components["schemas"]["Anon_ed3fcc71dea7"];
|
|
38812
|
+
};
|
|
38813
|
+
};
|
|
38814
|
+
/** @description Credential is not a server API token */
|
|
38815
|
+
403: {
|
|
38816
|
+
headers: {
|
|
38817
|
+
[name: string]: unknown;
|
|
38818
|
+
};
|
|
38819
|
+
content: {
|
|
38820
|
+
"application/json": components["schemas"]["Anon_ed3fcc71dea7"];
|
|
38821
|
+
};
|
|
38822
|
+
};
|
|
38823
|
+
/** @description seat_type_handle is not one of the tenant's current seat types, or a builtin_dimensions value is outside its vocabulary */
|
|
38824
|
+
422: {
|
|
38825
|
+
headers: {
|
|
38826
|
+
[name: string]: unknown;
|
|
38827
|
+
};
|
|
38828
|
+
content: {
|
|
38829
|
+
"application/json": components["schemas"]["Anon_ed3fcc71dea7"];
|
|
38830
|
+
};
|
|
38831
|
+
};
|
|
38832
|
+
/** @description Error response */
|
|
38833
|
+
default: {
|
|
38834
|
+
headers: {
|
|
38835
|
+
[name: string]: unknown;
|
|
38836
|
+
};
|
|
38837
|
+
content: {
|
|
38838
|
+
"application/json": components["schemas"]["Anon_ed3fcc71dea7"];
|
|
38839
|
+
};
|
|
38840
|
+
};
|
|
38841
|
+
};
|
|
38842
|
+
};
|
|
38843
|
+
getServerUserBuiltinDimensions: {
|
|
38844
|
+
parameters: {
|
|
38845
|
+
query?: never;
|
|
38846
|
+
header?: never;
|
|
38847
|
+
path: {
|
|
38848
|
+
userId: string;
|
|
38849
|
+
};
|
|
38850
|
+
cookie?: never;
|
|
38851
|
+
};
|
|
38852
|
+
requestBody?: never;
|
|
38853
|
+
responses: {
|
|
38854
|
+
/** @description The user's server-resolved built-in dimensions */
|
|
38855
|
+
200: {
|
|
38856
|
+
headers: {
|
|
38857
|
+
[name: string]: unknown;
|
|
38858
|
+
};
|
|
38859
|
+
content: {
|
|
38860
|
+
"application/json": components["schemas"]["ServerUserBuiltinDimensions"];
|
|
38861
|
+
};
|
|
38862
|
+
};
|
|
38863
|
+
/** @description Malformed user id */
|
|
38864
|
+
400: {
|
|
38865
|
+
headers: {
|
|
38866
|
+
[name: string]: unknown;
|
|
38867
|
+
};
|
|
38868
|
+
content: {
|
|
38869
|
+
"application/json": components["schemas"]["Anon_ed3fcc71dea7"];
|
|
38870
|
+
};
|
|
38871
|
+
};
|
|
38872
|
+
/** @description Missing or invalid credential */
|
|
38873
|
+
401: {
|
|
38874
|
+
headers: {
|
|
38875
|
+
[name: string]: unknown;
|
|
38876
|
+
};
|
|
38877
|
+
content: {
|
|
38878
|
+
"application/json": components["schemas"]["Anon_ed3fcc71dea7"];
|
|
38879
|
+
};
|
|
38880
|
+
};
|
|
38881
|
+
/** @description Credential is not a server API token */
|
|
38882
|
+
403: {
|
|
38883
|
+
headers: {
|
|
38884
|
+
[name: string]: unknown;
|
|
38885
|
+
};
|
|
38886
|
+
content: {
|
|
38887
|
+
"application/json": components["schemas"]["Anon_ed3fcc71dea7"];
|
|
38888
|
+
};
|
|
38889
|
+
};
|
|
38890
|
+
/** @description Error response */
|
|
38891
|
+
default: {
|
|
38892
|
+
headers: {
|
|
38893
|
+
[name: string]: unknown;
|
|
38894
|
+
};
|
|
38895
|
+
content: {
|
|
38896
|
+
"application/json": components["schemas"]["Anon_ed3fcc71dea7"];
|
|
38897
|
+
};
|
|
38898
|
+
};
|
|
38899
|
+
};
|
|
38900
|
+
};
|
|
35819
38901
|
}
|
|
35820
38902
|
|
|
35821
38903
|
/**
|
|
@@ -36502,8 +39584,18 @@ declare function mergeTheme(input?: RevTurbineThemeInput | null, base?: Readonly
|
|
|
36502
39584
|
/** Clear persisted theme (useful on identity reset). */
|
|
36503
39585
|
declare function clearPersistedTheme(tenantId: string, storage?: RevTurbineStorage): void;
|
|
36504
39586
|
interface ThemeLoaderOptions {
|
|
36505
|
-
/**
|
|
36506
|
-
|
|
39587
|
+
/**
|
|
39588
|
+
* RevTurbine tenant identifier — optional (BL-0335). Sent as `x-tenant-id`
|
|
39589
|
+
* only when present; the key alone identifies the tenant, and the control
|
|
39590
|
+
* plane ignores (with a warning) a value that differs from it (D-49).
|
|
39591
|
+
*/
|
|
39592
|
+
tenantId?: string;
|
|
39593
|
+
/**
|
|
39594
|
+
* Namespace for the locally persisted theme. Defaults to `tenantId`, then
|
|
39595
|
+
* `'local'` — so an integration that passed a tenant id keeps its existing
|
|
39596
|
+
* cache key.
|
|
39597
|
+
*/
|
|
39598
|
+
storageScope?: string;
|
|
36507
39599
|
/** Base URL of the RevTurbine API Edge. */
|
|
36508
39600
|
endpoint: string;
|
|
36509
39601
|
/** API key for authentication. */
|
|
@@ -36623,6 +39715,31 @@ interface ClientSessionResult {
|
|
|
36623
39715
|
/** ISO-8601 timestamp at which the token expires. */
|
|
36624
39716
|
expires_at: string;
|
|
36625
39717
|
}
|
|
39718
|
+
/**
|
|
39719
|
+
* Options for {@link RevTurbineServer.assignSeatType}: built-in dimension
|
|
39720
|
+
* values to write in the SAME server-key upsert as the seat (BL-0382). See
|
|
39721
|
+
* {@link SetBuiltinDimensionsOptions} for `override`.
|
|
39722
|
+
*/
|
|
39723
|
+
interface AssignSeatTypeOptions {
|
|
39724
|
+
/** Built-in dimension values to set (or clear with `null`) with the seat. */
|
|
39725
|
+
builtinDimensions?: ServerBuiltinDimensionsWrite;
|
|
39726
|
+
/** Pin the `builtinDimensions` written in this call (D-47). Default `false`. */
|
|
39727
|
+
override?: boolean;
|
|
39728
|
+
}
|
|
39729
|
+
/** Options for {@link RevTurbineServer.setBuiltinDimensions}. */
|
|
39730
|
+
interface SetBuiltinDimensionsOptions {
|
|
39731
|
+
/**
|
|
39732
|
+
* `false` (default) — an UPDATE: the value is delivered until a newer
|
|
39733
|
+
* RevTurbine enrichment change (Stripe subscription / trial / billing, the
|
|
39734
|
+
* activity job, request signals) supersedes it — last writer wins,
|
|
39735
|
+
* enrichment included. Writing a pinned dimension without the flag UNPINS it.
|
|
39736
|
+
*
|
|
39737
|
+
* `true` — an OVERRIDE: the values written in this call are pinned, and
|
|
39738
|
+
* RevTurbine enrichment never replaces them until you write that dimension
|
|
39739
|
+
* again without the flag, or clear it with `null` (ruling D-47).
|
|
39740
|
+
*/
|
|
39741
|
+
override?: boolean;
|
|
39742
|
+
}
|
|
36626
39743
|
/** Options for initializing the RevTurbine server-side SDK. */
|
|
36627
39744
|
interface RevTurbineServerOptions {
|
|
36628
39745
|
/** Your RevTurbine tenant identifier. */
|
|
@@ -36648,8 +39765,9 @@ interface RevTurbineServerOptions {
|
|
|
36648
39765
|
* RevTurbine Server-Side SDK Client.
|
|
36649
39766
|
*
|
|
36650
39767
|
* Holds the customer's **server key** and mints short-lived, browser-safe
|
|
36651
|
-
* `rt_client_` session keys for one end user at a time
|
|
36652
|
-
*
|
|
39768
|
+
* `rt_client_` session keys for one end user at a time, and writes server-only
|
|
39769
|
+
* user state such as a user's seat-type assignment. Evaluation does not happen
|
|
39770
|
+
* here (plan 192) — it runs in the customer SDKs.
|
|
36653
39771
|
*
|
|
36654
39772
|
* Designed for:
|
|
36655
39773
|
* - Next.js RSC / route handlers / `getServerSideProps`
|
|
@@ -36671,12 +39789,20 @@ interface RevTurbineServerOptions {
|
|
|
36671
39789
|
* ```
|
|
36672
39790
|
*/
|
|
36673
39791
|
|
|
39792
|
+
/**
|
|
39793
|
+
* The RevTurbine server-side client. Holds the server key; mints client
|
|
39794
|
+
* sessions ({@link RevTurbineServer.createClientSession}), writes
|
|
39795
|
+
* server-only user state ({@link RevTurbineServer.assignSeatType}) and reads
|
|
39796
|
+
* the user's server-resolved built-in dimensions
|
|
39797
|
+
* ({@link RevTurbineServer.getBuiltinDimensions}).
|
|
39798
|
+
*/
|
|
36674
39799
|
declare class RevTurbineServer {
|
|
36675
39800
|
private readonly tenantId;
|
|
36676
39801
|
private readonly apiKey;
|
|
36677
39802
|
private readonly endpoint;
|
|
36678
39803
|
private readonly defaultTtlSeconds;
|
|
36679
39804
|
private readonly fetchFn;
|
|
39805
|
+
private readonly api;
|
|
36680
39806
|
constructor(options: RevTurbineServerOptions);
|
|
36681
39807
|
/**
|
|
36682
39808
|
* Client-session minting namespace (plan 157). Ergonomic form of
|
|
@@ -36711,9 +39837,128 @@ declare class RevTurbineServer {
|
|
|
36711
39837
|
* The error carries only the HTTP status + request id — never the key.
|
|
36712
39838
|
*/
|
|
36713
39839
|
createClientSession(input: CreateClientSessionInput): Promise<ClientSessionResult>;
|
|
39840
|
+
/**
|
|
39841
|
+
* Assign a user's seat type, or clear it with `null` (plan 279 TASK-16a).
|
|
39842
|
+
*
|
|
39843
|
+
* Calls `POST /api/sdk/user-contexts` (`upsertServerUserContext`) with exactly
|
|
39844
|
+
* `{ user_id, seat_type_handle }`, authenticated by the server key this client
|
|
39845
|
+
* holds. The tenant is taken from that key — it is never a parameter, and no
|
|
39846
|
+
* tenant header is sent.
|
|
39847
|
+
*
|
|
39848
|
+
* **Server-written only (D-36).** A user's seat-type assignment is written
|
|
39849
|
+
* only by the tenant's backend through this server-key call (or by RevTurbine
|
|
39850
|
+
* enrichment). It is never set from the browser: the client SDK's
|
|
39851
|
+
* `identify()` / `update()` do not accept `seat_type_handle`, and the endpoint
|
|
39852
|
+
* refuses every credential except a server key.
|
|
39853
|
+
*
|
|
39854
|
+
* Pass `options.builtinDimensions` (and `options.override`) to set built-in
|
|
39855
|
+
* dimension values in the same write — see {@link setBuiltinDimensions} for
|
|
39856
|
+
* their semantics (BL-0382).
|
|
39857
|
+
*
|
|
39858
|
+
* @param userId - The tenant's own identifier for the user (non-empty).
|
|
39859
|
+
* @param seatTypeHandle - One of the tenant's current seat-type handles, or
|
|
39860
|
+
* `null` to clear the user's assignment.
|
|
39861
|
+
* @param options - Optional built-in dimension values to write with the seat.
|
|
39862
|
+
* @returns The resulting state, including the stored `seat_type_handle`, the
|
|
39863
|
+
* customer-set `builtin_dimensions`, the pinned `overrides` and `updated_at`.
|
|
39864
|
+
* @throws {RevTurbineSeatAssignmentError} if the control plane refuses the
|
|
39865
|
+
* write — `reason` is `unknown_seat_type` for a 422 on the handle,
|
|
39866
|
+
* `unknown_dimension_value` for a 422 on a dimension value, and `forbidden`
|
|
39867
|
+
* for a 403 (the key is not a server key). The error never carries the key.
|
|
39868
|
+
*
|
|
39869
|
+
* @example
|
|
39870
|
+
* ```ts
|
|
39871
|
+
* await server.assignSeatType('user_123', 'admin');
|
|
39872
|
+
* await server.assignSeatType('user_123', null); // clear the assignment
|
|
39873
|
+
* ```
|
|
39874
|
+
*/
|
|
39875
|
+
assignSeatType(userId: string, seatTypeHandle: string | null, options?: AssignSeatTypeOptions): Promise<ServerUserContextAssignment>;
|
|
39876
|
+
/**
|
|
39877
|
+
* Set a user's built-in segment dimension values from your backend (BL-0382,
|
|
39878
|
+
* rulings D-46 / D-47).
|
|
39879
|
+
*
|
|
39880
|
+
* Calls `POST /api/sdk/user-contexts` (`upsertServerUserContext`) with
|
|
39881
|
+
* `{ user_id, builtin_dimensions, override }`, authenticated by the server key
|
|
39882
|
+
* this client holds. The tenant is taken from that key — never a parameter.
|
|
39883
|
+
* The write is an UPSERT per dimension: dimensions you do not name are left
|
|
39884
|
+
* alone, and `null` clears a dimension (its value and its pin). The seat
|
|
39885
|
+
* assignment is untouched (use {@link assignSeatType}).
|
|
39886
|
+
*
|
|
39887
|
+
* Settable dimensions: `subscription_state`, `trial_type`, `billing_health`,
|
|
39888
|
+
* `activity_level`, `buyer_role`, `email_type`, `region`, `device_type` —
|
|
39889
|
+
* each takes a value from its closed vocabulary (the types enforce it).
|
|
39890
|
+
* `seat_type` is not settable here; it is `assignSeatType`.
|
|
39891
|
+
*
|
|
39892
|
+
* The control plane applies the value before delivery, so both the browser
|
|
39893
|
+
* SDK's client context and {@link getBuiltinDimensions} return it:
|
|
39894
|
+
* - `override: false` (default): delivered until a newer RevTurbine
|
|
39895
|
+
* enrichment change supersedes it (last writer wins, enrichment included);
|
|
39896
|
+
* writing a pinned dimension without the flag unpins it.
|
|
39897
|
+
* - `override: true`: pinned — enrichment never replaces it until you write
|
|
39898
|
+
* the dimension again without the flag, or clear it.
|
|
39899
|
+
*
|
|
39900
|
+
* @param userId - The tenant's own identifier for the user (non-empty) — the
|
|
39901
|
+
* same key `assignSeatType` and `createClientSession` use.
|
|
39902
|
+
* @param dimensions - Dimension → value (or `null` to clear). Must name at
|
|
39903
|
+
* least one dimension.
|
|
39904
|
+
* @param options - `{ override }` — see above.
|
|
39905
|
+
* @returns The resulting state: `seat_type_handle`, every customer-set
|
|
39906
|
+
* `builtin_dimensions` value now stored, the pinned `overrides`, and
|
|
39907
|
+
* `updated_at`.
|
|
39908
|
+
* @throws {RevTurbineDimensionWriteError} if the control plane refuses the
|
|
39909
|
+
* write — `reason` is `unknown_dimension_value` for a 422 and `forbidden`
|
|
39910
|
+
* for a 403 (the key is not a server key). The error never carries the key.
|
|
39911
|
+
*
|
|
39912
|
+
* @example
|
|
39913
|
+
* ```ts
|
|
39914
|
+
* // Your billing system knows better than RevTurbine's Stripe view: pin it.
|
|
39915
|
+
* await server.setBuiltinDimensions('user_123', { subscription_state: 'paid' }, { override: true });
|
|
39916
|
+
* // Hand the dimension back to RevTurbine enrichment.
|
|
39917
|
+
* await server.setBuiltinDimensions('user_123', { subscription_state: null });
|
|
39918
|
+
* ```
|
|
39919
|
+
*/
|
|
39920
|
+
setBuiltinDimensions(userId: string, dimensions: ServerBuiltinDimensionsWrite, options?: SetBuiltinDimensionsOptions): Promise<ServerUserContextAssignment>;
|
|
39921
|
+
/**
|
|
39922
|
+
* Read the control plane's server-resolved built-in segment dimensions for
|
|
39923
|
+
* one user (BL-0366).
|
|
39924
|
+
*
|
|
39925
|
+
* Calls `GET /api/sdk/user-contexts/{userId}/builtin-dimensions`
|
|
39926
|
+
* (`getServerUserBuiltinDimensions`), authenticated by the server key this
|
|
39927
|
+
* client holds. The tenant is taken from that key — it is never a parameter,
|
|
39928
|
+
* and no tenant header is sent. The result's `builtin_dimensions` carries the
|
|
39929
|
+
* values the browser SDK would receive through the client context
|
|
39930
|
+
* (Subscription State, Trial Type, Activity State, Seat Type, Buyer Role,
|
|
39931
|
+
* Billing Health, Email Type); `region` / `device_type` are request-derived
|
|
39932
|
+
* and never present. An unknown user resolves to each dimension's default.
|
|
39933
|
+
*
|
|
39934
|
+
* Feed it to local evaluation as the server overlay: pass
|
|
39935
|
+
* `result.builtin_dimensions` as `createStaticProviders({ …, userContext,
|
|
39936
|
+
* serverBuiltinDimensions })`, which overlays it per key on
|
|
39937
|
+
* `userContext.builtin_dimensions` — the server value wins (plan 279 PD-3).
|
|
39938
|
+
* The Python and Rust server SDKs accept the same object through
|
|
39939
|
+
* `server_builtin_dimensions`.
|
|
39940
|
+
*
|
|
39941
|
+
* @param userId - The tenant's own identifier for the user (non-empty) — the
|
|
39942
|
+
* same key `assignSeatType` and `createClientSession` use.
|
|
39943
|
+
* @returns `{ tenant_id, user_id, builtin_dimensions, resolved_at }`.
|
|
39944
|
+
* @throws {RevTurbineBuiltinDimensionsError} if the control plane refuses the
|
|
39945
|
+
* read — `reason` is `forbidden` for a 403 (the key is not a server key).
|
|
39946
|
+
* The error never carries the key.
|
|
39947
|
+
*
|
|
39948
|
+
* @example
|
|
39949
|
+
* ```ts
|
|
39950
|
+
* const { builtin_dimensions } = await server.getBuiltinDimensions('user_123');
|
|
39951
|
+
* const providers = createStaticProviders({
|
|
39952
|
+
* config: playbook,
|
|
39953
|
+
* userContext: { id: 'user_123' },
|
|
39954
|
+
* serverBuiltinDimensions: builtin_dimensions,
|
|
39955
|
+
* });
|
|
39956
|
+
* ```
|
|
39957
|
+
*/
|
|
39958
|
+
getBuiltinDimensions(userId: string): Promise<ServerUserBuiltinDimensions>;
|
|
36714
39959
|
private apiCall;
|
|
36715
39960
|
private apiGet;
|
|
36716
39961
|
}
|
|
36717
39962
|
|
|
36718
|
-
export { ACCOUNT_CREATION_PENDING_REASONS, ACCOUNT_CREATION_SOURCES, ANALYTICS_ANNOTATION_KINDS, ANALYTICS_DATE_RANGE_FILTER_VALUE_TYPE, ANALYTICS_VALIDATION_CODES, ANALYTICS_VIEW_SCHEMA_VERSION, AccountPrimaryContactBindingSchema, ActivityLevelSchema, AddOnSchema, AddOnVariationSchema, AlertSchema, AnalysisProvenanceSchema, AnalyticsAgentCatalogEntryKindSchema, AnalyticsAgentCatalogEntrySchema, AnalyticsAnalyticalUnitSchema, AnalyticsAnnotationKindSchema, AnalyticsAnnotationMarkerSchema, AnalyticsAnnotationRequestSchema, AnalyticsAnnotationResponseSchema, AnalyticsAnnotationSchema, AnalyticsAnnotationSourceSchema, AnalyticsBlockErrorSchema, AnalyticsBlockResultSchema, AnalyticsCardinalityClassSchema, AnalyticsCatalogAnnotationKindSchema, AnalyticsCatalogConceptSchema, AnalyticsCatalogDeprecationSchema, AnalyticsCatalogDimensionSchema, AnalyticsCatalogMetricSchema, AnalyticsCatalogMetricValidatedSchema, AnalyticsCatalogProvenanceKindSchema, AnalyticsCatalogProvenanceSchema, AnalyticsCatalogSchema, AnalyticsCatalogSearchResultSchema, AnalyticsCatalogSourceSchema, AnalyticsClassificationSchema, AnalyticsCompareDeltaSchema, AnalyticsCompareExperimentSchema, AnalyticsCompareModeSchema, AnalyticsCompareSegmentSchema, AnalyticsCompileResolutionSchema, AnalyticsCoverageSchema, AnalyticsCustomizationCapabilitySchema, AnalyticsCustomizationPolicySchema, AnalyticsDimensionCapabilitySchema, AnalyticsDimensionTypeSchema, AnalyticsFieldTypeSchema, AnalyticsFilterControlSchema, AnalyticsFilterOperatorSchema, AnalyticsFilterStateSchema, AnalyticsFilterValueSchema, AnalyticsFormatSpecSchema, AnalyticsHistoricalModeSchema, AnalyticsMetricAggregationSemanticsSchema, AnalyticsMetricDirectionSchema, AnalyticsMetricStatisticalTypeSchema, AnalyticsPeriodCompareModeSchema, AnalyticsQueryFamilySchema, AnalyticsQueryOverridesSchema, AnalyticsQueryRequestSchema, AnalyticsQueryResponseSchema, AnalyticsRenderCartesianSchema, AnalyticsRenderFunnelSchema, AnalyticsRenderMetricSchema, AnalyticsRenderRecommendationsSchema, AnalyticsRenderSpecSchema, AnalyticsRenderTableSchema, AnalyticsRenderTimelineSchema, AnalyticsResultFieldSchema, AnalyticsResultMetaSchema, AnalyticsResultSchema, AnalyticsSafeChartOptionsSchema, AnalyticsSavedViewSchema, AnalyticsSemanticFilterSchema, AnalyticsSemanticIdSchema, AnalyticsSourceScopeSchema, AnalyticsSuggestedPatchOpSchema, AnalyticsTemplateSummarySchema, AnalyticsTimeGrainSchema, AnalyticsValidationIssueSchema, AnalyticsValidationResultSchema, AnalyticsViewAccessRoleSchema, AnalyticsViewAccessSchema, AnalyticsViewBlockDraftSchema, AnalyticsViewBlockSchema, AnalyticsViewDraftSchema, AnalyticsViewFilterDraftSchema, AnalyticsViewFilterSchema, AnalyticsViewHandoffDraftSchema, AnalyticsViewHandoffSchema, AnalyticsViewLayoutSchema, AnalyticsViewQuerySchema, AnalyticsViewRevisionSchema, AnalyticsViewSchema, AnalyticsViewVisibilitySchema, AnalyticsWarningSchema, AnchorFields, AuditActorTypeSchema, AuditEventSchema, AuthAccountSchema, AuthApiKeySchema, AuthInvitationSchema, AuthMemberSchema, AuthOrganizationSchema, AuthPasskeySchema, AuthSessionSchema, AuthSsoProviderSchema, AuthTwoFactorSchema, AuthUserSchema, AuthVerificationSchema, B2BSegmentEventNameSchema, B2B_INPUT_SYNONYMS, B2B_NON_AUTHORITATIVE_OBSERVATIONS, B2B_PENDING_PRODUCERS, B2B_PII_PROPERTIES, B2B_RT_REQUIRED_PROPERTIES, B2B_SEGMENT_EVENT_NAMES, B2B_SEMANTIC_MAP_VERSION, B2B_SOURCE_MAPPINGS, B2B_TRIAL_OUTCOMES, BILLING_ITEM_JOIN_KEYS, BILLING_OCCURRENCE_IDENTITY, BILLING_OCCURRENCE_IDENTITY_VERSION, BILLING_OCCURRENCE_KEY_PREFIX, BILLING_OCCURRENCE_RULES, BILLING_PROFILE_KINDS, BILLING_PROFILE_NAMES, BILLING_PROFILE_VERSION, BILLING_UNIQUE_KEYS, BUILT_IN_TEMPLATE_COMPONENT_TYPES, BillingAllocationSchema, BillingBalanceProfileSchema, BillingCadenceSchema, BillingCreditNoteLineSchema, BillingCreditProfileSchema, BillingCreditSettlementSchema, BillingHealthStatusSchema, BillingInvoiceProfileSchema, BillingLossProfileSchema, BillingOccurrenceSchema, BillingProfileSchema, BillingRecurringPriceSchema, BillingRefundProfileSchema, BillingRepeatableOccurrenceSchema, BillingScheduleProfileSchema, BillingSourceScopeSchema, BillingSubscriptionItemSnapshotSchema, BillingSubscriptionProfileSchema, BillingTransactionProfileSchema, BrandingConfigSchema, BrowserRuntime, BrowserStorage, CONTROL_PLANE_EVENT_NAMES, CONTROL_PLANE_EVENT_SOURCE, CONTROL_PLANE_SOURCE_KEY, CanonicalAliasEventSchema, CanonicalAnalyticsEventSchema, CanonicalGroupEventSchema, CanonicalIdentifyEventSchema, CanonicalPageEventSchema, CanonicalScreenEventSchema, CanonicalSegmentContextSchema, CanonicalTrackEventSchema, CapEnforcer, CapPeriodSchema$1 as CapPeriodSchema, ChangeLogActionSchema, ChangeLogEntrySchema, ClientContextSchema, ClientSafe, CohortMonthSchema, ComponentTypeSchema, ContentPayloadSegmentEntrySchema, ContentPlacementPayloadSchema, ContentPromotionSchema, ContentUiPathSchema, ContextVisibility, ControlPlaneEventSourceSchema, ControlPlaneEventTypeSchema, ControlPlaneSemanticEventSchema, CtaActionTypeSchema, CtaObjectSchema, CtaPathSchema, CtaPathTypeSchema, CurrencySchema, CustomerOverrideDurationSchema, CustomerOverrideSchema, CustomerOverrideStatusSchema, CustomerOverrideTypeSchema, CustomerSchema, DEFAULT_ANALYTICS_RETENTION_DAYS, DEFAULT_BRANDING, DEFAULT_HOSTED_ENDPOINT, DEFAULT_SDK_MODE, DEFAULT_TEMPLATE_COMPONENT_TYPES, DEFAULT_THEME, DEPRECATED_EVENT_NAMES, DOGFOOD_CLIENT_EVENT_NAMES, DataClassification, DecisionEngine, DecisionOnly, DefaultTemplateIdsSchema, DeleteProtectionDecisionSchema, DescriptionField, DetectorRequirementsSchema, DimensionCategorySchema, DimensionSourceTypeSchema, DiscountTypeSchema, DomainProviderRegistry, DriftReportSchema, EMITTABLE_PLATFORM_EVENT_NAMES, ENTITLEMENT_STATUS_VALUES, EVENT_ENVELOPE_SCHEMA_VERSION, EVENT_PAYLOAD_CONTRACTS, EVENT_PAYLOAD_EVENT_NAMES, EVENT_PREFIX_FAMILIES, EnforcementActionSchema, EnforcementModeSchema, EntitlementCheckResultSchema, EntitlementGate, EntitlementGrantSchema, EntitlementGrantSetSchema, EntitlementGrantSourceSchema, EntitlementGrantStatusSchema, EntitlementRulePeriodUnitSchema, EntitlementRuleSchema, EntitlementRuleTargetKindSchema, EntitlementRuleTargetSchema, EntitlementRuleValidatedSchema, EntitlementRuleVariantSchema, EntitlementSchema, EntitlementStatusSchema, EntitlementTypeSchema, EnvironmentPromotionRequestSchema, EnvironmentSchema, EnvironmentStatusSchema, EventEnvelopeSchema, EventIngestBatchSchema, EventPrefixFamilySchema, EventSearchParamsSchema, EventSourceSchema, EventStabilitySchema, EventSurfaceSchema, EventTaxonomyEntrySchema, EventTaxonomySchema, EvidenceCoverageStateSchema, EvidenceReasonColumnSchema, EvidenceRequirementSchema, ExperimentAnalysisConfigSchema, ExperimentAnalysisConfigVersionError, ExperimentAnalysisDefinitionSchema, ExperimentAnalysisResultRecordSchema, ExperimentAnalysisResultSchema, ExperimentAssignmentFactSchema, ExperimentAssignmentSourceSchema, ExperimentDecisionFindingCodeSchema, ExperimentDecisionPolicySchema, ExperimentDecisionPolicyVersionError, ExperimentDecisionRecordSchema, ExperimentDecisionTypeSchema, ExperimentEvidenceSchema, ExperimentEvidenceSnapshotSchema, ExperimentHealthSchema, ExperimentMetricEvidencePlanSchema, ExperimentMetricResultSchema, ExperimentSchema, ExperimentStatusSchema, ExperimentTypeSchema, ExperimentVariantSchema, ExperimentVariantTargetSchema, RevTurbineConfigPlacementItemSchema as ExportedConfigPlacementItemSchema, RevTurbineConfigSchema as ExportedConfigSchema, RevTurbineConfigSegmentsItemPredicatesItemSchema as ExportedConfigSegmentsItemPredicatesItemSchema, RevTurbineConfigSegmentsItemSchema as ExportedConfigSegmentsItemSchema, RevTurbineConfigUiPathActionTypeSchema as ExportedConfigUiPathActionTypeSchema, FALLBACK_ACCOUNT_ID_PREFIX, FAMILY_RENDER_COMPATIBILITY, FIRST_SEGMENT_EVENT_ENVELOPE_SCHEMA_VERSION, FIXED_BANNER_TEMPLATE_IDS, FIXED_SURFACE_TEMPLATE_IDS, FIXTURE_ANALYTICS_CATALOG, FeatureFlagSchema, FeatureFlagValueSchema, FeatureGateTriggerPayloadSchema, FieldDefinitionSchema, FlagValueTypeSchema, FreeTrialRuleSchema, FreeTrialSettingsSchema, FunnelStepSchema, GATED_SURFACE_TEMPLATE_IDS, GENERAL_BANNER_TEMPLATE_IDS, GENERAL_MODAL_TEMPLATE_IDS, GENERAL_TOAST_TEMPLATE_IDS, GrowthSignalBundleSchema, GrowthSignalPointSchema, GrowthSignalSeriesSchema, HANDLE_PATTERN, HandleField, INGEST_WRITE_SCOPE, IdField, IdentityKind, IdentitySchema, InMemoryStorage, IngestedEventSchema, InteractionTracker, InvitationStatusSchema, KpiAggregateSchema, LEGACY_BILLING_OCCURRENCE_IDENTITY_VERSION, LEGACY_TRACK_EVENT_ENVELOPE_SCHEMA_VERSION, LocalizedTextSchema, MAX_BILLING_PROFILE_LIST, MAX_EVENT_JSON_DEPTH, MAX_EVENT_TAGS, MAX_EVENT_TAG_LENGTH, MAX_SEGMENT_MESSAGES_PER_BATCH, MAX_TREATMENT_INTERACTIONS_PER_BATCH, MESSAGE_SURFACE_TEMPLATE_IDS, MIN_READABLE_EVENT_ENVELOPE_SCHEMA_VERSION, McpConfigSchema, McpTokenScopeSchema, MessageBlockContentSchema, MessageBlockRecordSchema, MessageBlockSchema, MessageSchema, MetadataField, MeteringConfigSchema, NON_RETRYABLE_EVIDENCE_REASONS, NameField, NullableDatetimeField, ObjectiveField, ObjectiveSchema, ObservationMaturitySchema, OnboardingChecklistSchema, OnboardingStateSchema, OpportunityCandidateSchema, OpportunityEvidenceSchema, OpportunityInterpretationSchema, OptimizationSuggestionSchema, OrgMemberRoleSchema, PERSISTED_SCHEMA_FACET_EXEMPTIONS, PLATFORM_EMITTED_EVENT_NAMES, PLATFORM_EVENT_TAXONOMY, PLAYBOOK_FORMAT_VERSION, PRIMARY_CONTACT_UNRESOLVED_CODE, PROTECTED_SUBSCRIPTION_SAMPLE_LIMIT, PaginatedResponseSchema, PaginationParamsSchema, PaymentTriggerPayloadSchema, PermissionActionSchema, PermissionResourceSchema, PermissionSchema, PersonalizationTokenSchema, PlacementCapRuleSchema, PlacementCategorySchema, PlacementController, PlacementDecisionOutputSchema, PlacementPayloadSchema, PlacementPerformanceRowSchema, PlacementSchema, PlacementSettingsCapRuleGroupItemSchema, PlacementSettingsCapRuleSchema, PlacementSettingsCapStateSchema, PlacementSettingsSchema, PlacementTestModeSchema, PlacementTestUserIdentifierTypeSchema, PlacementTestUserSchema, PlacementTypeRegistry, PlacementWarningCodeSchema, PlacementWarningSchema, PlanSchema, PlanVariationSchema, PlanVisibilitySchema, PlaybookBodySchema, PlaybookHeaderSchema, PlaybookObjectSchema, RevTurbineConfigPlacementItemSchema as PlaybookPlacementItemSchema, PlaybookSchema, RevTurbineConfigSegmentsItemPredicatesItemSchema as PlaybookSegmentsItemPredicatesItemSchema, RevTurbineConfigSegmentsItemSchema as PlaybookSegmentsItemSchema, PlaybookStrictSchema, RevTurbineConfigUiPathActionTypeSchema as PlaybookUiPathActionTypeSchema, PlaybookVersionDeployResultSchema, PlaybookVersionDiffSchema, PlaybookVersionEntrySummarySchema, PlaybookVersionSchema, PlaybookVersionStatusSchema, PresentationOutcomeSchema, PriceSourceSchema, PricingModelSchema, PrimaryContactDesignationSchema, PrimaryContactResolutionSchema, PrimaryContactUnresolvedReasonSchema, PromotionSchema, PromotionStatusSchema, ProviderAvailabilitySchema, ProviderBindingRefSchema, ProviderCapabilitySchema, ProviderConnectionSchema, ProviderProvenanceSchema, RECOGNIZED_UPDATE_KEYS, ROLE_PERMISSIONS, ROLE_RANK, ApiError as RevTurbineApiError, RevTurbineConfigAddonVariationsItemSchema, RevTurbineConfigAddonsItemSchema, RevTurbineConfigEnforcementDefaultsItemSchema, RevTurbineConfigEntitlementRulesItemSchema, RevTurbineConfigEntitlementsItemSchema, RevTurbineConfigMeterBindingsItemSchema, RevTurbineConfigObjectivesItemSchema, RevTurbineConfigPeriodCapSchema, RevTurbineConfigPersonalizationTokensItemSchema, RevTurbineConfigPlacementCategorySchema, RevTurbineConfigPlacementItemSchema, RevTurbineConfigPlacementPayloadItemSchema, RevTurbineConfigPlacementSettingsItemSchema, RevTurbineConfigPlacementSlotsItemSchema, RevTurbineConfigPlacementTriggerSchema, RevTurbineConfigPlanVariationsItemSchema, RevTurbineConfigPlansItemSchema, RevTurbineConfigSchema, RevTurbineConfigSeatTypesItemSchema, RevTurbineConfigSegmentDimensionsItemSchema, RevTurbineConfigSegmentsItemPredicatesItemSchema, RevTurbineConfigSegmentsItemSchema, RevTurbineConfigSlotConfigsItemSchema, RevTurbineConfigStudioCtaConfigSchema, RevTurbineConfigStudioPayloadCapsSchema, RevTurbineConfigStudioPayloadSchema, RevTurbineConfigStudioPayloadSurfaceSchema, RevTurbineConfigStudioPayloadTargetSchema, RevTurbineConfigSurfaceTemplatesItemFieldsItemSchema, RevTurbineConfigSurfaceTemplatesItemSchema, RevTurbineConfigUiPathActionTypeSchema, RevTurbineCustomerSdk, RevTurbineServer, RevenueMetricSchema, ReverseTrialRuleSchema, ReverseTrialSettingsSchema, ReverseTrialStartPolicySchema, RevturbineB2BTrackEventSchema, RevturbineCanonicalEventContextSchema, RevturbineEventContextSchema, RevturbineIdentitySourceSchema, RevturbineProducerAliasEventSchema, RevturbineProducerEventContextSchema, RevturbineProducerEventSchema, RevturbineProducerGroupEventSchema, RevturbineProducerIdentifyEventSchema, RevturbineProducerPageEventSchema, RevturbineProducerScreenEventSchema, RevturbineProducerSegmentContextSchema, RevturbineProducerTrackEventSchema, RoleSchema, RuleVisibilitySchema, RuntimeMode, RuntimePromotionSnapshotSchema, SDK_AUTOMATIC_NON_EMITTED_NAMES, SDK_CLIENT_EVENT_NAMES, SDK_META_EVENT_NAMES, SDK_SERVER_EVENT_NAMES, SEGMENT_EVENT_METHODS, SEGMENT_MAX_BATCH_BYTES, SEGMENT_MAX_MESSAGE_BYTES, SEGMENT_MAX_MESSAGE_ID_LENGTH, SEMANTIC_ID_PATTERN, SERVER_TRAITS_DOMAIN, SLOT_ROUTE_ID_PLACEHOLDER, SLOT_ROUTE_MAX_LENGTH, STRIPE_SUBSCRIPTION_STATUS_VALUES, SUBSCRIPTION_BLOCKER_ENTITY, SUBSCRIPTION_EVIDENCE_UNAVAILABLE_CODE, SUBSCRIPTION_EVIDENCE_UNAVAILABLE_REASONS, SUBSCRIPTION_REFERENCE_EXISTS_CODE, SUBSCRIPTION_STATUS_PROTECTION, SURFACE_SLOT_ROUTE_MAX_LENGTH, SURFACE_SLOT_STATUS_VALUES, SchemaContext, SchemaExposure, SchemaPersistence, SchemaSource, SdkConfigShapeSchema, SdkMetaEventSchema, SdkMetaEventTypeSchema, SdkMetaIngestBatchSchema, SdkSession, SeatTypeSchema, SegmentAliasInputSchema, SegmentB2BTrackEventSchema, SegmentDimensionSchema, SegmentEventContextSchema, SegmentEventInputSchema, SegmentGroupInputSchema, SegmentIdentifyInputSchema, SegmentIngestBatchSchema, SegmentLibraryContextSchema, SegmentPageContextSchema, SegmentPageInputSchema, SegmentSchema, SegmentScreenInputSchema, SegmentTrackInputSchema, SegmentValueSchema, SemanticEventSchema, ServerEvaluationPayloadDecisionsItemSchema, ServerEvaluationPayloadEntitlementsValueSchema, ServerEvaluationPayloadSchema, ServerEvaluationPayloadTrialStatusSchema, ServerEvaluationPayloadUserContextSchema, ServerEvaluationPayloadUserSchema, ServerOnly, ServerUserContextProvider, SeveritySchema, StripeBillingScopeSchema, StripeIntegrationConfigSchema, StripePriceBillingPeriodSchema, StripePriceMockBillingPeriodSchema, StripePriceMockSchema, StripePriceSchema, StripePriceScopeSchema, StripeSubscriptionEvidenceSchema, StripeSubscriptionItemSchema, StripeSubscriptionStatusSchema, StudioSurfaceTypeSchema, SubscriptionEvidenceKnownSchema, SubscriptionEvidenceResultSchema, SubscriptionEvidenceUnavailableReasonSchema, SubscriptionEvidenceUnavailableSchema, SubscriptionProtectionSchema, SuggestionSeveritySchema, SupersessionReasonSchema, SupersessionRecordSchema, SurfaceSlotSchema, SurfaceSlotStatusSchema, SurfaceTemplateSchema, SurfaceTypeCapRuleSchema, SurfaceTypeSchema, TERMINAL_SUBSCRIPTION_STATUSES, TRIAL_PENDING_UNKNOWN_REASONS, TRIAL_REVISION_KINDS, TemplateFieldTypeSchema, TenantConfigSchema, TenantIdField, TenantSchema, TenantStatusSchema, ThemeSchema, TimestampFields, TrackEventSchema, TrackIngestBatchSchema, TreatmentInteractionBatchSchema, TreatmentInteractionInputSchema, TreatmentInteractionRequestSchema, TreatmentInteractionTypeSchema, TrendFeaturesSchema, TrialEligibilityScopeSchema, TrialInstanceSchema, TrialLimitPolicySchema, TrialStatusSchema, TrialTriggerPayloadSchema, TriggerEventTypeSchema, USER_GRAIN_NON_CREATION_SOURCES, UiPreferenceSchema, UnsupportedExperimentAssignmentUnitError, UsageAllocationSchema$1 as UsageAllocationSchema, UsageEnforcementSettingsSchema, UsagePeriodScopeSchema, UsageTriggerPayloadSchema, UserBuiltinDimensionsSchema, UserContextSchema, UserInstanceContextSchema, UserPlanContextSchema, UserRoleSchema, UserTrialStatusSchema, UserUsageEntrySchema, VIEW_ELEMENT_ID_PATTERN, VariantStatisticalSummarySchema, VersionFields, WEBHOOK_DERIVED_EVENT_NAMES, WarGameCapabilityRequirementsSchema, WarGameCategorySchema, WarGameGradeSchema, WarGameOracleSchema, WarGameQualificationLevelSchema, WarGameScenarioSchema, WebhookDeliverySchema, WebhookDispatchStatusSchema, WebhookEventLogSchema, WebhookEventSourceSchema, WebhookEventStatusSchema, WebhookProcessingStatusSchema, WebhookReplayEnvelopeSchema, adaptExperimentVersionToBucketer, analyticsPaths, analyticsViewPaths, applyPrimaryContactEnrichment, applyValueMaps, assertExperimentAnalysisConfigUpdateAllowed, assertExperimentDecisionPolicyUpdateAllowed, billingProfileCoverageGaps, boundBillingProfileKinds, bucketSubject, buildAgentCatalogProjection, buildB2BMappingReport, buildControlPlaneEvent, canonicalB2BEventName, changelogPaths, classifyAccountCreation, classifySubscriptionStatus, classifyTaxonomyEvent, classifyTrackIngestBody, classifyTrialRevision, clearPersistedTheme, collapseBillingRevisions, collectAssignmentFactDeclarations, collectPersistedSchemas, collectVersionedConfigEntities, compileAnalyticsDraft, composeEffectiveExperimentContext, configPaths, contentPaths, createAnalyticsProvider, createBasicExperimentProvider, createChainedPlacementRequest, createCompositeExperimentProvider, createCustomEndpointRuntimeConfig, createEntitlementPlacementRequest, createFixtureAnalyticsCatalog, createHydrationProviders, createInMemoryAnalyticsCatalog, createLocalRuntimeConfig, createNativeExperimentAssignmentProvider, createPostHogAnalyticsProvider, createPostHogIntegration, createRevTurbineApiClient, createSemanticEvent, createServerRuntimeConfig, createSlotPlacementRequest, createStaticPlacementContentLookupProvider, createStaticPlacementResolver, createStaticProviders, createStrictLocalRuntimeConfig, createTreatmentInteraction, currentBrowserRoute, customerPaths, decideDeleteProtection, defaultRenderForQuery, defineUiPathResolvers, deriveB2BEvent, deriveBillingAllocationKey, deriveBillingOccurrenceKey, deriveBillingRevisionKey, deriveLocalTrialStatusFromInstance, deriveReverseTrialGrants, entitlementPaths, entitlementResultDenies, environmentPaths, evaluateSegments, evaluateTrialStatus, eventPaths, experimentPaths, fallbackAccountId, filterExternalSchemas, filterPersistedSchemas, findActiveTrialInstance, findLatestStartedTrialInstance, formatCurrencyMinorUnits, getDefaultRegistry, getFieldClassification, getFieldVisibility, getObjectFieldClassifications, getObjectFieldVisibilities, getSchemaClassification, getSchemaDeprecation, getSchemaExposure, getSchemaFacets, getSchemaIdentity, getSchemaPersistence, initRevTurbine, isAnalyticsDateRangeFilterValue, isBrowser, isEvidencedAccountCreation, isExperimentAssignmentFactDeclaration, isFallbackAccountId, isIdentifierLikeSegment, isLegacyDateRangeArray, isRetryableEvidenceReason, isServer, isVersionedConfigEntity, jsonPlainViolation, liftTrackEventToSegmentInput, loadTheme, makeAnchor, mergeTheme, mintedIdentity, namedIdentity, namespacePlatformCollision, normalizeConfigArtifactOrThrow, normalizeLegacyConfig, normalizeSlotRoute, parsePlaybook, parsePromotion, parseUiPath, placementPaths, planPaths, playbookVersionPaths, projectClientSafe, promotionPaths, requireSchemaFacets, resetDefaultRegistry, resetPlaybookAliasWarning, resolveBranding, resolveBrowserPublicKey, resolveComponentType, resolveContent, resolveLocalPlaybook, resolvePayloadForUser, resolvePayloadForUserWithProvider, resolvePersistentStorage, resolvePlaybookResolver, resolvePrimaryContact, resolveProviderPlaybook, resolveSessionStorage, resolveSubscriptionEvidence, resolveTokens, routePatternFromParams, schemaDeprecation, schemaFacets, scopesSubsetOfRole, searchAgentCatalog, segmentPaths, settingsPaths, summarizeProtectedSubscriptions, tenantPaths, toCreateSchema, toWritableSchema, trialPaths, uiPreferencePaths, unavailableEvidence, userContextPaths, validateAnalyticsQuery, validateAnalyticsView, validateB2BTrack, validateBillingProfileForEvent, validateEventPayload, validatePlacementThresholdWarnings };
|
|
36719
|
-
export type { AccountCreationClassification, AccountCreationEvidence, AccountCreationEvidenceKind, AccountCreationFacts, AccountCreationPendingReason, AccountCreationSource, AccountPrimaryContactBinding, ActivityLevel, AdapterBaseOptions, AddOn, AddOnVariation, Alert, AnalysisProvenance, AnalyticsAgentCatalogEntry, AnalyticsAgentCatalogEntryKind, AnalyticsAnalyticalUnit, AnalyticsAnnotation, AnalyticsAnnotationKind, AnalyticsAnnotationMarker, AnalyticsAnnotationRequest, AnalyticsAnnotationResponse, AnalyticsAnnotationSource, AnalyticsBlockError, AnalyticsBlockResult, AnalyticsCardinalityClass, AnalyticsCatalog, AnalyticsCatalogAnnotationKind, AnalyticsCatalogConcept, AnalyticsCatalogData, AnalyticsCatalogDeprecation, AnalyticsCatalogDimension, AnalyticsCatalogMetric, AnalyticsCatalogMetricValidated, AnalyticsCatalogProvenance, AnalyticsCatalogProvenanceKind, AnalyticsCatalogSearchResult, AnalyticsCatalogSource, AnalyticsCatalogView, AnalyticsClassification, AnalyticsCompareDelta, AnalyticsCompareExperiment, AnalyticsCompareMode, AnalyticsCompareSegment, AnalyticsCompileOutput, AnalyticsCompileResolution, AnalyticsCoverage, AnalyticsCustomizationCapability, AnalyticsCustomizationPolicy, AnalyticsDateRangeFilterValue, AnalyticsDimensionCapability, AnalyticsDimensionType, AnalyticsEventHandler, AnalyticsEventProperties, AnalyticsEventTransformer, AnalyticsFieldType, AnalyticsFilterControl, AnalyticsFilterOperator, AnalyticsFilterState, AnalyticsFilterValue, AnalyticsFormatSpec, AnalyticsHistoricalMode, AnalyticsMetricAggregationSemantics, AnalyticsMetricDirection, AnalyticsMetricStatisticalType, AnalyticsPeriodCompareMode, AnalyticsProviderOptions, AnalyticsQueryFamily, AnalyticsQueryOverrides, AnalyticsQueryRequest, AnalyticsQueryResponse, AnalyticsRenderCartesian, AnalyticsRenderFunnel, AnalyticsRenderMetric, AnalyticsRenderRecommendations, AnalyticsRenderSpec, AnalyticsRenderTable, AnalyticsRenderTimeline, AnalyticsResult, AnalyticsResultField, AnalyticsResultMeta, AnalyticsSafeChartOptions, AnalyticsSavedView, AnalyticsSemanticFilter, AnalyticsSemanticId, AnalyticsSourceScope, AnalyticsSuggestedPatchOp, AnalyticsTemplateSummary, AnalyticsTimeGrain, AnalyticsValidationCode, AnalyticsValidationIssue, AnalyticsValidationResult, AnalyticsView, AnalyticsViewAccess, AnalyticsViewAccessRole, AnalyticsViewBlock, AnalyticsViewBlockDraft, AnalyticsViewDraft, AnalyticsViewFilter, AnalyticsViewFilterDraft, AnalyticsViewHandoff, AnalyticsViewHandoffDraft, AnalyticsViewLayout, AnalyticsViewQuery, AnalyticsViewRevision, AnalyticsViewVisibility, AnalyticsWarning, AnyDomainProvider, AssignmentFactUnit, AuditActorType, AuditEvent, AuthAccount, AuthApiKey, AuthInvitation, AuthMember, AuthOrganization, AuthPasskey, AuthSession, AuthSsoProvider, AuthTwoFactor, AuthUser, AuthVerification, B2BCanonicalClass, B2BDerivation, B2BMappingReport, B2BSegmentEventName, B2BSourceMapping, B2BValidation, BasicBucketerExperiment, BasicBucketerOptions, BillingAllocation, BillingBalanceProfile, BillingCadence, BillingCoverageGap, BillingCreditNoteLine, BillingCreditProfile, BillingCreditSettlement, BillingHealthStatus, BillingInvoiceProfile, BillingLossProfile, BillingOccurrence, BillingProfile, BillingProfileBinding, BillingProfileName, BillingRecurringPrice, BillingRefundProfile, BillingRepeatableOccurrence, BillingScheduleProfile, BillingSourceScope, BillingSubscriptionItemSnapshot, BillingSubscriptionProfile, BillingTransactionProfile, BrandingConfig, BrandingResolutionInput, BrandingSource, BrowserRuntimeOptions, CanonicalAliasEvent, CanonicalAnalyticsEvent, CanonicalExperimentAllocation, CanonicalGroupEvent, CanonicalIdentifyEvent, CanonicalPageEvent, CanonicalScreenEvent, CanonicalSegmentContext, CanonicalTrackEvent, CapEnforcementResult, CapPeriod, ChangeListener, ChangeLogAction, ChangeLogEntry, ClientContext, CohortMonth, CompileAnalyticsDraftOptions, ComponentType, CompositeExperimentProviderOptions, ConfigArtifact, ConfigTargetDefaults, ContentPayloadSegmentEntry, ContentPlacementPayload, ContentPromotion, ContentProvider, ContentProviderState, ContentUiPath, ControlPlaneEmitInput, ControlPlaneEventSource, ControlPlaneEventType, ControlPlaneSemanticEvent, CtaActionType, CtaHandler, CtaHandlerMap, CtaHandlerProvider, CtaHandlerProviderState, CtaObject, CtaPath, CtaPathType, Currency, Customer, CustomerOverride, CustomerOverrideDuration, CustomerOverrideStatus, CustomerOverrideType, DataClassificationValue, DecisionEngineOptions, DefaultTemplateIds, DeleteProtectionDecision, DeriveTrialStatusInput, DetectorRequirements, DimensionCategory, DimensionSourceType, DiscountType, DomainProvider, DomainProviderName, DomainProviderResolutionInput, DriftReport, EffectiveUserContextResolution, EligibleAddon, EligiblePlan, EligiblePrice, EmittablePlatformEventName, EnforcementAction, EnforcementMode, Entitlement, EntitlementCheckResult$1 as EntitlementCheckResult, EntitlementGateOptions, EntitlementGateState, EntitlementGrant$1 as EntitlementGrant, EntitlementGrantSet$1 as EntitlementGrantSet, EntitlementGrantSource, EntitlementGrantStatus, EntitlementProvider, EntitlementProviderState, EntitlementResult, EntitlementRule, EntitlementRulePeriodUnit, EntitlementRuleSnapshot, EntitlementRuleTarget, EntitlementRuleTargetKind$1 as EntitlementRuleTargetKind, EntitlementRuleValidated, EntitlementRuleVariant, EntitlementStatus, EntitlementType, EntitlementUsageEntry, Environment, EnvironmentPromotionRequest, EnvironmentStatus, EvaluateTrialStatusInput, EvaluateTrialStatusResult, EvaluationContext, EventConsumer, EventConsumerProvider, EventConsumerProviderState, EventEnvelope, EventEnvelopeReader, EventIngestBatch, EventPayloadContract, EventPayloadContractMap, EventPayloadInput, EventPrefixFamily, EventSearchParams, EventSource, EventStability, EventSurface, EventTaxonomy, EventTaxonomyEntry, EvidenceCoverageState, EvidenceReasonColumn, EvidenceRequirement, Exact, ExactInitOptions, Experiment, ExperimentAnalysisConfig, ExperimentAnalysisDefinition, ExperimentAnalysisResult, ExperimentAnalysisResultRecord, ExperimentAssignmentFact, ExperimentAssignmentFactDeclaration, ExperimentAssignmentFactMetadataCarrier, ExperimentAssignmentProvider, ExperimentAssignmentSource, ExperimentDecisionFindingCode, ExperimentDecisionPolicy, ExperimentDecisionRecord, ExperimentDecisionType, ExperimentEvidence, ExperimentEvidenceSnapshot, ExperimentHealth, ExperimentMetricEvidencePlan, ExperimentMetricResult, ExperimentProvider, ExperimentProviderState, ExperimentStatus, ExperimentType, ExperimentVariant, ExperimentVariantNonAssignmentReason, ExperimentVariantSelection, ExperimentVariantTarget, ExportedConfig, ExportedConfigPlacementItem, ExportedConfigProvider, ExportedConfigSegmentsItem, ExportedConfigSegmentsItemPredicatesItem, ExportedConfigUiPathActionType, FeatureFlag, FeatureFlagValue, FeatureGateTriggerPayload, FieldDefinition, FlagValueType, FreeTrialRule, FreeTrialSettings, FunnelStep, GrowthSignalBundle, GrowthSignalPoint, GrowthSignalSeries, IdentifyContextInput, Identity, IdentityDeclaration, IngestWriteScope, IngestedEvent, InteractionState, InvitationStatus, JsonObject, JsonValue, KpiAggregate, LegacyConfigTargetDefaults, LocalPlacementDataset, LocalPlacementEntry, LocalPlacementPayload, LocalPlacementSurface, LocalizedText, McpConfig, McpTokenScope, Message, MessageBlock, MessageBlockContent, MessageBlockRecord, MessageBlockSnapshot, MeteringConfig, NativeExperimentAssignmentOptions, NativeExperimentAssignmentUnit, Objective, ObservationMaturity, OnboardingChecklist, OnboardingState, OpportunityCandidate, OpportunityEvidence, OpportunityInterpretation, OptimizationSuggestion, OrgMemberRole, PaginationParams, PaymentTriggerPayload, Permission, PermissionAction, PermissionResource, PersonalizationContext, PersonalizationToken, Placement, PlacementCapPolicy, PlacementCapRule, PlacementCategory, PlacementContentFields, PlacementContentLookupProvider, PlacementControllerOptions, PlacementControllerState, PlacementCustomCode, PlacementDecisionOutput, PlacementEmittedThresholdLookup, PlacementOutput, PlacementPayload, PlacementPayloadSnapshot, PlacementPerformanceRow, PlacementPreviewConfig, PlacementPromotion, PlacementSettings, PlacementSettingsCapRule, PlacementSettingsCapRuleGroupItem, PlacementSettingsCapState, PlacementSlotProps, PlacementSlotType, PlacementTestMode, PlacementTestUser, PlacementTestUserIdentifierType, PlacementUiPath, PlacementUiPathActionType, PlacementWarning, PlacementWarningCode, Plan, PlanProvider, PlanProviderState, PlanRuleSnapshot, PlanVariation, PlanVisibility, PlatformEventName, Playbook, PlaybookBody, PlaybookHeader, PlaybookObject, PlaybookPlacementItem, PlaybookProvider, PlaybookSegmentsItem, PlaybookSegmentsItemPredicatesItem, PlaybookStrict, PlaybookUiPathActionType, PlaybookVersion, PlaybookVersionDeployResult, PlaybookVersionDiff, PlaybookVersionEntrySummary, PlaybookVersionStatus, PostHogAnalyticsProviderOptions, PostHogIntegrationOptions, PostHogLike, PresentationCapState, PresentationOutcome, PriceSource, PricingModel, PrimaryContactDesignation, PrimaryContactEnrichmentResult, PrimaryContactResolution, PrimaryContactScope, PrimaryContactUnresolvedReason, Promotion, PromotionStatus, ProviderAvailability, ProviderBindingRef, ProviderCapability, ProviderConnection, ProviderProvenance, RegisterPlacementSlotTypeOptions, ResolvedBranding, ResolvedContent, ResolvedDomainType, ResolvedPayload, ResolvedProviderContext, RevTurbineApiClient, RevTurbineApiClientConfig, paths as RevTurbineApiPaths, RevTurbineAuthoredSlotRef, RevTurbineBootstrapDecisionInput, RevTurbineChainedPlacementRequestOptions, RevTurbineClientSessionProvider, RevTurbineComponentType, RevTurbineConfig, RevTurbineConfigAddonVariationsItem, RevTurbineConfigAddonsItem, RevTurbineConfigEnforcementDefaultsItem, RevTurbineConfigEntitlementRulesItem, RevTurbineConfigEntitlementsItem, RevTurbineConfigMeterBindingsItem, RevTurbineConfigObjectivesItem, RevTurbineConfigPeriodCap, RevTurbineConfigPersonalizationTokensItem, RevTurbineConfigPlacementCategory, RevTurbineConfigPlacementItem, RevTurbineConfigPlacementPayloadItem, RevTurbineConfigPlacementSettingsItem, RevTurbineConfigPlacementSlotsItem, RevTurbineConfigPlacementTrigger, RevTurbineConfigPlanVariationsItem, RevTurbineConfigPlansItem, RevTurbineConfigProvider, RevTurbineConfigProviderInput, RevTurbineConfigSeatTypesItem, RevTurbineConfigSegmentDimensionsItem, RevTurbineConfigSegmentsItem, RevTurbineConfigSegmentsItemPredicatesItem, RevTurbineConfigSlotConfigsItem, RevTurbineConfigStudioCtaConfig, RevTurbineConfigStudioPayload, RevTurbineConfigStudioPayloadCaps, RevTurbineConfigStudioPayloadSurface, RevTurbineConfigStudioPayloadTarget, RevTurbineConfigSurfaceTemplatesItem, RevTurbineConfigSurfaceTemplatesItemFieldsItem, RevTurbineConfigUiPathActionType, RevTurbineContextMode, RevTurbineContextPolicy, RevTurbineDecisionContent, RevTurbineEndpointOverrides, RevTurbineEntitlementContext, RevTurbineEntitlementPlacementRequestOptions, RevTurbineEntitlementRuleEvaluation, RevTurbineEventBatchingOptions, RevTurbineEventEnvelope, RevTurbineEventOptions, RevTurbineGateResult, RevTurbineImpressionMetadata, RevTurbineInitBaseOptions, RevTurbineInitInputOptions, RevTurbineInitOptions, RevTurbineInitOptionsStrict, RevTurbineInitWithProviderOptions, RevTurbineLocalOnlyMinimalInitOptions, RevTurbineLocalRuntimeData, RevTurbineLocalRuntimeOptions, RevTurbineLocalRuntimeResolvers, RevTurbineMeterUsageOverride, RevTurbinePageContext, RevTurbinePersonalizationTokens, RevTurbinePlacementBehaviorFlags, RevTurbinePlacementConfig, RevTurbinePlacementContent, RevTurbinePlacementDecision, RevTurbinePlacementDecisionExplanation, RevTurbinePlacementDecisionInput, RevTurbinePlacementDecisionOverrides, RevTurbinePlacementPayloadEvaluation, RevTurbinePlacementRecord, RevTurbinePlacementRequestConfig, RevTurbinePlacementRuleEvaluation, RevTurbinePlacementTypeEntity, RevTurbinePlaybookLoadState, RevTurbinePolicySnapshot, RevTurbineProviderFactory, RevTurbineProviderFailureSlotBehavior, RevTurbineRegisteredSlot, RevTurbineRequiredUiPathResolvers, RevTurbineRuntimeMode, RevTurbineSdkMode, RevTurbineSdkProvider, RevTurbineSegmentEvaluation, RevTurbineSegmentPredicateEvaluation, RevTurbineSemanticEvent, RevTurbineServerOptions, RevTurbineSlotInventoryDiagnosis, RevTurbineSlotPlacementRequestOptions, RevTurbineStorage, RevTurbineSurfaceSlotConfig, RevTurbineSurfaceType, RevTurbineTargeting, RevTurbineTelemetryOptions, RevTurbineTheme, RevTurbineThemeColors, RevTurbineThemeInput, RevTurbineThemeShadows, RevTurbineThemeShape, RevTurbineThemeTypography, RevTurbineTreatmentInteractionInput, RevTurbineTreatmentInteractionOptions, RevTurbineTreatmentInteractionType, RevTurbineTrialContext, RevTurbineTriggerEvent, RevTurbineTriggerPayload, RevTurbineUiPathActionTypes, RevTurbineUiPathResolver, RevTurbineUiPathResolverMap, RevTurbineUiPathResolverValidationIssue, RevTurbineUiPathResolverValidationOptions, RevTurbineUiPathResolverValidationReport, RevTurbineUpdateInput, RevTurbineUsageSnapshot, RevTurbineUsageSnapshotEntry, RevTurbineUserContext, RevenueMetric, ReverseTrialRule, ReverseTrialSettings, ReverseTrialStartPolicy, RevturbineB2BTrackEvent, RevturbineCanonicalEventContext, RevturbineEventContext, RevturbineIdentitySource, RevturbineProducerAliasEvent, RevturbineProducerEvent, RevturbineProducerEventContext, RevturbineProducerGroupEvent, RevturbineProducerIdentifyEvent, RevturbineProducerPageEvent, RevturbineProducerScreenEvent, RevturbineProducerSegmentContext, RevturbineProducerTrackEvent, Role, RuleProvider, RuleProviderState, RuleVisibility, RuntimePromotionSnapshot, SchemaDeprecation, SchemaFacetOptions, SchemaFacets, SdkConfigShape, SdkEventProperties, SdkMetaEvent, SdkMetaEventType, SdkMetaIngestBatch, SdkMetadata, SdkSessionOptions, SdkTraits, SeatType, Segment, SegmentAliasInput, SegmentB2BTrackEvent, SegmentDimension, SegmentEventContext, SegmentEventInput, SegmentEventMethod, SegmentGroupInput, SegmentIdentifyInput, SegmentIngestBatch, SegmentLibraryContext, SegmentPageContext, SegmentPageInput, SegmentProvider, SegmentProviderState, SegmentScreenInput, SegmentTrackInput, SegmentValue, SemanticEvent, ServerActionContext, ServerActionHandler, ServerActionMap, ServerActionResult, ServerEntitlementResult, ServerEvaluationHydrationPayload, ServerEvaluationPayload, ServerEvaluationPayloadDecisionsItem, ServerEvaluationPayloadEntitlementsValue, ServerEvaluationPayloadTrialStatus, ServerEvaluationPayloadUser, ServerEvaluationPayloadUserContext, ServerEvaluationRequest, ServerPlacementDecision, ServerPlacementRequest, ServerUserContext, ServerUserContextSnapshot, Severity, SlotRouteParams, StaticPlacementResolverOptions, StripeBillingScope, StripeIntegrationConfig, StripePrice, StripePriceBillingPeriod, StripePriceMock, StripePriceMockBillingPeriod, StripePriceScope, StripeSubscriptionEvidence, StripeSubscriptionItem, StripeSubscriptionStatus, StudioSurfaceType, SubscriptionEvidenceKnown, SubscriptionEvidenceResult, SubscriptionEvidenceUnavailable, SubscriptionEvidenceUnavailableReason, SubscriptionProtection, SuggestionSeverity, SupersessionReason, SupersessionRecord, SuppressionResult, SurfaceSlot, SurfaceSlotStatus, SurfaceTemplate, SurfaceType, SurfaceTypeCapRule, TelemetryConsent, TemplateFieldType, Tenant, TenantConfig, TenantStatus, Theme, ThemeLoaderOptions, ThemeProvider, ThemeProviderState, TrackEvent, TrackEventLiftResult, TrackIngestBatch, TrackIngestBodyClassification, Trait, TraitsNamespace, TraitsProvider, TraitsProviderState, TreatmentInteractionBatch, TreatmentInteractionInput, TreatmentInteractionRequest, TreatmentInteractionType, TrendFeatures, TrialCommitment$1 as TrialCommitment, TrialEligibilityScope, TrialEpisodeFacts$1 as TrialEpisodeFacts, TrialEvidence$1 as TrialEvidence, TrialEvidenceKind$1 as TrialEvidenceKind, TrialInstance, TrialLimitPolicy, TrialPendingUnknownReason, TrialRevisionClassification, TrialRevisionKind, TrialRevisionPending, TrialRevisionResolved, TrialStatus, TrialStatusProvider, TrialStatusTraits, TrialTriggerPayload, TriggerEventType, UiPreference, UnvalidatedConfigArtifact, UsageAllocation, UsageBalances, UsageEnforcementSettings, UsagePeriodScope, UsageTraits, UsageTraitsProvider, UsageTriggerPayload, UserBuiltinDimensions, UserContext, UserContextInput, UserInstanceContext, UserPlanContext, UserRole, UserTargetingContext, UserTrialStatus, UserUsageEntry, ValidateAnalyticsViewOptions, VariantStatisticalSummary, WarGameCapabilityRequirements, WarGameCategory, WarGameGrade, WarGameOracle, WarGameQualificationLevel, WarGameScenario, WebhookDelivery, WebhookDispatchStatus, WebhookEventLog, WebhookEventSource, WebhookEventStatus, WebhookProcessingStatus, WebhookReplayEnvelope };
|
|
39963
|
+
export { ACCOUNT_CREATION_PENDING_REASONS, ACCOUNT_CREATION_SOURCES, ANALYTICS_ANNOTATION_KINDS, ANALYTICS_DATE_RANGE_FILTER_VALUE_TYPE, ANALYTICS_VALIDATION_CODES, ANALYTICS_VIEW_SCHEMA_VERSION, AccountPrimaryContactBindingSchema, ActivityLevelSchema, AddOnSchema, AddOnVariationSchema, AlertSchema, AnalysisProvenanceSchema, AnalyticsAgentCatalogEntryKindSchema, AnalyticsAgentCatalogEntrySchema, AnalyticsAnalyticalUnitSchema, AnalyticsAnnotationKindSchema, AnalyticsAnnotationMarkerSchema, AnalyticsAnnotationRequestSchema, AnalyticsAnnotationResponseSchema, AnalyticsAnnotationSchema, AnalyticsAnnotationSourceSchema, AnalyticsBlockErrorSchema, AnalyticsBlockResultSchema, AnalyticsCardinalityClassSchema, AnalyticsCatalogAnnotationKindSchema, AnalyticsCatalogConceptSchema, AnalyticsCatalogDeprecationSchema, AnalyticsCatalogDimensionSchema, AnalyticsCatalogMetricSchema, AnalyticsCatalogMetricValidatedSchema, AnalyticsCatalogProvenanceKindSchema, AnalyticsCatalogProvenanceSchema, AnalyticsCatalogSchema, AnalyticsCatalogSearchResultSchema, AnalyticsCatalogSourceSchema, AnalyticsClassificationSchema, AnalyticsCompareDeltaSchema, AnalyticsCompareExperimentSchema, AnalyticsCompareModeSchema, AnalyticsCompareSegmentSchema, AnalyticsCompileResolutionSchema, AnalyticsCoverageSchema, AnalyticsCustomizationCapabilitySchema, AnalyticsCustomizationPolicySchema, AnalyticsDimensionCapabilitySchema, AnalyticsDimensionTypeSchema, AnalyticsFieldTypeSchema, AnalyticsFilterControlSchema, AnalyticsFilterOperatorSchema, AnalyticsFilterStateSchema, AnalyticsFilterValueSchema, AnalyticsFormatSpecSchema, AnalyticsHistoricalModeSchema, AnalyticsMetricAggregationSemanticsSchema, AnalyticsMetricDirectionSchema, AnalyticsMetricStatisticalTypeSchema, AnalyticsPeriodCompareModeSchema, AnalyticsQueryFamilySchema, AnalyticsQueryOverridesSchema, AnalyticsQueryRequestSchema, AnalyticsQueryResponseSchema, AnalyticsRenderCartesianSchema, AnalyticsRenderFunnelSchema, AnalyticsRenderMetricSchema, AnalyticsRenderRecommendationsSchema, AnalyticsRenderSpecSchema, AnalyticsRenderTableSchema, AnalyticsRenderTimelineSchema, AnalyticsResultFieldSchema, AnalyticsResultMetaSchema, AnalyticsResultSchema, AnalyticsSafeChartOptionsSchema, AnalyticsSavedViewSchema, AnalyticsSemanticFilterSchema, AnalyticsSemanticIdSchema, AnalyticsSourceScopeSchema, AnalyticsSuggestedPatchOpSchema, AnalyticsTemplateSummarySchema, AnalyticsTimeGrainSchema, AnalyticsValidationIssueSchema, AnalyticsValidationResultSchema, AnalyticsViewAccessRoleSchema, AnalyticsViewAccessSchema, AnalyticsViewBlockDraftSchema, AnalyticsViewBlockSchema, AnalyticsViewDraftSchema, AnalyticsViewFilterDraftSchema, AnalyticsViewFilterSchema, AnalyticsViewHandoffDraftSchema, AnalyticsViewHandoffSchema, AnalyticsViewLayoutSchema, AnalyticsViewQuerySchema, AnalyticsViewRevisionSchema, AnalyticsViewSchema, AnalyticsViewVisibilitySchema, AnalyticsWarningSchema, AnchorFields, AuditActorTypeSchema, AuditEventSchema, AuthAccountSchema, AuthApiKeySchema, AuthInvitationSchema, AuthMemberSchema, AuthOrganizationSchema, AuthPasskeySchema, AuthSessionSchema, AuthSsoProviderSchema, AuthTwoFactorSchema, AuthUserSchema, AuthVerificationSchema, B2BSegmentEventNameSchema, B2B_INPUT_SYNONYMS, B2B_NON_AUTHORITATIVE_OBSERVATIONS, B2B_PENDING_PRODUCERS, B2B_PII_PROPERTIES, B2B_RT_REQUIRED_PROPERTIES, B2B_SEGMENT_EVENT_NAMES, B2B_SEMANTIC_MAP_VERSION, B2B_SOURCE_MAPPINGS, B2B_TRIAL_OUTCOMES, BILLING_ACCOUNTING_CONTRACT_VERSION, BILLING_COVERAGE_FAMILIES, BILLING_ITEM_JOIN_KEYS, BILLING_OCCURRENCE_IDENTITY, BILLING_OCCURRENCE_IDENTITY_VERSION, BILLING_OCCURRENCE_KEY_PREFIX, BILLING_OCCURRENCE_RULES, BILLING_OUTPUT_KEY_PREFIX, BILLING_OUTPUT_KINDS, BILLING_PROFILE_KINDS, BILLING_PROFILE_NAMES, BILLING_PROFILE_VERSION, BILLING_UNIQUE_KEYS, BUILT_IN_TEMPLATE_COMPONENT_TYPES, BillingAccountMappingRevisionSchema, BillingAccountingRevisionSchema, BillingAllocationSchema, BillingBalanceProfileSchema, BillingCadenceSchema, BillingCompletedGenerationCheckpointSchema, BillingCoverageCheckpointSchema, BillingCoverageGapRangeSchema, BillingCoverageGapReasonSchema, BillingCoverageUnavailableReasonSchema, BillingCreditNoteLineSchema, BillingCreditProfileSchema, BillingCreditSettlementSchema, BillingEconomicOwnerSchema, BillingGenerationCheckpointSchema, BillingGenerationSchema, BillingHealthStatusSchema, BillingInvoicePaymentSourceSchema, BillingInvoiceProfileSchema, BillingLossProfileSchema, BillingOccurrenceSchema, BillingOpeningSeedSchema, BillingOutputRowKeySchema, BillingPriceTermsSchema, BillingPriceTierSchema, BillingProfileSchema, BillingReconciliationSchema, BillingRecurrenceSchema, BillingRecurringPriceSchema, BillingRefundProfileSchema, BillingRepeatableOccurrenceSchema, BillingScheduleProfileSchema, BillingSettlementAmountSchema, BillingSourceScopeSchema, BillingSubscriptionItemSnapshotSchema, BillingSubscriptionProfileSchema, BillingTransactionProfileSchema, BrandingConfigSchema, BrowserRuntime, BrowserStorage, CONTROL_PLANE_EVENT_NAMES, CONTROL_PLANE_EVENT_SOURCE, CONTROL_PLANE_SOURCE_KEY, CUSTOMER_SETTABLE_BUILTIN_DIMENSION_KEYS, CanonicalAliasEventSchema, CanonicalAnalyticsEventSchema, CanonicalGroupEventSchema, CanonicalIdentifyEventSchema, CanonicalPageEventSchema, CanonicalScreenEventSchema, CanonicalSegmentContextSchema, CanonicalTrackEventSchema, CapEnforcer, CapPeriodSchema$1 as CapPeriodSchema, ChangeLogActionSchema, ChangeLogEntrySchema, ClientContextSchema, ClientSafe, CohortMonthSchema, ComponentTypeSchema, ContentPayloadSegmentEntrySchema, ContentPlacementPayloadSchema, ContentPromotionSchema, ContentUiPathSchema, ContextVisibility, ControlPlaneEventSourceSchema, ControlPlaneEventTypeSchema, ControlPlaneSemanticEventSchema, CtaActionTypeSchema, CtaObjectSchema, CtaPathSchema, CtaPathTypeSchema, CurrencySchema, CustomerBuiltinDimensionsSchema, CustomerOverrideDurationSchema, CustomerOverrideSchema, CustomerOverrideStatusSchema, CustomerOverrideTypeSchema, CustomerSchema, DEFAULT_ANALYTICS_RETENTION_DAYS, DEFAULT_BRANDING, DEFAULT_HOSTED_ENDPOINT, DEFAULT_SDK_MODE, DEFAULT_TEMPLATE_COMPONENT_TYPES, DEFAULT_THEME, DEPRECATED_EVENT_NAMES, DOGFOOD_CLIENT_EVENT_NAMES, DataClassification, DecisionEngine, DecisionOnly, DefaultTemplateIdsSchema, DeleteProtectionDecisionSchema, DescriptionField, DetectorRequirementsSchema, DimensionCategorySchema, DimensionSourceTypeSchema, DiscountTypeSchema, DomainProviderRegistry, DriftReportSchema, EMITTABLE_PLATFORM_EVENT_NAMES, ENTITLEMENT_STATUS_VALUES, EVENT_ENVELOPE_SCHEMA_VERSION, EVENT_PAYLOAD_CONTRACTS, EVENT_PAYLOAD_EVENT_NAMES, EVENT_PREFIX_FAMILIES, EnforcementActionSchema, EnforcementModeSchema, EntitlementCheckResultSchema, EntitlementGate, EntitlementGrantSchema, EntitlementGrantSetSchema, EntitlementGrantSourceSchema, EntitlementGrantStatusSchema, EntitlementRulePeriodUnitSchema, EntitlementRuleSchema, EntitlementRuleTargetKindSchema, EntitlementRuleTargetSchema, EntitlementRuleValidatedSchema, EntitlementRuleVariantSchema, EntitlementSchema, EntitlementStatusSchema, EntitlementTypeSchema, EnvironmentPromotionRequestSchema, EnvironmentSchema, EnvironmentStatusSchema, EventEnvelopeSchema, EventIngestBatchSchema, EventPrefixFamilySchema, EventSearchParamsSchema, EventSourceSchema, EventStabilitySchema, EventSurfaceSchema, EventTaxonomyEntrySchema, EventTaxonomySchema, EvidenceCoverageStateSchema, EvidenceReasonColumnSchema, EvidenceRequirementSchema, ExperimentAnalysisConfigSchema, ExperimentAnalysisConfigVersionError, ExperimentAnalysisDefinitionSchema, ExperimentAnalysisResultRecordSchema, ExperimentAnalysisResultSchema, ExperimentAssignmentFactSchema, ExperimentAssignmentSourceSchema, ExperimentDecisionFindingCodeSchema, ExperimentDecisionPolicySchema, ExperimentDecisionPolicyVersionError, ExperimentDecisionRecordSchema, ExperimentDecisionTypeSchema, ExperimentEvidenceSchema, ExperimentEvidenceSnapshotSchema, ExperimentHealthSchema, ExperimentMetricEvidencePlanSchema, ExperimentMetricResultSchema, ExperimentSchema, ExperimentStatusSchema, ExperimentTypeSchema, ExperimentVariantSchema, ExperimentVariantTargetSchema, RevTurbineConfigPlacementItemSchema as ExportedConfigPlacementItemSchema, RevTurbineConfigSchema as ExportedConfigSchema, RevTurbineConfigSegmentsItemPredicatesItemSchema as ExportedConfigSegmentsItemPredicatesItemSchema, RevTurbineConfigSegmentsItemSchema as ExportedConfigSegmentsItemSchema, RevTurbineConfigUiPathActionTypeSchema as ExportedConfigUiPathActionTypeSchema, FALLBACK_ACCOUNT_ID_PREFIX, FAMILY_RENDER_COMPATIBILITY, FIRST_SEGMENT_EVENT_ENVELOPE_SCHEMA_VERSION, FIXED_BANNER_TEMPLATE_IDS, FIXED_SURFACE_TEMPLATE_IDS, FIXTURE_ANALYTICS_CATALOG, FeatureFlagSchema, FeatureFlagValueSchema, FeatureGateTriggerPayloadSchema, FieldDefinitionSchema, FlagValueTypeSchema, FreeTrialRuleSchema, FreeTrialSettingsSchema, FunnelStepSchema, GATED_SURFACE_TEMPLATE_IDS, GENERAL_BANNER_TEMPLATE_IDS, GENERAL_MODAL_TEMPLATE_IDS, GENERAL_TOAST_TEMPLATE_IDS, GrowthSignalBundleSchema, GrowthSignalPointSchema, GrowthSignalSeriesSchema, HANDLE_PATTERN, HandleField, INGEST_WRITE_SCOPE, INVOICE_RECEIVABLE_TRANSITIONS, IdField, IdentityKind, IdentitySchema, InMemoryStorage, IngestedEventSchema, InteractionTracker, InvitationStatusSchema, InvoicePaymentStatusSchema, InvoiceSettlementBasisSchema, InvoiceStatusSchema, KpiAggregateSchema, LEGACY_BILLING_OCCURRENCE_IDENTITY_VERSION, LEGACY_TRACK_EVENT_ENVELOPE_SCHEMA_VERSION, LocalizedTextSchema, MAX_BILLING_CHECKPOINT_LIST, MAX_BILLING_PRICE_TIERS, MAX_BILLING_PROFILE_LIST, MAX_EVENT_JSON_DEPTH, MAX_EVENT_TAGS, MAX_EVENT_TAG_LENGTH, MAX_SEGMENT_MESSAGES_PER_BATCH, MAX_TREATMENT_INTERACTIONS_PER_BATCH, MESSAGE_SURFACE_TEMPLATE_IDS, MIN_READABLE_EVENT_ENVELOPE_SCHEMA_VERSION, McpConfigSchema, McpTokenScopeSchema, MessageBlockContentSchema, MessageBlockRecordSchema, MessageBlockSchema, MessageSchema, MetadataField, MeteringConfigSchema, NON_RETRYABLE_EVIDENCE_REASONS, NameField, NullableDatetimeField, ObjectiveField, ObjectiveSchema, ObservationMaturitySchema, OnboardingChecklistSchema, OnboardingStateSchema, OpportunityCandidateSchema, OpportunityEvidenceSchema, OpportunityInterpretationSchema, OptimizationSuggestionSchema, OrgMemberRoleSchema, PERSISTED_SCHEMA_FACET_EXEMPTIONS, PLATFORM_EMITTED_EVENT_NAMES, PLATFORM_EVENT_TAXONOMY, PLAYBOOK_FORMAT_VERSION, PRIMARY_CONTACT_UNRESOLVED_CODE, PROTECTED_SUBSCRIPTION_SAMPLE_LIMIT, PaginatedResponseSchema, PaginationParamsSchema, PaymentTriggerPayloadSchema, PermissionActionSchema, PermissionResourceSchema, PermissionSchema, PersonalizationTokenSchema, PlacementCapRuleSchema, PlacementCategorySchema, PlacementController, PlacementDecisionOutputSchema, PlacementPayloadSchema, PlacementPerformanceRowSchema, PlacementSchema, PlacementSettingsCapRuleGroupItemSchema, PlacementSettingsCapRuleSchema, PlacementSettingsCapStateSchema, PlacementSettingsSchema, PlacementTestModeSchema, PlacementTestUserIdentifierTypeSchema, PlacementTestUserSchema, PlacementTypeRegistry, PlacementWarningCodeSchema, PlacementWarningSchema, PlanSchema, PlanVariationSchema, PlanVisibilitySchema, PlaybookBodySchema, PlaybookHeaderSchema, PlaybookObjectSchema, RevTurbineConfigPlacementItemSchema as PlaybookPlacementItemSchema, PlaybookSchema, RevTurbineConfigSegmentsItemPredicatesItemSchema as PlaybookSegmentsItemPredicatesItemSchema, RevTurbineConfigSegmentsItemSchema as PlaybookSegmentsItemSchema, PlaybookStrictSchema, RevTurbineConfigUiPathActionTypeSchema as PlaybookUiPathActionTypeSchema, PlaybookVersionDeployResultSchema, PlaybookVersionDiffSchema, PlaybookVersionEntrySummarySchema, PlaybookVersionSchema, PlaybookVersionStatusSchema, PresentationOutcomeSchema, PriceSourceSchema, PricingModelSchema, PrimaryContactDesignationSchema, PrimaryContactResolutionSchema, PrimaryContactUnresolvedReasonSchema, PromotionSchema, PromotionStatusSchema, ProviderAvailabilitySchema, ProviderBindingRefSchema, ProviderCapabilitySchema, ProviderConnectionSchema, ProviderProvenanceSchema, RECOGNIZED_UPDATE_KEYS, ROLE_PERMISSIONS, ROLE_RANK, ApiError as RevTurbineApiError, RevTurbineConfigAddonVariationsItemSchema, RevTurbineConfigAddonsItemSchema, RevTurbineConfigEnforcementDefaultsItemSchema, RevTurbineConfigEntitlementRulesItemSchema, RevTurbineConfigEntitlementsItemSchema, RevTurbineConfigMeterBindingsItemSchema, RevTurbineConfigObjectivesItemSchema, RevTurbineConfigPeriodCapSchema, RevTurbineConfigPersonalizationTokensItemSchema, RevTurbineConfigPlacementCategorySchema, RevTurbineConfigPlacementItemSchema, RevTurbineConfigPlacementPayloadItemSchema, RevTurbineConfigPlacementSettingsItemSchema, RevTurbineConfigPlacementSlotsItemSchema, RevTurbineConfigPlacementTriggerSchema, RevTurbineConfigPlanVariationsItemSchema, RevTurbineConfigPlansItemSchema, RevTurbineConfigSchema, RevTurbineConfigSeatTypesItemSchema, RevTurbineConfigSegmentDimensionsItemSchema, RevTurbineConfigSegmentsItemPredicatesItemSchema, RevTurbineConfigSegmentsItemSchema, RevTurbineConfigSlotConfigsItemSchema, RevTurbineConfigStudioCtaConfigSchema, RevTurbineConfigStudioPayloadCapsSchema, RevTurbineConfigStudioPayloadSchema, RevTurbineConfigStudioPayloadSurfaceSchema, RevTurbineConfigStudioPayloadTargetSchema, RevTurbineConfigSurfaceTemplatesItemFieldsItemSchema, RevTurbineConfigSurfaceTemplatesItemSchema, RevTurbineConfigUiPathActionTypeSchema, RevTurbineCustomerSdk, RevTurbineServer, RevenueMetricSchema, ReverseTrialRuleSchema, ReverseTrialSettingsSchema, ReverseTrialStartPolicySchema, RevturbineB2BTrackEventSchema, RevturbineCanonicalEventContextSchema, RevturbineEventContextSchema, RevturbineIdentitySourceSchema, RevturbineProducerAliasEventSchema, RevturbineProducerEventContextSchema, RevturbineProducerEventSchema, RevturbineProducerGroupEventSchema, RevturbineProducerIdentifyEventSchema, RevturbineProducerPageEventSchema, RevturbineProducerScreenEventSchema, RevturbineProducerSegmentContextSchema, RevturbineProducerTrackEventSchema, RoleSchema, RuleVisibilitySchema, RuntimeMode, RuntimePromotionSnapshotSchema, SDK_AUTOMATIC_NON_EMITTED_NAMES, SDK_CLIENT_EVENT_NAMES, SDK_META_EVENT_NAMES, SDK_SERVER_EVENT_NAMES, SEGMENT_EVENT_METHODS, SEGMENT_MAX_BATCH_BYTES, SEGMENT_MAX_MESSAGE_BYTES, SEGMENT_MAX_MESSAGE_ID_LENGTH, SEMANTIC_ID_PATTERN, SERVER_TRAITS_DOMAIN, SLOT_ROUTE_ID_PLACEHOLDER, SLOT_ROUTE_MAX_LENGTH, STRIPE_SUBSCRIPTION_STATUS_VALUES, SUBSCRIPTION_BLOCKER_ENTITY, SUBSCRIPTION_EVIDENCE_UNAVAILABLE_CODE, SUBSCRIPTION_EVIDENCE_UNAVAILABLE_REASONS, SUBSCRIPTION_REFERENCE_EXISTS_CODE, SUBSCRIPTION_STATUS_PROTECTION, SURFACE_SLOT_NAME_MAX_LENGTH, SURFACE_SLOT_ROUTE_MAX_LENGTH, SURFACE_SLOT_STATUS_VALUES, SchemaContext, SchemaExposure, SchemaPersistence, SchemaSource, SdkConfigShapeSchema, SdkMetaEventSchema, SdkMetaEventTypeSchema, SdkMetaIngestBatchSchema, SdkSession, SeatTypeSchema, SegmentAliasInputSchema, SegmentB2BTrackEventSchema, SegmentDimensionSchema, SegmentEventContextSchema, SegmentEventInputSchema, SegmentGroupInputSchema, SegmentIdentifyInputSchema, SegmentIngestBatchSchema, SegmentLibraryContextSchema, SegmentPageContextSchema, SegmentPageInputSchema, SegmentSchema, SegmentScreenInputSchema, SegmentTrackInputSchema, SegmentValueSchema, SemanticEventSchema, ServerBuiltinDimensionsWriteSchema, ServerEvaluationPayloadDecisionsItemSchema, ServerEvaluationPayloadEntitlementsValueSchema, ServerEvaluationPayloadSchema, ServerEvaluationPayloadTrialStatusSchema, ServerEvaluationPayloadUserContextSchema, ServerEvaluationPayloadUserSchema, ServerOnly, ServerUserBuiltinDimensionsSchema, ServerUserContextAssignmentSchema, ServerUserContextProvider, ServerUserContextUpsertSchema, SeveritySchema, StripeBillingScopeSchema, StripeIntegrationConfigSchema, StripePriceBillingPeriodSchema, StripePriceMockBillingPeriodSchema, StripePriceMockSchema, StripePriceSchema, StripePriceScopeSchema, StripeSubscriptionEvidenceSchema, StripeSubscriptionItemSchema, StripeSubscriptionStatusSchema, StudioSurfaceTypeSchema, SubscriptionEvidenceKnownSchema, SubscriptionEvidenceResultSchema, SubscriptionEvidenceUnavailableReasonSchema, SubscriptionEvidenceUnavailableSchema, SubscriptionProtectionSchema, SuggestionSeveritySchema, SupersessionReasonSchema, SupersessionRecordSchema, SurfaceSlotSchema, SurfaceSlotStatusSchema, SurfaceTemplateSchema, SurfaceTypeCapRuleSchema, SurfaceTypeSchema, TERMINAL_SUBSCRIPTION_STATUSES, TRIAL_PENDING_UNKNOWN_REASONS, TRIAL_REVISION_KINDS, TemplateFieldTypeSchema, TenantConfigSchema, TenantIdField, TenantSchema, TenantStatusSchema, ThemeSchema, TimestampFields, TrackEventSchema, TrackIngestBatchSchema, TreatmentInteractionBatchSchema, TreatmentInteractionInputSchema, TreatmentInteractionRequestSchema, TreatmentInteractionTypeSchema, TrendFeaturesSchema, TrialEligibilityScopeSchema, TrialInstanceSchema, TrialLimitPolicySchema, TrialStatusSchema, TrialTriggerPayloadSchema, TriggerEventTypeSchema, USER_GRAIN_NON_CREATION_SOURCES, UiPreferenceSchema, UnsupportedExperimentAssignmentUnitError, UsageAllocationSchema$1 as UsageAllocationSchema, UsageEnforcementSettingsSchema, UsagePeriodScopeSchema, UsageTriggerPayloadSchema, UserBuiltinDimensionsSchema, UserContextSchema, UserInstanceContextSchema, UserPlanContextSchema, UserRoleSchema, UserTrialStatusSchema, UserUsageEntrySchema, VIEW_ELEMENT_ID_PATTERN, VariantStatisticalSummarySchema, VersionFields, WEBHOOK_DERIVED_EVENT_NAMES, WarGameCapabilityRequirementsSchema, WarGameCategorySchema, WarGameGradeSchema, WarGameOracleSchema, WarGameQualificationLevelSchema, WarGameScenarioSchema, WebhookDeliverySchema, WebhookDispatchStatusSchema, WebhookEventLogSchema, WebhookEventSourceSchema, WebhookEventStatusSchema, WebhookProcessingStatusSchema, WebhookReplayEnvelopeSchema, adaptExperimentVersionToBucketer, analyticsPaths, analyticsViewPaths, applyPrimaryContactEnrichment, applyValueMaps, assertExperimentAnalysisConfigUpdateAllowed, assertExperimentDecisionPolicyUpdateAllowed, billingAccountingRevisionOf, billingEconomicOwnership, billingProfileCoverageGaps, billingSourceScopeKey, boundBillingProfileKinds, bucketSubject, buildAgentCatalogProjection, buildB2BMappingReport, buildControlPlaneEvent, canActivateBillingGeneration, canonicalB2BEventName, changelogPaths, classifyAccountCreation, classifyInvoiceTransition, classifySubscriptionStatus, classifyTaxonomyEvent, classifyTrackIngestBody, classifyTrialRevision, clearPersistedTheme, collapseBillingRevisions, collectAssignmentFactDeclarations, collectPersistedSchemas, collectVersionedConfigEntities, compareAccountingRevision, compileAnalyticsDraft, composeEffectiveExperimentContext, configPaths, contentPaths, createAnalyticsProvider, createBasicExperimentProvider, createChainedPlacementRequest, createCompositeExperimentProvider, createCustomEndpointRuntimeConfig, createEntitlementPlacementRequest, createFixtureAnalyticsCatalog, createHydrationProviders, createInMemoryAnalyticsCatalog, createLocalRuntimeConfig, createNativeExperimentAssignmentProvider, createPostHogAnalyticsProvider, createPostHogIntegration, createRevTurbineApiClient, createSemanticEvent, createServerRuntimeConfig, createSlotPlacementRequest, createStaticPlacementContentLookupProvider, createStaticPlacementResolver, createStaticProviders, createStrictLocalRuntimeConfig, createTreatmentInteraction, currentBrowserRoute, customerPaths, decideDeleteProtection, defaultRenderForQuery, defineUiPathResolvers, deriveB2BEvent, deriveBillingAllocationKey, deriveBillingOccurrenceKey, deriveBillingOutputKey, deriveBillingRevisionKey, deriveLocalTrialStatusFromInstance, deriveReverseTrialGrants, entitlementPaths, entitlementResultDenies, environmentPaths, evaluateSegments, evaluateTrialStatus, eventPaths, experimentPaths, fallbackAccountId, filterExternalSchemas, filterPersistedSchemas, findActiveTrialInstance, findLatestStartedTrialInstance, formatCurrencyMinorUnits, getDefaultRegistry, getFieldClassification, getFieldVisibility, getObjectFieldClassifications, getObjectFieldVisibilities, getSchemaClassification, getSchemaDeprecation, getSchemaExposure, getSchemaFacets, getSchemaIdentity, getSchemaPersistence, initRevTurbine, isAnalyticsDateRangeFilterValue, isBrowser, isEvidencedAccountCreation, isExperimentAssignmentFactDeclaration, isFallbackAccountId, isIdentifierLikeSegment, isLegacyDateRangeArray, isRetryableEvidenceReason, isServer, isVersionedConfigEntity, jsonPlainViolation, liftTrackEventToSegmentInput, loadTheme, makeAnchor, mergeTheme, mintedIdentity, namedIdentity, namespacePlatformCollision, normalizeConfigArtifactOrThrow, normalizeLegacyConfig, normalizeSlotRoute, parsePlaybook, parsePromotion, parseUiPath, placementPaths, planPaths, playbookVersionPaths, projectClientSafe, promotionPaths, requireSchemaFacets, resetDefaultRegistry, resetPlaybookAliasWarning, resolveBillingAccountMapping, resolveBranding, resolveBrowserPublicKey, resolveComponentType, resolveContent, resolveLocalPlaybook, resolvePayloadForUser, resolvePayloadForUserWithProvider, resolvePersistentStorage, resolvePlaybookResolver, resolvePrimaryContact, resolveProviderPlaybook, resolveSessionStorage, resolveSubscriptionEvidence, resolveTokens, routePatternFromParams, schemaDeprecation, schemaFacets, scopesSubsetOfRole, searchAgentCatalog, segmentPaths, settingsPaths, summarizeInvoicePaymentAllocations, summarizeProtectedSubscriptions, tenantPaths, toCreateSchema, toWritableSchema, trialPaths, uiPreferencePaths, unavailableEvidence, userContextPaths, validateAnalyticsQuery, validateAnalyticsView, validateB2BTrack, validateBillingProfileForEvent, validateEventPayload, validatePlacementThresholdWarnings };
|
|
39964
|
+
export type { AccountCreationClassification, AccountCreationEvidence, AccountCreationEvidenceKind, AccountCreationFacts, AccountCreationPendingReason, AccountCreationSource, AccountPrimaryContactBinding, ActivityLevel, AdapterBaseOptions, AddOn, AddOnVariation, Alert, AnalysisProvenance, AnalyticsAgentCatalogEntry, AnalyticsAgentCatalogEntryKind, AnalyticsAnalyticalUnit, AnalyticsAnnotation, AnalyticsAnnotationKind, AnalyticsAnnotationMarker, AnalyticsAnnotationRequest, AnalyticsAnnotationResponse, AnalyticsAnnotationSource, AnalyticsBlockError, AnalyticsBlockResult, AnalyticsCardinalityClass, AnalyticsCatalog, AnalyticsCatalogAnnotationKind, AnalyticsCatalogConcept, AnalyticsCatalogData, AnalyticsCatalogDeprecation, AnalyticsCatalogDimension, AnalyticsCatalogMetric, AnalyticsCatalogMetricValidated, AnalyticsCatalogProvenance, AnalyticsCatalogProvenanceKind, AnalyticsCatalogSearchResult, AnalyticsCatalogSource, AnalyticsCatalogView, AnalyticsClassification, AnalyticsCompareDelta, AnalyticsCompareExperiment, AnalyticsCompareMode, AnalyticsCompareSegment, AnalyticsCompileOutput, AnalyticsCompileResolution, AnalyticsCoverage, AnalyticsCustomizationCapability, AnalyticsCustomizationPolicy, AnalyticsDateRangeFilterValue, AnalyticsDimensionCapability, AnalyticsDimensionType, AnalyticsEventHandler, AnalyticsEventProperties, AnalyticsEventTransformer, AnalyticsFieldType, AnalyticsFilterControl, AnalyticsFilterOperator, AnalyticsFilterState, AnalyticsFilterValue, AnalyticsFormatSpec, AnalyticsHistoricalMode, AnalyticsMetricAggregationSemantics, AnalyticsMetricDirection, AnalyticsMetricStatisticalType, AnalyticsPeriodCompareMode, AnalyticsProviderOptions, AnalyticsQueryFamily, AnalyticsQueryOverrides, AnalyticsQueryRequest, AnalyticsQueryResponse, AnalyticsRenderCartesian, AnalyticsRenderFunnel, AnalyticsRenderMetric, AnalyticsRenderRecommendations, AnalyticsRenderSpec, AnalyticsRenderTable, AnalyticsRenderTimeline, AnalyticsResult, AnalyticsResultField, AnalyticsResultMeta, AnalyticsSafeChartOptions, AnalyticsSavedView, AnalyticsSemanticFilter, AnalyticsSemanticId, AnalyticsSourceScope, AnalyticsSuggestedPatchOp, AnalyticsTemplateSummary, AnalyticsTimeGrain, AnalyticsValidationCode, AnalyticsValidationIssue, AnalyticsValidationResult, AnalyticsView, AnalyticsViewAccess, AnalyticsViewAccessRole, AnalyticsViewBlock, AnalyticsViewBlockDraft, AnalyticsViewDraft, AnalyticsViewFilter, AnalyticsViewFilterDraft, AnalyticsViewHandoff, AnalyticsViewHandoffDraft, AnalyticsViewLayout, AnalyticsViewQuery, AnalyticsViewRevision, AnalyticsViewVisibility, AnalyticsWarning, AnyDomainProvider, AssignmentFactUnit, AuditActorType, AuditEvent, AuthAccount, AuthApiKey, AuthInvitation, AuthMember, AuthOrganization, AuthPasskey, AuthSession, AuthSsoProvider, AuthTwoFactor, AuthUser, AuthVerification, B2BCanonicalClass, B2BDerivation, B2BMappingReport, B2BSegmentEventName, B2BSourceMapping, B2BValidation, BasicBucketerExperiment, BasicBucketerOptions, BillingAccountMappingResolution, BillingAccountMappingRevision, BillingAccountingRevision, BillingAllocation, BillingBalanceProfile, BillingCadence, BillingCompletedGenerationCheckpoint, BillingCoverageCheckpoint, BillingCoverageGap, BillingCoverageGapRange, BillingCoverageGapReason, BillingCoverageUnavailableReason, BillingCreditNoteLine, BillingCreditProfile, BillingCreditSettlement, BillingEconomicOwner, BillingGeneration, BillingGenerationCheckpoint, BillingHealthStatus, BillingInvoicePaymentSource, BillingInvoiceProfile, BillingLossProfile, BillingOccurrence, BillingOpeningSeed, BillingOutputKeyInput, BillingOutputKind, BillingOutputRowKey, BillingPriceTerms, BillingPriceTier, BillingProfile, BillingProfileBinding, BillingProfileName, BillingReconciliation, BillingRecurrence, BillingRecurringPrice, BillingRefundProfile, BillingRepeatableOccurrence, BillingScheduleProfile, BillingSettlementAmount, BillingSourceScope, BillingSubscriptionItemSnapshot, BillingSubscriptionProfile, BillingTransactionProfile, BrandingConfig, BrandingResolutionInput, BrandingSource, BrowserRuntimeOptions, CanonicalAliasEvent, CanonicalAnalyticsEvent, CanonicalExperimentAllocation, CanonicalGroupEvent, CanonicalIdentifyEvent, CanonicalPageEvent, CanonicalScreenEvent, CanonicalSegmentContext, CanonicalTrackEvent, CapEnforcementResult, CapPeriod, ChangeListener, ChangeLogAction, ChangeLogEntry, ClientContext, CohortMonth, CompileAnalyticsDraftOptions, ComponentType, CompositeExperimentProviderOptions, ConfigArtifact, ConfigTargetDefaults, ContentPayloadSegmentEntry, ContentPlacementPayload, ContentPromotion, ContentProvider, ContentProviderState, ContentUiPath, ControlPlaneEmitInput, ControlPlaneEventSource, ControlPlaneEventType, ControlPlaneSemanticEvent, CtaActionType, CtaHandler, CtaHandlerMap, CtaHandlerProvider, CtaHandlerProviderState, CtaObject, CtaPath, CtaPathType, Currency, Customer, CustomerBuiltinDimensions, CustomerOverride, CustomerOverrideDuration, CustomerOverrideStatus, CustomerOverrideType, CustomerSettableBuiltinDimensionKey, DataClassificationValue, DecisionEngineOptions, DefaultTemplateIds, DeleteProtectionDecision, DeriveTrialStatusInput, DetectorRequirements, DimensionCategory, DimensionSourceType, DiscountType, DomainProvider, DomainProviderName, DomainProviderResolutionInput, DriftReport, EffectiveUserContextResolution, EligibleAddon, EligiblePlan, EligiblePrice, EmittablePlatformEventName, EnforcementAction, EnforcementMode, Entitlement, EntitlementCheckResult$1 as EntitlementCheckResult, EntitlementGateOptions, EntitlementGateState, EntitlementGrant$1 as EntitlementGrant, EntitlementGrantSet$1 as EntitlementGrantSet, EntitlementGrantSource, EntitlementGrantStatus, EntitlementProvider, EntitlementProviderState, EntitlementResult, EntitlementRule, EntitlementRulePeriodUnit, EntitlementRuleSnapshot, EntitlementRuleTarget, EntitlementRuleTargetKind$1 as EntitlementRuleTargetKind, EntitlementRuleValidated, EntitlementRuleVariant, EntitlementStatus, EntitlementType, EntitlementUsageEntry, Environment, EnvironmentPromotionRequest, EnvironmentStatus, EvaluateTrialStatusInput, EvaluateTrialStatusResult, EvaluationContext, EventConsumer, EventConsumerProvider, EventConsumerProviderState, EventEnvelope, EventEnvelopeReader, EventIngestBatch, EventPayloadContract, EventPayloadContractMap, EventPayloadInput, EventPrefixFamily, EventSearchParams, EventSource, EventStability, EventSurface, EventTaxonomy, EventTaxonomyEntry, EvidenceCoverageState, EvidenceReasonColumn, EvidenceRequirement, Exact, ExactInitOptions, Experiment, ExperimentAnalysisConfig, ExperimentAnalysisDefinition, ExperimentAnalysisResult, ExperimentAnalysisResultRecord, ExperimentAssignmentFact, ExperimentAssignmentFactDeclaration, ExperimentAssignmentFactMetadataCarrier, ExperimentAssignmentProvider, ExperimentAssignmentSource, ExperimentDecisionFindingCode, ExperimentDecisionPolicy, ExperimentDecisionRecord, ExperimentDecisionType, ExperimentEvidence, ExperimentEvidenceSnapshot, ExperimentHealth, ExperimentMetricEvidencePlan, ExperimentMetricResult, ExperimentProvider, ExperimentProviderState, ExperimentStatus, ExperimentType, ExperimentVariant, ExperimentVariantNonAssignmentReason, ExperimentVariantSelection, ExperimentVariantTarget, ExportedConfig, ExportedConfigPlacementItem, ExportedConfigProvider, ExportedConfigSegmentsItem, ExportedConfigSegmentsItemPredicatesItem, ExportedConfigUiPathActionType, FeatureFlag, FeatureFlagValue, FeatureGateTriggerPayload, FieldDefinition, FlagValueType, FreeTrialRule, FreeTrialSettings, FunnelStep, GrowthSignalBundle, GrowthSignalPoint, GrowthSignalSeries, IdentifyContextInput, Identity, IdentityDeclaration, IngestWriteScope, IngestedEvent, InteractionState, InvitationStatus, InvoicePaymentAllocationSummary, InvoicePaymentStatus, InvoiceReceivableTransition, InvoiceSettlementBasis, InvoiceStatus, JsonObject, JsonValue, KpiAggregate, LegacyConfigTargetDefaults, LocalPlacementDataset, LocalPlacementEntry, LocalPlacementPayload, LocalPlacementSurface, LocalizedText, McpConfig, McpTokenScope, Message, MessageBlock, MessageBlockContent, MessageBlockRecord, MessageBlockSnapshot, MeteringConfig, NativeExperimentAssignmentOptions, NativeExperimentAssignmentUnit, Objective, ObservationMaturity, OnboardingChecklist, OnboardingState, OpportunityCandidate, OpportunityEvidence, OpportunityInterpretation, OptimizationSuggestion, OrgMemberRole, PaginationParams, PaymentTriggerPayload, Permission, PermissionAction, PermissionResource, PersonalizationContext, PersonalizationToken, Placement, PlacementCapPolicy, PlacementCapRule, PlacementCategory, PlacementContentFields, PlacementContentLookupProvider, PlacementControllerOptions, PlacementControllerState, PlacementCustomCode, PlacementDecisionOutput, PlacementEmittedThresholdLookup, PlacementOutput, PlacementPayload, PlacementPayloadSnapshot, PlacementPerformanceRow, PlacementPreviewConfig, PlacementPromotion, PlacementSettings, PlacementSettingsCapRule, PlacementSettingsCapRuleGroupItem, PlacementSettingsCapState, PlacementSlotProps, PlacementSlotType, PlacementTestMode, PlacementTestUser, PlacementTestUserIdentifierType, PlacementUiPath, PlacementUiPathActionType, PlacementWarning, PlacementWarningCode, Plan, PlanProvider, PlanProviderState, PlanRuleSnapshot, PlanVariation, PlanVisibility, PlatformEventName, Playbook, PlaybookBody, PlaybookHeader, PlaybookObject, PlaybookPlacementItem, PlaybookProvider, PlaybookSegmentsItem, PlaybookSegmentsItemPredicatesItem, PlaybookStrict, PlaybookUiPathActionType, PlaybookVersion, PlaybookVersionDeployResult, PlaybookVersionDiff, PlaybookVersionEntrySummary, PlaybookVersionStatus, PostHogAnalyticsProviderOptions, PostHogIntegrationOptions, PostHogLike, PresentationCapState, PresentationOutcome, PriceSource, PricingModel, PrimaryContactDesignation, PrimaryContactEnrichmentResult, PrimaryContactResolution, PrimaryContactScope, PrimaryContactUnresolvedReason, Promotion, PromotionStatus, ProviderAvailability, ProviderBindingRef, ProviderCapability, ProviderConnection, ProviderProvenance, RecognizedIdentifyKey, RecognizedUpdateKey, RegisterPlacementSlotTypeOptions, ResolvedBranding, ResolvedContent, ResolvedDomainType, ResolvedPayload, ResolvedProviderContext, RevTurbineApiClient, RevTurbineApiClientConfig, paths as RevTurbineApiPaths, RevTurbineAuthoredSlotRef, RevTurbineBootstrapDecisionInput, RevTurbineChainedPlacementRequestOptions, RevTurbineClientSessionProvider, RevTurbineComponentType, RevTurbineConfig, RevTurbineConfigAddonVariationsItem, RevTurbineConfigAddonsItem, RevTurbineConfigEnforcementDefaultsItem, RevTurbineConfigEntitlementRulesItem, RevTurbineConfigEntitlementsItem, RevTurbineConfigMeterBindingsItem, RevTurbineConfigObjectivesItem, RevTurbineConfigPeriodCap, RevTurbineConfigPersonalizationTokensItem, RevTurbineConfigPlacementCategory, RevTurbineConfigPlacementItem, RevTurbineConfigPlacementPayloadItem, RevTurbineConfigPlacementSettingsItem, RevTurbineConfigPlacementSlotsItem, RevTurbineConfigPlacementTrigger, RevTurbineConfigPlanVariationsItem, RevTurbineConfigPlansItem, RevTurbineConfigProvider, RevTurbineConfigProviderInput, RevTurbineConfigSeatTypesItem, RevTurbineConfigSegmentDimensionsItem, RevTurbineConfigSegmentsItem, RevTurbineConfigSegmentsItemPredicatesItem, RevTurbineConfigSlotConfigsItem, RevTurbineConfigStudioCtaConfig, RevTurbineConfigStudioPayload, RevTurbineConfigStudioPayloadCaps, RevTurbineConfigStudioPayloadSurface, RevTurbineConfigStudioPayloadTarget, RevTurbineConfigSurfaceTemplatesItem, RevTurbineConfigSurfaceTemplatesItemFieldsItem, RevTurbineConfigUiPathActionType, RevTurbineContextMode, RevTurbineContextPolicy, RevTurbineDecisionContent, RevTurbineEndpointOverrides, RevTurbineEntitlementContext, RevTurbineEntitlementPlacementRequestOptions, RevTurbineEntitlementRuleEvaluation, RevTurbineEventBatchingOptions, RevTurbineEventEnvelope, RevTurbineEventOptions, RevTurbineGateResult, RevTurbineImpressionMetadata, RevTurbineInitBaseOptions, RevTurbineInitInputOptions, RevTurbineInitOptions, RevTurbineInitOptionsStrict, RevTurbineInitWithProviderOptions, RevTurbineLocalOnlyMinimalInitOptions, RevTurbineLocalRuntimeData, RevTurbineLocalRuntimeOptions, RevTurbineLocalRuntimeResolvers, RevTurbineMeterUsageOverride, RevTurbinePageContext, RevTurbinePersonalizationTokens, RevTurbinePlacementBehaviorFlags, RevTurbinePlacementConfig, RevTurbinePlacementContent, RevTurbinePlacementDecision, RevTurbinePlacementDecisionExplanation, RevTurbinePlacementDecisionInput, RevTurbinePlacementDecisionOverrides, RevTurbinePlacementPayloadEvaluation, RevTurbinePlacementRecord, RevTurbinePlacementRequestConfig, RevTurbinePlacementRuleEvaluation, RevTurbinePlacementTypeEntity, RevTurbinePlaybookLoadState, RevTurbinePolicySnapshot, RevTurbineProviderFactory, RevTurbineProviderFailureSlotBehavior, RevTurbineRegisteredSlot, RevTurbineRequiredUiPathResolvers, RevTurbineRuntimeMode, RevTurbineSdkMode, RevTurbineSdkProvider, RevTurbineSegmentEvaluation, RevTurbineSegmentPredicateEvaluation, RevTurbineSemanticEvent, RevTurbineServerOptions, RevTurbineSlotInventoryDiagnosis, RevTurbineSlotPlacementRequestOptions, RevTurbineStorage, RevTurbineSurfaceSlotConfig, RevTurbineSurfaceType, RevTurbineTargeting, RevTurbineTelemetryOptions, RevTurbineTheme, RevTurbineThemeColors, RevTurbineThemeInput, RevTurbineThemeShadows, RevTurbineThemeShape, RevTurbineThemeTypography, RevTurbineTreatmentInteractionInput, RevTurbineTreatmentInteractionOptions, RevTurbineTreatmentInteractionType, RevTurbineTrialContext, RevTurbineTriggerEvent, RevTurbineTriggerPayload, RevTurbineUiPathActionTypes, RevTurbineUiPathResolver, RevTurbineUiPathResolverMap, RevTurbineUiPathResolverValidationIssue, RevTurbineUiPathResolverValidationOptions, RevTurbineUiPathResolverValidationReport, RevTurbineUpdateInput, RevTurbineUsageSnapshot, RevTurbineUsageSnapshotEntry, RevTurbineUserContext, RevenueMetric, ReverseTrialRule, ReverseTrialSettings, ReverseTrialStartPolicy, RevturbineB2BTrackEvent, RevturbineCanonicalEventContext, RevturbineEventContext, RevturbineIdentitySource, RevturbineProducerAliasEvent, RevturbineProducerEvent, RevturbineProducerEventContext, RevturbineProducerGroupEvent, RevturbineProducerIdentifyEvent, RevturbineProducerPageEvent, RevturbineProducerScreenEvent, RevturbineProducerSegmentContext, RevturbineProducerTrackEvent, Role, RuleProvider, RuleProviderState, RuleVisibility, RuntimePromotionSnapshot, SchemaDeprecation, SchemaFacetOptions, SchemaFacets, SdkConfigShape, SdkEventProperties, SdkMetaEvent, SdkMetaEventType, SdkMetaIngestBatch, SdkMetadata, SdkSessionOptions, SdkTraits, SeatType, Segment, SegmentAliasInput, SegmentB2BTrackEvent, SegmentDimension, SegmentEventContext, SegmentEventInput, SegmentEventMethod, SegmentGroupInput, SegmentIdentifyInput, SegmentIngestBatch, SegmentLibraryContext, SegmentPageContext, SegmentPageInput, SegmentProvider, SegmentProviderState, SegmentScreenInput, SegmentTrackInput, SegmentValue, SemanticEvent, ServerActionContext, ServerActionHandler, ServerActionMap, ServerActionResult, ServerBuiltinDimensionsWrite, ServerEntitlementResult, ServerEvaluationHydrationPayload, ServerEvaluationPayload, ServerEvaluationPayloadDecisionsItem, ServerEvaluationPayloadEntitlementsValue, ServerEvaluationPayloadTrialStatus, ServerEvaluationPayloadUser, ServerEvaluationPayloadUserContext, ServerEvaluationRequest, ServerPlacementDecision, ServerPlacementRequest, ServerUserBuiltinDimensions, ServerUserContext, ServerUserContextAssignment, ServerUserContextSnapshot, ServerUserContextUpsert, Severity, SlotRouteParams, StaticPlacementResolverOptions, StripeBillingScope, StripeIntegrationConfig, StripePrice, StripePriceBillingPeriod, StripePriceMock, StripePriceMockBillingPeriod, StripePriceScope, StripeSubscriptionEvidence, StripeSubscriptionItem, StripeSubscriptionStatus, StudioSurfaceType, SubscriptionEvidenceKnown, SubscriptionEvidenceResult, SubscriptionEvidenceUnavailable, SubscriptionEvidenceUnavailableReason, SubscriptionProtection, SuggestionSeverity, SupersessionReason, SupersessionRecord, SuppressionResult, SurfaceSlot, SurfaceSlotStatus, SurfaceTemplate, SurfaceType, SurfaceTypeCapRule, TelemetryConsent, TemplateFieldType, Tenant, TenantConfig, TenantStatus, Theme, ThemeLoaderOptions, ThemeProvider, ThemeProviderState, TrackEvent, TrackEventLiftResult, TrackIngestBatch, TrackIngestBodyClassification, Trait, TraitsNamespace, TraitsProvider, TraitsProviderState, TreatmentInteractionBatch, TreatmentInteractionInput, TreatmentInteractionRequest, TreatmentInteractionType, TrendFeatures, TrialCommitment$1 as TrialCommitment, TrialEligibilityScope, TrialEpisodeFacts$1 as TrialEpisodeFacts, TrialEvidence$1 as TrialEvidence, TrialEvidenceKind$1 as TrialEvidenceKind, TrialInstance, TrialLimitPolicy, TrialPendingUnknownReason, TrialRevisionClassification, TrialRevisionKind, TrialRevisionPending, TrialRevisionResolved, TrialStatus, TrialStatusProvider, TrialStatusTraits, TrialTriggerPayload, TriggerEventType, UiPreference, UnvalidatedConfigArtifact, UsageAllocation, UsageBalances, UsageEnforcementSettings, UsagePeriodScope, UsageTraits, UsageTraitsProvider, UsageTriggerPayload, UserBuiltinDimensions, UserContext, UserContextInput, UserInstanceContext, UserPlanContext, UserRole, UserTargetingContext, UserTrialStatus, UserUsageEntry, ValidateAnalyticsViewOptions, VariantStatisticalSummary, WarGameCapabilityRequirements, WarGameCategory, WarGameGrade, WarGameOracle, WarGameQualificationLevel, WarGameScenario, WebhookDelivery, WebhookDispatchStatus, WebhookEventLog, WebhookEventSource, WebhookEventStatus, WebhookProcessingStatus, WebhookReplayEnvelope };
|