@seatlayer/js 0.44.0 → 0.46.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -1,5 +1,7 @@
1
- import { PickerSeat, RendererViewMode, SeatHoverDetails, PickerTransport, ChartDoc, AvailabilityRule, ChartTheme, ExpandedSeat } from '@seatlayer/core';
1
+ import { PickerSeat, RendererViewMode, SeatHoverDetails, PickerTransport } from '@seatlayer/core';
2
2
  export { ExpandedSeat, SeatHoverDetails } from '@seatlayer/core';
3
+ import { C as ChannelListResult, a as ChannelAllocationPage, b as ChannelRecord, A as AssignmentResult, c as ChannelPreviewProjection, d as ChannelAccessIntent, e as AccessLinkReveal, f as AccessLinkStatusRecord, g as ChannelSeatStatus, B as BucketRow } from './manager-CAIPkUYl.cjs';
4
+ export { h as ACCESS_LINK_DEFAULTS, i as AccessIntentForbidsDetails, j as AccessLinkRecord, k as AccessLinkState, l as AccessLinkStatus, m as ArchiveBlockedDetails, n as AssignmentBuckets, o as AssignmentDropDetails, p as ChannelAccessSummary, q as ChannelAuditEntry, r as ChannelAuditPage, s as ChannelCounts, t as ChannelState, u as ControlRoomActivityEntry, v as ControlRoomSectionMetric, w as ControlRoomSnapshot, I as IntentSwitchBlockedDetails, L as LogEntry, x as LogPage, M as ManageApi, y as ManageApiError, P as PUBLIC_CHANNEL_ID, z as PUBLIC_CHANNEL_NAME, R as ReportByStatus, D as ReportCategoryMeta, E as ReportCategoryRow, F as ReportResult, S as SeatManager, G as SeatManagerActionResult, H as SeatManagerActivity, J as SeatManagerCapability, K as SeatManagerConnection, N as SeatManagerMode, O as SeatManagerOptions, Q as SeatManagerTallies, T as SelectionSourceRow, U as accessIntentDescription, V as accessIntentLabel, W as accessLine, X as accessLinkBadge, Y as accessLinkErrorCopy, Z as accessLinkIsLive, _ as accessLinkPolicyLines, $ as bucketRows, a0 as dropReviewRows, a1 as intentForbidsCopy, a2 as intentSwitchBlockedCopy, a3 as isPublicChannelId, a4 as markerLetter, a5 as markerOf, a6 as mutationCount, a7 as needsMoveConfirmation, a8 as planAssignment, a9 as retryAfterCopy, aa as selectionSources, ab as stateBadge, ac as suggestMarker } from './manager-CAIPkUYl.cjs';
3
5
 
4
6
  /**
5
7
  * Buyer access context — the browser half of the Sales Channels contract
@@ -243,7 +245,7 @@ interface RealtimeSink {
243
245
  activeHolds: number;
244
246
  }): void;
245
247
  }
246
- interface SubscribeTicket$1 {
248
+ interface SubscribeTicket {
247
249
  ticket?: string;
248
250
  /** Exactly what to hand `new WebSocket(url, protocols)`, per protocol doc §3. */
249
251
  protocols?: string[];
@@ -254,7 +256,7 @@ interface BuyerRealtimeOptions {
254
256
  sink: RealtimeSink;
255
257
  /** Mint a one-use ticket for THIS connection attempt. Returns null for the
256
258
  * anonymous public case (no ticket needed). Throwing stops the client. */
257
- mintTicket?: () => Promise<SubscribeTicket$1 | null>;
259
+ mintTicket?: () => Promise<SubscribeTicket | null>;
258
260
  /** Typed access states. 4401 arrives here as `revoked`. */
259
261
  onAccessUnavailable?: (event: BuyerAccessUnavailableEvent) => void;
260
262
  /** Test seam. Defaults to the global WebSocket. */
@@ -2056,1301 +2058,6 @@ interface AttachPickerFrameOptions {
2056
2058
  */
2057
2059
  declare function attachPickerFrame(iframe: HTMLIFrameElement, opts?: AttachPickerFrameOptions): () => void;
2058
2060
 
2059
- /**
2060
- * Sales-channel planning — the pure, DOM-free half of Channels mode.
2061
- *
2062
- * Everything here is deterministic and testable without a canvas: the marker
2063
- * palette, the mixed-source selection summary, the LOCAL staged preview of an
2064
- * assignment, and the bucket rows the Review sheet renders.
2065
- *
2066
- * The local preview deliberately produces the SAME `AssignmentBuckets` shape the
2067
- * server returns from `POST /channels/assignments`. There is no dry-run endpoint,
2068
- * so the review sheet is drawn from this local computation and then REDRAWN from
2069
- * the authoritative server response after Apply. One renderer, two sources —
2070
- * which is why the shapes must match exactly.
2071
- *
2072
- * Spec: sales-channels-product-ux-spec §8.4–8.5.
2073
- */
2074
- /**
2075
- * Public sale is a built-in pseudo-channel. The server's sentinel for it is the
2076
- * literal string `'public'` — it is what `GET /channels` returns as
2077
- * `publicSale.id`, what `GET /channels/allocation` reports for an unallocated
2078
- * unit, and what `POST /channels/assignments` accepts (alongside `null`) as the
2079
- * target meaning "send these back to public sale".
2080
- *
2081
- * This constant was `''` until 2026-08-02, which silently made every public unit
2082
- * look like an unknown PRIVATE channel to `planAssignment` and `markerOf` — the
2083
- * cause of the Review sheet's phantom "moved out of another channel" line and
2084
- * the rail's "?" marker. Keep it byte-identical to the server's
2085
- * `eventChannels.PUBLIC_CHANNEL_ID`.
2086
- */
2087
- declare const PUBLIC_CHANNEL_ID = "public";
2088
- declare const PUBLIC_CHANNEL_NAME = "Public sale";
2089
- /** True for every spelling of "public sale" a worker may hand us. */
2090
- declare function isPublicChannelId(id: string | null | undefined): boolean;
2091
- type ChannelState = 'active' | 'paused' | 'archived';
2092
- /** Physical inventory status, as the manage surface speaks it. */
2093
- type ChannelSeatStatus = 'free' | 'held' | 'booked' | 'blocked';
2094
- interface ChannelCounts {
2095
- allocated: number;
2096
- free: number;
2097
- held: number;
2098
- booked: number;
2099
- blocked: number;
2100
- units: number;
2101
- }
2102
- /** Buyer-access intents the server stores per channel. */
2103
- type ChannelAccessIntent = 'none' | 'internal' | 'server' | 'hosted_link';
2104
- /**
2105
- * Buyer-access summary on a channel row. Shipped by the access hardening branch
2106
- * (merged to app main). Still optional in this type: a worker that predates the
2107
- * merge simply omits it and the rail reads "—" rather than inventing a state.
2108
- */
2109
- interface ChannelAccessSummary {
2110
- intent?: ChannelAccessIntent | string;
2111
- hasActiveGrants?: boolean;
2112
- lastMintAt?: number | null;
2113
- /** Free-text detail (partner host, who paused it) when the server offers one. */
2114
- detail?: string | null;
2115
- }
2116
- interface ChannelRecord {
2117
- id: string;
2118
- name: string;
2119
- color: string | null;
2120
- marker: string | null;
2121
- externalRef: string | null;
2122
- state: ChannelState;
2123
- archiveDestination: string | null;
2124
- createdAt: number;
2125
- updatedAt: number;
2126
- archivedAt: number | null;
2127
- counts: ChannelCounts;
2128
- access?: ChannelAccessSummary | null;
2129
- }
2130
- interface PublicSaleChannel {
2131
- /** `'public'` on every shipped worker; typed loosely so an older build that
2132
- * still answers `''` is normalised rather than rejected. */
2133
- id: string;
2134
- name: string;
2135
- state: 'active';
2136
- counts: ChannelCounts;
2137
- access?: ChannelAccessSummary | null;
2138
- }
2139
- interface ChannelListResult {
2140
- assignmentVersion: number;
2141
- publicSale: PublicSaleChannel;
2142
- channels: ChannelRecord[];
2143
- }
2144
- interface AssignmentBucketCount {
2145
- count: number;
2146
- }
2147
- interface AssignmentSkippedBucket extends AssignmentBucketCount {
2148
- labels: string[];
2149
- truncated: boolean;
2150
- }
2151
- interface AssignmentBuckets {
2152
- changedFromPublic: AssignmentBucketCount;
2153
- movedFromOtherChannel: AssignmentBucketCount & {
2154
- channels: Array<{
2155
- channelId: string;
2156
- name: string | null;
2157
- count: number;
2158
- }>;
2159
- };
2160
- alreadyInTarget: AssignmentBucketCount;
2161
- skippedHeld: AssignmentSkippedBucket;
2162
- skippedBooked: AssignmentSkippedBucket;
2163
- /** Requested labels that are not inventory in this event. */
2164
- notFound: AssignmentSkippedBucket;
2165
- }
2166
- interface AssignmentResult {
2167
- ok: true;
2168
- targetChannelId: string;
2169
- assignmentVersion: number;
2170
- requested: number;
2171
- applied: number;
2172
- buckets: AssignmentBuckets;
2173
- }
2174
- interface ArchiveBlockedDetails {
2175
- activeHolds?: number;
2176
- heldUnits?: number;
2177
- latestHoldExpiresAt?: number | null;
2178
- retryAfterMs?: number;
2179
- }
2180
- /**
2181
- * Clamp any marker text down to the ONE uppercase character every surface draws.
2182
- *
2183
- * The server stores `marker` as free text (it only length-caps it), so a channel
2184
- * created outside this widget can carry "star" or "VIP". The comp's marker chip
2185
- * is a single glyph: taking two characters ("ST") overflows the 22px chip and
2186
- * stops reading as a letter. Non-letter leading characters (an emoji, a digit,
2187
- * punctuation) are skipped in favour of the first real letter.
2188
- */
2189
- declare function markerLetter(raw: string | null | undefined, fallback: string): string;
2190
- /**
2191
- * Suggest a marker for a new channel: the first letter of its name when that
2192
- * letter is still free, otherwise the next unused letter. Deterministic so the
2193
- * Create dialog's preview matches what actually gets stored.
2194
- */
2195
- declare function suggestMarker(name: string, taken: Iterable<string>): {
2196
- letter: string;
2197
- color: string;
2198
- };
2199
- /** The letter + color a channel actually renders with (server value wins). */
2200
- declare function markerOf(channel: {
2201
- id: string;
2202
- name: string;
2203
- marker?: string | null;
2204
- color?: string | null;
2205
- }, index?: number): {
2206
- letter: string;
2207
- color: string;
2208
- };
2209
- /** One line of the rail's mixed-source selection summary (§8.4). */
2210
- interface SelectionSourceRow {
2211
- channelId: string;
2212
- name: string;
2213
- count: number;
2214
- }
2215
- /**
2216
- * Group the current selection by the channel each unit is allocated to today.
2217
- * Public sale is listed first; the rest follow in list order so the rail's
2218
- * ordering never jitters as the selection changes.
2219
- */
2220
- declare function selectionSources(labels: string[], allocation: Map<string, string>, list: ChannelListResult | null): SelectionSourceRow[];
2221
- /**
2222
- * The LOCAL staged preview of "move these labels to this channel".
2223
- *
2224
- * Mirrors the DO's rules exactly (eventChannels.applyAssignment):
2225
- * - a unit already in the target is `alreadyInTarget`, whatever its status;
2226
- * - otherwise held and booked units are skipped and never rewritten;
2227
- * - otherwise a public unit is `changedFromPublic`, a private one is
2228
- * `movedFromOtherChannel` (itemised per source);
2229
- * - a label that is not inventory in this event is `notFound`.
2230
- *
2231
- * Every requested label lands in exactly one bucket — the property the Review
2232
- * sheet's "every selected seat is in exactly one line" promise depends on.
2233
- */
2234
- declare function planAssignment(input: {
2235
- labels: string[];
2236
- targetChannelId: string;
2237
- allocation: Map<string, string>;
2238
- statusOf: (label: string) => ChannelSeatStatus | undefined;
2239
- nameOf: (channelId: string) => string | null;
2240
- }): AssignmentBuckets;
2241
- /** Units this plan will actually mutate — what the Apply button counts. */
2242
- declare function mutationCount(buckets: AssignmentBuckets): number;
2243
- /** True when moving inventory out of another PRIVATE channel — §8.5 requires an
2244
- * explicit confirmation line for exactly this case. */
2245
- declare function needsMoveConfirmation(buckets: AssignmentBuckets): boolean;
2246
- interface BucketRow {
2247
- kind: 'add' | 'move' | 'same' | 'skip';
2248
- icon: string;
2249
- count: number;
2250
- text: string;
2251
- why?: string;
2252
- /** Sampled seat labels for a skipped bucket, when the server sent any. */
2253
- peek?: string;
2254
- }
2255
- /**
2256
- * Render-ready rows for the Review sheet. The comp shows five lines; the server
2257
- * carries a sixth bucket (`notFound`) which is emitted only when it is non-zero,
2258
- * so a normal review still reads exactly like the approved design.
2259
- *
2260
- * Empty buckets are dropped — a zero line is noise, not honesty.
2261
- */
2262
- declare function bucketRows(buckets: AssignmentBuckets, targetName: string): BucketRow[];
2263
- /**
2264
- * "try again in ~N minutes" for the archive-blocked-by-holds 409 (§8.8).
2265
- * Rounds up so the organizer never comes back one tick early.
2266
- */
2267
- declare function retryAfterCopy(details: ArchiveBlockedDetails | null | undefined): string;
2268
- /** The access line under a channel row. Falls back to "—" before the hardening
2269
- * branch lands the `access` field, never to a guess. */
2270
- declare function accessLine(access: ChannelAccessSummary | null | undefined): string;
2271
- /** Plain-language label for the access-intent control. */
2272
- declare function accessIntentLabel(intent: ChannelAccessIntent): string;
2273
- /** Lifecycle the server stores. `rotated` means a newer link replaced this one. */
2274
- type AccessLinkState = 'active' | 'revoked' | 'rotated';
2275
- /** What the organizer surface renders: `state`, unless an active link has run
2276
- * out of time or out of redemptions. Never a capability, never a hash. */
2277
- type AccessLinkStatus = AccessLinkState | 'expired' | 'exhausted';
2278
- /**
2279
- * One hosted link, exactly as `GET …/access-links` projects it.
2280
- *
2281
- * There is deliberately NO `url` and NO `capability` field here — the listing
2282
- * route does not return them, no other route returns them, and this type must
2283
- * not tempt a caller into believing otherwise. The secret exists in exactly one
2284
- * place for exactly one moment: the create/rotate response (`AccessLinkReveal`).
2285
- */
2286
- interface AccessLinkRecord {
2287
- id: string;
2288
- channelId: string;
2289
- label: string | null;
2290
- includePublic: boolean;
2291
- expiresAt: number;
2292
- maxRedemptions: number;
2293
- redemptions: number;
2294
- /** Guest-weighted per-buyer ceiling handed to every session this link mints. */
2295
- maxQuantity: number;
2296
- sessionTtlSeconds: number;
2297
- state: AccessLinkState;
2298
- status: AccessLinkStatus;
2299
- createdAt: number;
2300
- createdBy: string | null;
2301
- revokedAt: number | null;
2302
- lastRedeemedAt: number | null;
2303
- /** Rotation lineage: the link this replaced, and the one that replaced it. */
2304
- rotatedFrom: string | null;
2305
- rotatedTo: string | null;
2306
- }
2307
- /** A listed link, with the live session count the rotate dialog needs to state
2308
- * "N buyers got in with this link and still have access". */
2309
- interface AccessLinkStatusRecord extends AccessLinkRecord {
2310
- activeSessions?: number;
2311
- }
2312
- /**
2313
- * The ONE-TIME reveal. `url` and `capability` are on the wire exactly once, in
2314
- * the create/rotate response, and are unrecoverable afterwards: SeatLayer stores
2315
- * only a hash. Nothing may persist this — see `ChannelsMode.revealLink`.
2316
- */
2317
- interface AccessLinkReveal {
2318
- link: AccessLinkRecord;
2319
- url: string;
2320
- capability: string;
2321
- revealedOnce: true;
2322
- /** Rotation only: the link that just stopped working, and how many live buyer
2323
- * sessions from it were ended (0 when the organizer let them finish). */
2324
- previous?: AccessLinkRecord;
2325
- endedSessions?: number;
2326
- }
2327
- /**
2328
- * Owner-set defaults for a new link. Expiry is NOT here: "when the event starts"
2329
- * is the server's own default (it knows `starts_at`; the cockpit does not), so
2330
- * the create form expresses that choice by omitting `expiresAt` entirely rather
2331
- * than by guessing a timestamp the server would then have to correct.
2332
- */
2333
- declare const ACCESS_LINK_DEFAULTS: {
2334
- readonly maxRedemptions: 100;
2335
- readonly maxQuantity: 4;
2336
- };
2337
- /** Plain-language state badge for a hosted link (§9: no internal vocabulary). */
2338
- declare function accessLinkBadge(link: Pick<AccessLinkRecord, 'status' | 'state'>): {
2339
- text: string;
2340
- kind: 'active' | 'paused' | 'archived';
2341
- };
2342
- /** Only an `active` link can be rotated or revoked; the server agrees (409
2343
- * `access_link_not_active`), so the buttons are absent rather than failing. */
2344
- declare function accessLinkIsLive(link: Pick<AccessLinkRecord, 'status' | 'state'>): boolean;
2345
- /**
2346
- * The policy an organizer is agreeing to, in one list. Used by BOTH the reveal
2347
- * (what you just created) and the status card (what is live), so the two can
2348
- * never drift into describing the same link differently.
2349
- */
2350
- declare function accessLinkPolicyLines(link: AccessLinkRecord): Array<{
2351
- k: string;
2352
- v: string;
2353
- }>;
2354
- /**
2355
- * Plain language for a refused hosted-link call.
2356
- *
2357
- * The PLATFORM BOUNDS live on the server (60s–180d expiry, 1–10 000 redemptions,
2358
- * 1–100 seats per buyer, 20 live links per channel) and the server states them
2359
- * in `message`. We surface that sentence rather than re-encoding the numbers
2360
- * here, so the client can never disagree with the rule it is reporting.
2361
- */
2362
- declare function accessLinkErrorCopy(err: {
2363
- code?: string;
2364
- serverMessage?: string;
2365
- status?: number;
2366
- } | null | undefined): string;
2367
- /**
2368
- * The chart-update refusal `channel_assignment_would_drop` (409) deliberately
2369
- * mirrors the Apply skipped buckets, so ONE review component renders both.
2370
- * This adapts it into the same `BucketRow[]` the Review sheet already draws.
2371
- */
2372
- interface AssignmentDropDetails {
2373
- droppedUnits?: number;
2374
- channels?: Array<{
2375
- channelId: string;
2376
- name: string | null;
2377
- count: number;
2378
- labels?: string[];
2379
- truncated?: boolean;
2380
- }>;
2381
- acknowledgeWith?: string;
2382
- }
2383
- declare function dropReviewRows(details: AssignmentDropDetails | null | undefined): BucketRow[];
2384
- /** Plain-language state badge text (§9: no internal vocabulary on user surfaces). */
2385
- declare function stateBadge(state: ChannelState | 'builtin'): string;
2386
-
2387
- /**
2388
- * Organizer manage-surface client for workers/api (the `/v1/events/:key/*`
2389
- * inventory routes + the public realtime channel). Companion to api.ts (the
2390
- * buyer `/pub/*` client) — kept separate because the manage surface is
2391
- * token-authed (Bearer) and cross-origin from the CMS:
2392
- *
2393
- * - Writes + reports send `Authorization: Bearer <token>` where the token is
2394
- * a short-lived, event-scoped organizer manage token (`mse_…`, minted by
2395
- * NestJS) OR a tenant secret key (`sk_…`). Both are accepted by the worker's
2396
- * `eitherAuth` on block / unblock / unblock-all / unbook / hold-ttl / report
2397
- * / log. The Authorization header also exempts the call from the worker's
2398
- * cookie-CSRF gate, so no extra client header is needed.
2399
- * - `credentials: 'omit'` — there is no session cookie; the CMS runs
2400
- * cross-origin. The worker's credentialed CORS still echoes the CMS origin.
2401
- * - `/pub/events/:key/chart` stays public: geometry is the same map buyers
2402
- * see. The seat STATE reads are not. `/pub/.../objects` and an unticketed
2403
- * `/pub/.../subscribe` both answer with the BUYER projection, which shows
2404
- * inventory the caller may not buy as a neutral `blocked` — so an organizer
2405
- * reading them sees its own channel allocations as blocked seats. Both now
2406
- * go through the token: `/v1/events/:key/objects` for the snapshot, and a
2407
- * `/v1/events/:key/subscribe-tickets` mint for the socket's scope.
2408
- *
2409
- * `box-book` is intentionally omitted for M1 (box office ships in M2, and the
2410
- * route is still session-only server-side).
2411
- */
2412
-
2413
- /** One page of the organizer-only label → channel projection. */
2414
- interface ChannelAllocationPage {
2415
- assignmentVersion: number;
2416
- allocations: Array<{
2417
- label: string;
2418
- channelId: string;
2419
- }>;
2420
- nextAfterLabel: string | null;
2421
- }
2422
- interface ChannelAuditEntry {
2423
- id: number;
2424
- at: number;
2425
- actor: string | null;
2426
- action: string;
2427
- channelId: string | null;
2428
- assignmentVersion: number;
2429
- before: unknown;
2430
- after: unknown;
2431
- reason: string | null;
2432
- }
2433
- interface ChannelAuditPage {
2434
- entries: ChannelAuditEntry[];
2435
- nextBefore: number | null;
2436
- }
2437
- /**
2438
- * Buyer projection for a preview audience — the same scoped server view the
2439
- * buyer SDK receives. When an audience cannot be previewed (a paused or
2440
- * archived channel), the server answers `{available:false, unavailable:[…]}`
2441
- * and the UI shows the real paused/unavailable landing state instead of
2442
- * rendering those seats as eligible.
2443
- *
2444
- * Fields stay optional: a worker that predates the hardening merge 404s here,
2445
- * and Channels mode says the preview needs a newer server rather than faking a
2446
- * projection client-side.
2447
- */
2448
- interface ChannelPreviewProjection {
2449
- available?: boolean;
2450
- unavailable?: Array<{
2451
- channelId: string;
2452
- state: 'paused' | 'archived' | string;
2453
- }>;
2454
- channelIds?: string[];
2455
- includePublic?: boolean;
2456
- /** Labels this audience may buy. Everything else renders as ONE neutral
2457
- * unavailable state so preview never leaks which channel holds a seat. */
2458
- eligible?: string[];
2459
- counts?: {
2460
- eligible?: number;
2461
- free?: number;
2462
- held?: number;
2463
- booked?: number;
2464
- };
2465
- }
2466
- declare class ManageApiError extends Error {
2467
- status: number;
2468
- code?: string;
2469
- /** Present when a block/unbook 409s because seats were just taken. */
2470
- conflicts?: {
2471
- label: string;
2472
- reason?: string;
2473
- }[];
2474
- /**
2475
- * Structured refusal detail. The channel routes use it for the two 409s a UI
2476
- * must render rather than merely report: `channel_archive_blocked_by_holds`
2477
- * carries {activeHolds, heldUnits, latestHoldExpiresAt, retryAfterMs}, and
2478
- * `channel_assignment_conflict` carries the current assignmentVersion.
2479
- */
2480
- details?: Record<string, unknown>;
2481
- /**
2482
- * The server's own human sentence, when it sent one. `message` is the machine
2483
- * code (that is what `error` carries), so a UI that wants to state a PLATFORM
2484
- * RULE — "redemptions must be between 1 and 10 000" — reads this instead of
2485
- * re-encoding the bound locally and risking disagreement with the server.
2486
- */
2487
- serverMessage?: string;
2488
- constructor(status: number, message: string, code?: string, conflicts?: {
2489
- label: string;
2490
- reason?: string;
2491
- }[], details?: Record<string, unknown>, serverMessage?: string);
2492
- }
2493
- interface ReportByStatus {
2494
- free: number;
2495
- held: number;
2496
- booked: number;
2497
- not_for_sale: number;
2498
- }
2499
- interface ReportCategoryRow {
2500
- category: string;
2501
- total: number;
2502
- free: number;
2503
- held: number;
2504
- booked: number;
2505
- not_for_sale: number;
2506
- /** Exact sum of booked unit_price snapshots, in major currency units. */
2507
- bookedRevenue: number;
2508
- }
2509
- interface ReportCategoryMeta {
2510
- key: string;
2511
- label: string;
2512
- color: string;
2513
- price: number;
2514
- }
2515
- interface ReportResult {
2516
- report: {
2517
- byStatus: ReportByStatus;
2518
- byCategory: ReportCategoryRow[];
2519
- bySection?: ControlRoomSectionMetric[];
2520
- };
2521
- event: {
2522
- key: string;
2523
- name: string;
2524
- seatTotal: number;
2525
- currency?: string;
2526
- };
2527
- categories: ReportCategoryMeta[];
2528
- }
2529
- interface ControlRoomSectionMetric {
2530
- sectionId: string;
2531
- sectionLabel: string;
2532
- zoneId: string | null;
2533
- total: number;
2534
- free: number;
2535
- held: number;
2536
- booked: number;
2537
- not_for_sale: number;
2538
- bookedRevenue: number;
2539
- }
2540
- /** Recent seat-state change safe for an event:view control-room grant. Full
2541
- * audit references remain available only through the event:reports log API. */
2542
- interface ControlRoomActivityEntry {
2543
- id: number;
2544
- at: number;
2545
- action: string;
2546
- labels: string[];
2547
- }
2548
- interface ControlRoomSnapshot {
2549
- version: number;
2550
- currency: string;
2551
- totals: {
2552
- free: number;
2553
- held: number;
2554
- booked: number;
2555
- blocked: number;
2556
- };
2557
- revenue: {
2558
- gross: number;
2559
- bySection: ControlRoomSectionMetric[];
2560
- };
2561
- velocity: {
2562
- windowMinutes: number;
2563
- bySection: Array<{
2564
- sectionId: string;
2565
- netBooked: number;
2566
- grossRevenue: number;
2567
- previousNetBooked: number;
2568
- trend: 'rising' | 'steady' | 'cooling';
2569
- }>;
2570
- };
2571
- presence: {
2572
- shoppingSessions: number;
2573
- activeHolds: number;
2574
- };
2575
- /** Present on workers that support reload-safe activity hydration. */
2576
- activity?: ControlRoomActivityEntry[];
2577
- event: {
2578
- key: string;
2579
- name: string;
2580
- seatTotal: number;
2581
- currency?: string;
2582
- };
2583
- }
2584
- interface LogEntry {
2585
- id: number;
2586
- at: number;
2587
- action: string;
2588
- labels: string[];
2589
- ref: string | null;
2590
- }
2591
- interface LogPage {
2592
- entries: LogEntry[];
2593
- nextBefore: number | null;
2594
- }
2595
- /**
2596
- * A one-use WebSocket subscribe ticket. `protocols` is exactly what to hand
2597
- * `new WebSocket(url, protocols)` — the ticket rides in `Sec-WebSocket-Protocol`
2598
- * because a browser socket cannot carry an Authorization header and a bearer
2599
- * must never travel in a URL.
2600
- */
2601
- interface SubscribeTicket {
2602
- ticket: string;
2603
- expiresAt: number;
2604
- protocol: string;
2605
- protocols: string[];
2606
- }
2607
- interface PubObjectsResult {
2608
- /** Every non-free seat's status keyed by label (free seats omitted). */
2609
- seats: Record<string, string>;
2610
- hidden?: string[];
2611
- closed?: string[];
2612
- updatedAt: number;
2613
- }
2614
- interface PubChartResult {
2615
- event: {
2616
- key: string;
2617
- name: string;
2618
- status?: string;
2619
- venue?: string | null;
2620
- startsAt?: number | null;
2621
- currency?: string;
2622
- mode?: string;
2623
- };
2624
- doc: ChartDoc;
2625
- }
2626
- /**
2627
- * Bound to one apiBase + one event-scoped token. Rebuild (or `setToken`) when a
2628
- * token is re-minted on 401.
2629
- */
2630
- declare class ManageApi {
2631
- private base;
2632
- private token;
2633
- constructor(apiBase: string, token: string);
2634
- /** Swap the Bearer token in place (SeatManager re-mints on 401). */
2635
- setToken(token: string): void;
2636
- private auth;
2637
- private pub;
2638
- /** The chart geometry. Genuinely public — it is the same map buyers see. */
2639
- chart(key: string): Promise<PubChartResult>;
2640
- /**
2641
- * The ORGANIZER's seat map: physical state, token-authed.
2642
- *
2643
- * This used to read `/pub/events/:key/objects` with no credential, which
2644
- * answers with the BUYER projection — every unit the caller may not buy
2645
- * collapses to a neutral `blocked`. An anonymous caller may buy only Public
2646
- * sale inventory, so the cockpit rendered every channel-allocated seat as
2647
- * blocked and then computed its KPIs, sell-through and (worse) its
2648
- * block/unblock target sets from that. `/v1/events/:key/objects` returns the
2649
- * unprojected snapshot the control-room read model already trusts.
2650
- */
2651
- objects(key: string): Promise<PubObjectsResult>;
2652
- /**
2653
- * Exchange the manage token for a one-use organizer socket ticket.
2654
- *
2655
- * A browser `WebSocket` cannot send an Authorization header, so the socket's
2656
- * scope is established here, over ordinary HTTPS. Without it the DO treats a
2657
- * manager socket as an anonymous public buyer and projects its deltas — so a
2658
- * hold inside a private allocation is structurally suppressed and the map
2659
- * drifts away from the truth `objects()` just established.
2660
- *
2661
- * Tickets are single-redemption and expire in ~30s: mint one per connect.
2662
- */
2663
- subscribeTicket(key: string): Promise<SubscribeTicket>;
2664
- socketUrl(key: string): string;
2665
- /** Take FREE seats off sale in one batched call. Optional `releaseAt` (epoch
2666
- * ms, future) auto-returns them to sale; `reason` tags the block (M3 uses it).
2667
- * Throws ManageApiError 409 (conflicts) if any seat was just taken. */
2668
- block(key: string, labels: string[], opts?: {
2669
- releaseAt?: number;
2670
- reason?: string;
2671
- }): Promise<{
2672
- ok: true;
2673
- blocked: string[];
2674
- }>;
2675
- /** Return specific blocked seats to sale (one batched call). */
2676
- unblock(key: string, labels: string[]): Promise<{
2677
- ok: true;
2678
- unblocked: string[];
2679
- }>;
2680
- /** Return every blocked seat to sale; resolves with the freed count. */
2681
- unblockAll(key: string): Promise<{
2682
- ok: true;
2683
- freed: number;
2684
- }>;
2685
- /** Cancel bookings — return BOOKED seats to free (credit not refunded).
2686
- * Guarded by the original booking reference. */
2687
- unbook(key: string, labels: string[], bookingRef: string): Promise<{
2688
- ok: true;
2689
- unbooked: string[];
2690
- }>;
2691
- /** Set (ms, clamped 1–60 min server-side) or clear (null) the hold TTL. */
2692
- setHoldTtl(key: string, holdTtlMs: number | null): Promise<{
2693
- ok: true;
2694
- holdTtlMs: number | null;
2695
- }>;
2696
- /** The organizer's current per section/zone availability windows (needs
2697
- * `event:view`). Ids absent from `rules` are open / on sale. */
2698
- availability(key: string): Promise<{
2699
- rules: Record<string, AvailabilityRule>;
2700
- }>;
2701
- /** Replace the availability windows for a set of section/zone ids (needs
2702
- * `event:block`). Ids absent from `rules` become open / on sale; a zone rule
2703
- * cascades to its sections. The worker derives each id's seat labels, so
2704
- * `labels` on the sent rules is best-effort. Resolves with the authoritative
2705
- * effective `hidden` set (a due rule may fire at once) and the server-cleaned
2706
- * `rules` map (fired timed/threshold windows dropped). */
2707
- setAvailability(key: string, rules: Record<string, AvailabilityRule>): Promise<{
2708
- ok: true;
2709
- hidden: string[];
2710
- rules: Record<string, AvailabilityRule>;
2711
- }>;
2712
- /** Allocation list with exact per-channel counts. `includeArchived` adds the
2713
- * read-only archived rows behind the rail's "Show archived" control. */
2714
- channels(key: string, opts?: {
2715
- includeArchived?: boolean;
2716
- }): Promise<ChannelListResult>;
2717
- /** One page of the label → channel map that paints the allocation overlay.
2718
- * Paged by label; follow `nextAfterLabel` until it is null. */
2719
- channelAllocation(key: string, opts?: {
2720
- afterLabel?: string;
2721
- limit?: number;
2722
- }): Promise<ChannelAllocationPage>;
2723
- channelAudit(key: string, opts?: {
2724
- limit?: number;
2725
- before?: number;
2726
- }): Promise<ChannelAuditPage>;
2727
- createChannel(key: string, input: {
2728
- name: string;
2729
- color?: string | null;
2730
- marker?: string | null;
2731
- externalRef?: string | null;
2732
- }): Promise<{
2733
- ok: true;
2734
- channel: ChannelRecord;
2735
- }>;
2736
- renameChannel(key: string, channelId: string, name: string): Promise<{
2737
- ok: true;
2738
- channel: ChannelRecord;
2739
- }>;
2740
- setChannelPaused(key: string, channelId: string, paused: boolean): Promise<{
2741
- ok: true;
2742
- channel: ChannelRecord;
2743
- }>;
2744
- /** Archive with a mandatory destination for the remaining allocation.
2745
- * Throws ManageApiError 409 `channel_archive_blocked_by_holds` while any hold
2746
- * is live; `err.details` carries the exact counts + retry window. */
2747
- archiveChannel(key: string, channelId: string, destination: string | null): Promise<{
2748
- ok: true;
2749
- channel: ChannelRecord;
2750
- assignmentVersion: number;
2751
- moved: number;
2752
- }>;
2753
- /**
2754
- * Versioned Apply. A stale `assignmentVersion` mutates NOTHING and throws
2755
- * ManageApiError 409 `channel_assignment_conflict` — the caller keeps its
2756
- * selection and offers "Refresh and review". There is no dry-run: the review
2757
- * sheet previews locally, this call returns the authoritative buckets.
2758
- */
2759
- applyChannelAssignment(key: string, input: {
2760
- targetChannelId: string | null;
2761
- labels: string[];
2762
- assignmentVersion: number;
2763
- }): Promise<AssignmentResult>;
2764
- /**
2765
- * Read-only buyer projection for an audience (§8.6) — the SAME scoped server
2766
- * view the buyer SDK receives, never a local approximation.
2767
- *
2768
- * Ships on the access-hardening branch. Older workers 404/405 here; callers
2769
- * MUST feature-detect and quietly say the preview needs a newer server rather
2770
- * than faking a projection client-side.
2771
- */
2772
- channelPreview(key: string, channelIds: string[], opts?: {
2773
- includePublic?: boolean;
2774
- }): Promise<ChannelPreviewProjection>;
2775
- /** Declare how buyers are meant to reach this channel. Drives the rail's
2776
- * access line and turns "No buyer access configured" from information into a
2777
- * warning when the organizer says the channel is for buyer self-service. */
2778
- setChannelAccessIntent(key: string, channelId: string, accessIntent: ChannelAccessIntent): Promise<{
2779
- ok: true;
2780
- channel: ChannelRecord;
2781
- }>;
2782
- /**
2783
- * Mint a hosted access link. The 201 is the ONE and ONLY time `url` and
2784
- * `capability` exist outside the buyer's browser — SeatLayer keeps a hash, so
2785
- * there is no route, cache, or support escalation that can produce this string
2786
- * again. Callers must reveal it immediately and then let it go.
2787
- *
2788
- * Every omitted field takes the server's default: expiry = when the event
2789
- * starts, 100 redemptions, 4 seats per buyer, this channel's allocation only.
2790
- * Platform bounds are enforced server-side and reported as 422 with the rule
2791
- * spelled out in `ManageApiError.serverMessage`.
2792
- *
2793
- * Side effect by design: this also declares the channel's access intent as
2794
- * `hosted_link`, so the rail stops saying "no buyer access configured".
2795
- */
2796
- createAccessLink(key: string, channelId: string, input?: {
2797
- label?: string | null;
2798
- /** Absolute epoch ms. Omit for "when the event starts". */
2799
- expiresAt?: number;
2800
- maxRedemptions?: number;
2801
- maxQuantity?: number;
2802
- includePublic?: boolean;
2803
- }): Promise<AccessLinkReveal>;
2804
- /** Status only — label, expiry, redemptions, per-buyer cap, lineage, and the
2805
- * live session count. Never the url, never the capability. Needs `:view`. */
2806
- accessLinks(key: string, channelId: string): Promise<{
2807
- links: AccessLinkStatusRecord[];
2808
- }>;
2809
- /**
2810
- * Rotate — the ONLY recovery for a link nobody kept. The old URL stops opening
2811
- * immediately and the response is a fresh one-time reveal.
2812
- *
2813
- * `endActiveSessions` is REQUIRED, not defaulted: the organizer must say
2814
- * whether buyers already inside finish their checkout or lose access now. The
2815
- * server answers 422 `end_active_sessions_required` if it is omitted, and that
2816
- * refusal is correct — a UI must not pick either branch on their behalf.
2817
- */
2818
- rotateAccessLink(key: string, channelId: string, linkId: string, endActiveSessions: boolean): Promise<AccessLinkReveal & {
2819
- previous: AccessLinkRecord;
2820
- endedSessions: number;
2821
- }>;
2822
- /** Revoke. The link stops opening immediately; `endActiveSessions` decides
2823
- * whether the buyers already inside keep their sessions. */
2824
- revokeAccessLink(key: string, channelId: string, linkId: string, endActiveSessions?: boolean): Promise<{
2825
- ok: true;
2826
- link: AccessLinkRecord;
2827
- endedSessions: number;
2828
- }>;
2829
- report(key: string): Promise<ReportResult>;
2830
- controlRoom(key: string, windowMinutes?: number): Promise<ControlRoomSnapshot>;
2831
- log(key: string, opts?: {
2832
- limit?: number;
2833
- before?: number;
2834
- }): Promise<LogPage>;
2835
- /** CSV report as a Blob (Bearer auth can't ride a plain <a href>). Host builds
2836
- * an object URL for download. */
2837
- reportCsv(key: string): Promise<Blob>;
2838
- }
2839
-
2840
- /**
2841
- * SeatManager — the organizer manage surface, packaged for the SDK.
2842
- *
2843
- * Productizes the SeatLayer dashboard's ManageEventPage into a framework-
2844
- * agnostic class (mirrors how SeatPicker productized the buyer flow). It mounts
2845
- * the shared engine in `manageMode`, subscribes to the event's realtime channel
2846
- * and drives three control-room tools on one persistent canvas:
2847
- *
2848
- * - **view** — a live board: realtime seat repaint (flash on hold/book),
2849
- * live KPI tallies + gross revenue, and a streaming activity
2850
- * feed derived from the delta stream + audit log. Read-only.
2851
- * - **inspect** — select one seat to read its live inventory context.
2852
- * - **block** — bulk-first block/unblock: marquee-drag, ⌘A select-all,
2853
- * whole-category / whole-section select, single-seat fallback →
2854
- * one batched block/unblock (optimistic, reconciled by the WS),
2855
- * and timed auto-release.
2856
- *
2857
- * Auth: reads (chart/objects/WS) are public; writes/reports carry a Bearer
2858
- * event-scoped manage token (`mse_…`) or a tenant secret key (`sk_…`) via
2859
- * {@link ManageApi}. Box office + Sections + full Reports UI are M2/M3.
2860
- */
2861
-
2862
- type SeatManagerMode = 'view' | 'inspect' | 'block' | 'sections' | 'channels';
2863
- /**
2864
- * Capabilities the cockpit's token was minted with. Channels mode is gated on
2865
- * these and fails CLOSED: no `event:channels:view` ⇒ no Channels pill at all;
2866
- * view without `event:channels:manage` ⇒ read-only inspection with every
2867
- * mutation control absent, not merely disabled.
2868
- */
2869
- type SeatManagerCapability = 'event:view' | 'event:block' | 'event:cancel' | 'event:reports' | 'event:channels:view' | 'event:channels:manage';
2870
- /** DO seat status — 'blocked' has no engine analogue (→ 'not_for_sale'). */
2871
- type DoStatus = 'free' | 'held' | 'booked' | 'blocked';
2872
- /** Live KPI snapshot pushed to `onTallies` on every state change. */
2873
- interface SeatManagerTallies {
2874
- free: number;
2875
- held: number;
2876
- booked: number;
2877
- blocked: number;
2878
- /** Total seats on the chart. */
2879
- total: number;
2880
- /** booked / total, 0–100. */
2881
- capacityPct: number;
2882
- /** booked / (total − blocked), 0–100 — sell-through of sellable inventory. */
2883
- sellThroughPct: number;
2884
- /** Exact Σ booked unit_price snapshots from the authenticated report. */
2885
- grossRevenue: number;
2886
- /** Revenue is never reconstructed from chart list price. */
2887
- revenueStatus: 'loading' | 'current' | 'stale';
2888
- /** ISO-4217 currency for grossRevenue. */
2889
- currency: string;
2890
- }
2891
- /** One streamed activity line for the live feed. */
2892
- interface SeatManagerActivity {
2893
- id: string;
2894
- at: number;
2895
- label: string;
2896
- /** Full labels affected by this one backend/realtime operation. */
2897
- labels: string[];
2898
- count: number;
2899
- /** Human verb: held / booked / released / blocked / unblocked. */
2900
- verb: string;
2901
- status: DoStatus;
2902
- /** Spatial context for grouped activity when the chart defines sections. */
2903
- sectionIds?: string[];
2904
- sectionLabels?: string[];
2905
- }
2906
- /** Fired after a successful organizer action, for host toasts/telemetry. */
2907
- interface SeatManagerActionResult {
2908
- action: 'block' | 'unblock' | 'unblockAll' | 'cancelBooking' | 'setHoldTtl';
2909
- labels: string[];
2910
- count: number;
2911
- }
2912
- interface SeatManagerOptions {
2913
- /** CSS selector or element to mount into. */
2914
- container: string | HTMLElement;
2915
- /** API origin. Defaults to https://api.seatlayer.io. */
2916
- apiBase?: string;
2917
- /** Event key (e.g. `ev_xxx` / `west-end-p3`). */
2918
- eventKey: string;
2919
- /** Bearer manage token — event-scoped `mse_…` or a tenant secret `sk_…`. */
2920
- token: string;
2921
- /** Absolute token expiry (epoch ms). Enables proactive in-place rotation. */
2922
- tokenExpiresAt?: number;
2923
- /** Initial mode. Default 'view'. */
2924
- mode?: SeatManagerMode;
2925
- /**
2926
- * The capability set this token was minted with. Supply it whenever you mint
2927
- * an `mse_…` grant — it is the only way the widget can know a delegated token
2928
- * carries `event:channels:manage`, and without it Channels mode stays
2929
- * read-only (fail-closed). A tenant secret (`sk_…`) is org authority and is
2930
- * never narrowed server-side, so it is treated as fully capable.
2931
- */
2932
- capabilities?: SeatManagerCapability[] | string[];
2933
- /** ISO-4217 fallback currency for revenue (chart/event currency wins). */
2934
- currency?: string;
2935
- /** Chart theme override for the chrome (rails/bar). Chart colors come from the doc. */
2936
- theme?: ChartTheme;
2937
- /**
2938
- * Keep the canvas painting even when the tab is hidden/backgrounded (a war-room
2939
- * board on a second monitor). Calls `forceDraw()` after each delta so Chrome's
2940
- * rAF throttling on occluded tabs never leaves the board stale. Default true.
2941
- */
2942
- keepLiveWhileHidden?: boolean;
2943
- /**
2944
- * Opt in to camera-following for new buyer holds/bookings. Off by default so
2945
- * a live event never steals an operator's current map context.
2946
- */
2947
- followLive?: boolean;
2948
- /** Chart + first snapshot are loaded and the board is live. */
2949
- onReady?: () => void;
2950
- /** Live KPI tallies changed. */
2951
- onTallies?: (tallies: SeatManagerTallies) => void;
2952
- /** A grouped live/audit activity item arrived. */
2953
- onActivity?: (activity: SeatManagerActivity) => void;
2954
- /** Exact private control-room projection changed. */
2955
- onControlRoom?: (snapshot: ControlRoomSnapshot) => void;
2956
- /** Called before token expiry. The manager swaps the result without remounting. */
2957
- onTokenRefresh?: () => Promise<{
2958
- token: string;
2959
- expiresAt: number;
2960
- }>;
2961
- /** Tool/mode changed from inside the shared cockpit. */
2962
- onModeChange?: (mode: SeatManagerMode) => void;
2963
- /** Follow-live preference changed from inside the cockpit. */
2964
- onFollowLiveChange?: (enabled: boolean) => void;
2965
- /** Block-mode selection changed (marquee / ⌘A / category / section / tap). */
2966
- onSelectionChange?: (seats: ExpandedSeat[]) => void;
2967
- /** A block/unblock/cancel action completed successfully. */
2968
- onActionComplete?: (result: SeatManagerActionResult) => void;
2969
- /**
2970
- * The realtime link connected or dropped, with the moment the numbers on
2971
- * screen were last known good.
2972
- *
2973
- * A host embedding this cockpit renders its own chrome around it, and until
2974
- * now had no way to know the board had gone stale: the manager tracked the
2975
- * drop internally (its own LIVE/RECONNECTING pill) and told nobody. A host
2976
- * that polls on a timer and pauses while the tab is hidden therefore showed
2977
- * arbitrarily old numbers that looked exactly like fresh ones.
2978
- */
2979
- onConnectionChange?: (state: SeatManagerConnection) => void;
2980
- onError?: (err: unknown) => void;
2981
- }
2982
- /** Realtime link state, as reported to the embedding host. */
2983
- interface SeatManagerConnection {
2984
- /** `live` while the socket is open; `reconnecting` from drop until reopen. */
2985
- status: 'live' | 'reconnecting';
2986
- /**
2987
- * `Date.now()` of the last snapshot or delta accepted from the server, or
2988
- * null before the first one. This is the honest "as of" for whatever the host
2989
- * is displaying — NOT the time the connection dropped, which is later and
2990
- * would overstate freshness.
2991
- */
2992
- lastMessageAt: number | null;
2993
- }
2994
- declare class SeatManager {
2995
- private readonly opts;
2996
- private readonly api;
2997
- private readonly key;
2998
- private readonly keepLive;
2999
- private host;
3000
- private root;
3001
- private mapHost;
3002
- private els;
3003
- private renderer;
3004
- private doc;
3005
- private mode;
3006
- private labelToId;
3007
- private labelToSeat;
3008
- private allIds;
3009
- /**
3010
- * GA inventory units — real sellable labels the server counts, with NO seat
3011
- * geometry and therefore no renderer binding. They live here rather than in
3012
- * `labelToId`/`allIds` so every paint path keeps addressing paintable nodes
3013
- * only, while the tally denominator finally covers the same universe the
3014
- * numerator does. Without them a GA sale hit `booked` but not `total`:
3015
- * Free under-reported by GA capacity and SOLD% could exceed 100%.
3016
- */
3017
- private gaUnitLabelSet;
3018
- private status;
3019
- /** Live non-free counters, moved by each delta rather than re-walked. */
3020
- private counts;
3021
- /** Bumped whenever the seat model is replaced wholesale (a full snapshot). */
3022
- private modelVersion;
3023
- private currency;
3024
- private authoritativeGrossRevenue;
3025
- private revenueStatus;
3026
- private revenueRequest;
3027
- private controlRoomSnapshot;
3028
- /**
3029
- * The server's own totals, pinned to the client model they were read against.
3030
- * Display = server baseline + (client now − client then), so the authoritative
3031
- * numbers land exactly on arrival and deltas still move them between reads.
3032
- * A wholesale model replacement invalidates the pairing (`model`), and the
3033
- * client tallies — themselves a fresh authenticated read — take over.
3034
- */
3035
- private serverBaseline;
3036
- /** Latest presence frame, held whether or not a snapshot has landed yet. */
3037
- private livePresence;
3038
- /** Latest cumulative booked gross pushed on a delta frame. */
3039
- private liveGross;
3040
- /** Coalesces a burst of deltas into one KPI/rail repaint. */
3041
- private paintHandle;
3042
- private trendWindowMinutes;
3043
- private heatEnabled;
3044
- private followLive;
3045
- private lastKpiValues;
3046
- private activeKpiDeltas;
3047
- private ws;
3048
- private reconnectTimer;
3049
- private attempt;
3050
- private closed;
3051
- /** Mirrors the `live` root class, so the getter never has to read the DOM. */
3052
- private connectionStatus;
3053
- /** When the server last told us something. Stamped on accepted traffic only —
3054
- * a socket that opens and says nothing has not refreshed anything. */
3055
- private lastMessageAt;
3056
- private ready;
3057
- private feed;
3058
- private feedTimer;
3059
- private toastTimer;
3060
- private liveEventTimer;
3061
- private kpiCleanupTimer;
3062
- private followLiveTimer;
3063
- private followSeatTimer;
3064
- private releaseAt;
3065
- private layoutObserver;
3066
- private tokenExpiresAt;
3067
- private tokenRefreshTimer;
3068
- private tokenRefreshInFlight;
3069
- private sectionByObject;
3070
- private sectionLabelById;
3071
- private sectionsBase;
3072
- private availabilityRules;
3073
- private effectiveHidden;
3074
- private effectiveClosed;
3075
- private availabilitySaving;
3076
- private lastSyncedAt;
3077
- private blockedQuery;
3078
- private blockedSection;
3079
- private blockedResultLimit;
3080
- private unblockAllConfirmTimer;
3081
- private channels;
3082
- private channelCaps;
3083
- private readonly onFullscreenChange;
3084
- private readonly onKeyDown;
3085
- private readonly onRailClick;
3086
- constructor(options: SeatManagerOptions);
3087
- /** Build the DOM, load the chart, subscribe to realtime, mount the board. */
3088
- render(): Promise<this>;
3089
- setMode(mode: SeatManagerMode): void;
3090
- /**
3091
- * Decide what this token may do with sales channels.
3092
- *
3093
- * Declared capabilities win — a host that mints an `mse_…` grant knows exactly
3094
- * what it asked for. Otherwise a tenant secret (`sk_…`) is org authority the
3095
- * worker never narrows, so it is fully capable; and a delegated token with no
3096
- * declaration is probed for read access and then treated as READ-ONLY, because
3097
- * "we could not tell" must never render mutation controls.
3098
- */
3099
- private resolveChannelCapabilities;
3100
- /** The adapter between the cockpit's internals and Channels mode. */
3101
- private buildChannelsHost;
3102
- /** Actual on-screen seat diameter, for the channel overlay's marks. The
3103
- * renderer's base seat radius is 9 chart units; retaining the camera scale
3104
- * (rather than capping it) keeps every preview paint aligned with the real
3105
- * chart geometry at deep zoom. */
3106
- private seatPixelSize;
3107
- /** Toggle the normalized sales-velocity outline overlay without changing seat colors. */
3108
- setHeatOverlay(enabled: boolean): void;
3109
- /** Toggle opt-in camera following for new buyer hold/book events. */
3110
- setFollowLive(enabled: boolean): void;
3111
- /** Change the current-vs-previous sales window and refresh the private projection. */
3112
- setTrendWindow(windowMinutes: number): Promise<ControlRoomSnapshot>;
3113
- enterFullscreen(): Promise<void>;
3114
- exitFullscreen(): Promise<void>;
3115
- isFullscreen(): boolean;
3116
- private toggleFullscreen;
3117
- /** Rotate the delegated credential without rebuilding DOM, canvas or socket. */
3118
- setToken(token: string, expiresAt?: number): void;
3119
- private scheduleTokenRefresh;
3120
- private rotateToken;
3121
- /** Bulk block the given labels (or the current selection when omitted). */
3122
- block(labels?: string[], opts?: {
3123
- releaseAt?: number;
3124
- reason?: string;
3125
- }): Promise<void>;
3126
- unblock(labels?: string[]): Promise<void>;
3127
- unblockAll(): Promise<void>;
3128
- /** Cancel bookings (BOOKED → free), guarded by the original booking ref. */
3129
- cancelBooking(labels: string[], bookingRef: string): Promise<void>;
3130
- selectAll(): ExpandedSeat[];
3131
- selectSection(sectionId: string): ExpandedSeat[];
3132
- selectByLabels(labels: string[]): ExpandedSeat[];
3133
- clearSelection(): void;
3134
- getSelection(): ExpandedSeat[];
3135
- getReport(): Promise<ReportResult>;
3136
- getControlRoomSnapshot(windowMinutes?: number): Promise<ControlRoomSnapshot>;
3137
- /**
3138
- * The realtime link's current state and the "as of" behind it.
3139
- *
3140
- * Pair with `onConnectionChange` for the edges: a host that mounts after a
3141
- * drop, or re-reads on tab focus, needs to be able to ASK rather than wait
3142
- * for the next transition that may never come.
3143
- */
3144
- getConnection(): SeatManagerConnection;
3145
- getLog(opts?: {
3146
- limit?: number;
3147
- before?: number;
3148
- }): Promise<{
3149
- entries: LogEntry[];
3150
- nextBefore: number | null;
3151
- }>;
3152
- setHoldTtl(ms: number | null): Promise<void>;
3153
- /** M2 — box-office booking from free seats. Stubbed (route is session-only today). */
3154
- boxBook(_labels: string[], _bookingRef: string): Promise<void>;
3155
- zoomToFit(): void;
3156
- destroy(): void;
3157
- private buildRenderer;
3158
- /** Block always uses a marquee. Channels only enables its marquee after the
3159
- * organizer deliberately chooses Assign seats; Pan map keeps desktop drag
3160
- * available for large charts. */
3161
- private isBulkSelectMode;
3162
- /**
3163
- * Block never touches held or booked inventory, so it cannot select it.
3164
- * Channels must be able to select it — the Review sheet's honesty depends on
3165
- * counting the held and sold units inside a marquee and saying they will not
3166
- * move, rather than silently omitting them from the selection.
3167
- */
3168
- private selectableStatuses;
3169
- private updateRendererInteraction;
3170
- private handleSeatSelect;
3171
- /**
3172
- * Build the client's inventory universe from the chart.
3173
- *
3174
- * `expandChart` yields SEATS — it has no output for a GA area, whose capacity
3175
- * is sold as N synthetic unit labels. The server's seat map keys, its deltas
3176
- * and its `totals` all speak those labels, so a client that only knows seats
3177
- * counts GA sales in the numerator (every key of the snapshot is written into
3178
- * `status`) while leaving them out of the denominator. Registering the GA
3179
- * units here — labels only, never a render binding — is what makes the two
3180
- * agree.
3181
- */
3182
- private buildUnitUniverse;
3183
- /** Every sellable unit the client knows: seats + GA capacity. */
3184
- private unitTotal;
3185
- /** Every label the client models, whether or not it can be painted. */
3186
- private knownLabels;
3187
- private repaintAll;
3188
- /**
3189
- * Open the cockpit's realtime socket AS THE ORGANIZER.
3190
- *
3191
- * The scope has to be established before the upgrade, because a browser
3192
- * `WebSocket` cannot send an Authorization header: the manage token is traded
3193
- * over HTTPS for a one-use ticket which rides in `Sec-WebSocket-Protocol`.
3194
- * Without it the server treats this socket as an anonymous public buyer and
3195
- * projects its deltas, so any change inside a private channel allocation is
3196
- * structurally suppressed and the map silently drifts.
3197
- *
3198
- * If the mint fails (an expired token, a worker that predates the route) we
3199
- * still connect unticketed rather than going dark — the public-sale stream is
3200
- * worth having, and every `resnapshot()` re-establishes physical truth from
3201
- * the authenticated HTTP read.
3202
- */
3203
- private connect;
3204
- private scheduleReconnect;
3205
- private onMessage;
3206
- /**
3207
- * Adopt the cumulative booked gross a delta frame carried.
3208
- *
3209
- * Stashed with its arrival time so an in-flight control-room read can decide
3210
- * whether it is holding the newer number: a frame that landed after the
3211
- * request started is newer than the response, one that landed before is not.
3212
- */
3213
- private applyLiveGross;
3214
- /** The single writer for a label's status, so the counters never drift. */
3215
- private setStatusLabel;
3216
- private resnapshot;
3217
- /**
3218
- * Replace the whole seat model.
3219
- *
3220
- * `fallback` is the compact frame's modal status: those snapshots list only
3221
- * the seats that DIFFER from it, so every other known label takes it. Without
3222
- * this the omitted majority would silently fall back to `free` — fine when
3223
- * the mode really is free, wrong the moment it is not.
3224
- */
3225
- private applySnapshot;
3226
- /** The one O(n) walk left: a wholesale model replacement re-bases the counters. */
3227
- private recountAll;
3228
- /** Optimistic local write shared by organizer actions. Paint and tally once,
3229
- * even when an arena-sized operation changes hundreds of seats. */
3230
- private setSeatsLocal;
3231
- /** Keep the canvas painting on hidden/occluded tabs (war-room second monitor). */
3232
- private afterPaint;
3233
- private activityColor;
3234
- private sectionsForLabels;
3235
- private pulseSeatLabels;
3236
- /** Render one grouped realtime operation at the right semantic zoom level. */
3237
- private paintSpatialActivity;
3238
- private locateSection;
3239
- private locateActivity;
3240
- private showLiveEvent;
3241
- private applyReportRevenue;
3242
- /**
3243
- * Read the server's own control-room projection.
3244
- *
3245
- * Called on mount, on every socket (re)connect and after an organizer action —
3246
- * never on a timer and never per delta frame. Presence and gross that arrived
3247
- * on the socket AFTER this request started are newer than the response, so
3248
- * they survive it; anything older defers to the read.
3249
- */
3250
- private refreshControlRoom;
3251
- /** Pin the server's totals to the client model they were read against. */
3252
- private rebaseServerTotals;
3253
- /** What the client's own model says — GA units included since `render()`. */
3254
- private clientTallies;
3255
- /**
3256
- * The numbers the KPI bar and rail render.
3257
- *
3258
- * The server is the authority: its totals land exactly as read, and the
3259
- * delta-driven client model carries them forward until the next read. Before
3260
- * the first snapshot — and after a wholesale model replacement invalidates the
3261
- * pairing — the client model stands alone.
3262
- */
3263
- private buildTallies;
3264
- /**
3265
- * Queue one KPI/rail repaint for this burst of changes.
3266
- *
3267
- * A delta frame can carry hundreds of seats and `paintKpis` rebuilds eight
3268
- * nodes from scratch, so painting per change is what made an arena-sized
3269
- * frame expensive. Coalescing on a frame keeps the burst to a single rebuild;
3270
- * without `requestAnimationFrame` (SSR, an older test env) it paints inline
3271
- * rather than dropping the update.
3272
- */
3273
- private recomputeTallies;
3274
- private flushTallies;
3275
- private verbFor;
3276
- private pushActivity;
3277
- private seedFeed;
3278
- private startFeedClock;
3279
- private selectionLabels;
3280
- private syncSelection;
3281
- private buildChrome;
3282
- private updateContainerLayout;
3283
- private sectionOptions;
3284
- private buildSectionOptions;
3285
- private paintModeTabs;
3286
- private paintFollowLiveButton;
3287
- private paintHeatButton;
3288
- private paintMomentumHelp;
3289
- private paintFullscreenButton;
3290
- private paintTrendWindow;
3291
- private setLive;
3292
- private updateZoomHint;
3293
- private formatKpiDelta;
3294
- private paintKpis;
3295
- private paintRail;
3296
- private renderViewRail;
3297
- /** Live presence wins over the snapshot's copy — it is the fresher channel,
3298
- * and it exists from the first frame rather than the first fetch. */
3299
- private presenceCounts;
3300
- private paintMonitorInsights;
3301
- private applyHeatOverlay;
3302
- private renderInspectRail;
3303
- /** Pull the organizer's availability rules (event:view). Called on load and on
3304
- * every WS (re)connect, mirroring how the other panels re-hydrate. `closed` is
3305
- * deterministic from the rules; `hidden` (which folds in already-due timed /
3306
- * threshold windows) comes from the snapshot + WS effective set. */
3307
- private refreshAvailability;
3308
- /** Run a token-authed op; on a 401 re-mint via onTokenRefresh and retry once. */
3309
- private withAuthRetry;
3310
- private closedIdsFromRules;
3311
- /** Adopt a new effective hidden/closed set (from a snapshot or WS broadcast) and
3312
- * repaint the rail + canvas when it actually moves. */
3313
- private updateEffectiveAvailability;
3314
- /** Canvas read of the availability state: dim hidden sections to a whisper,
3315
- * half-light closed sections, leave open sections normal. Only in Sections mode;
3316
- * cleared in every other tool. */
3317
- private applySectionCanvasTreatment;
3318
- /** Zone-grouped render tree: each zone header then its sections (which follow the
3319
- * zone window), then loose sections + the ungrouped bucket. Effective hidden /
3320
- * closed come from the live sets, rules from the organizer map. */
3321
- private buildSectionRows;
3322
- private renderSectionsRail;
3323
- private sectionRowHtml;
3324
- private wireSectionRail;
3325
- /** Change one row's availability mode. A zone rule subsumes its child section
3326
- * rules, so those are dropped from the map (the zone window is the truth). */
3327
- private setSectionMode;
3328
- /** Edit a timed reveal time / threshold percent on an existing row rule. */
3329
- private setSectionRulePatch;
3330
- /** Optimistically adopt the new rules, then reconcile with the server-cleaned
3331
- * map + effective hidden/closed sets. Rolls back the rules on failure. */
3332
- private persistAvailability;
3333
- private paintLegend;
3334
- private paintFeed;
3335
- private renderBlockRail;
3336
- private toggleCategory;
3337
- /** A category/filter is a real toggle: add the missing seats, or remove the
3338
- * whole group when every eligible seat in it is already selected. */
3339
- private toggleLabels;
3340
- private isBlockSelectable;
3341
- private paintSelBar;
3342
- private paintCategoryControls;
3343
- private filteredBlockedSeats;
3344
- private paintBlockedInventory;
3345
- private confirmUnblockAll;
3346
- private resetUnblockAllConfirm;
3347
- private done;
3348
- private toastOk;
3349
- private toastErr;
3350
- private toast;
3351
- private fail;
3352
- }
3353
-
3354
2061
  /**
3355
2062
  * Channels mode — the sales-channel management surface inside the SeatManager
3356
2063
  * cockpit. It ships in the SDK, so every embedding platform (and our own Control
@@ -3439,9 +2146,19 @@ interface ChannelsClient {
3439
2146
  channelPreview(key: string, channelIds: string[], opts?: {
3440
2147
  includePublic?: boolean;
3441
2148
  }): Promise<ChannelPreviewProjection>;
3442
- setChannelAccessIntent(key: string, channelId: string, accessIntent: ChannelAccessIntent): Promise<{
2149
+ /** Choose the channel's sale route. Authorization since 2026-08-06, so this is
2150
+ * a precondition of every buyer-facing action, not a label. `opts` carries the
2151
+ * acknowledgement that unblocks a switch with live buyer access. */
2152
+ setChannelAccessIntent(key: string, channelId: string, accessIntent: ChannelAccessIntent, opts?: {
2153
+ acknowledgeLiveAccess?: boolean;
2154
+ reason?: string;
2155
+ }): Promise<{
3443
2156
  ok: true;
3444
2157
  channel: ChannelRecord;
2158
+ intentSwitch?: {
2159
+ closedLinks: number;
2160
+ keptSessions: number;
2161
+ };
3445
2162
  }>;
3446
2163
  /** 201 with the ONE-TIME reveal. Every omitted field takes the server default
3447
2164
  * (expiry = event start, 100 redemptions, 4 seats per buyer). */
@@ -3749,21 +2466,24 @@ declare class ChannelsMode {
3749
2466
  private selectionRailHtml;
3750
2467
  private detailRailHtml;
3751
2468
  /**
3752
- * "Distribute" — how the seats in this channel actually reach a buyer.
2469
+ * "Distribute" — the ONE way this channel's seats reach a buyer.
2470
+ *
2471
+ * All four routes are here, and this is a real chooser again. It was cut down
2472
+ * to two actions in 0.42.0 for a good reason: `access_intent` was stored,
2473
+ * audited, and read by nothing, so "Keep as protected reserve" and "Sell
2474
+ * through your own staff" were labels an organizer could set and then wait
2475
+ * forever for something to happen. The server closed that hole on 2026-08-06 —
2476
+ * each declaration now opens exactly one route and REFUSES the other three —
2477
+ * so all four are honest choices and belong on the surface.
3753
2478
  *
3754
- * This replaced a four-value "access intent" picker (none / internal /
3755
- * hosted_link / server). Two of those values did nothing anywhere: no buyer or
3756
- * inventory path reads `access_intent`, so `none` and `internal` were labels an
3757
- * organizer could set and then wait forever for something to happen. A third,
3758
- * `hosted_link`, is not the organizer's to choose at all — the server sets it
3759
- * when a buyer link is created and clears it when the last live one is revoked.
2479
+ * None of the old copy came back with them. These sentences are written
2480
+ * against the enforcement matrix (`accessIntentDescription`), which is why
2481
+ * each one says what the route refuses as well as what it allows.
3760
2482
  *
3761
- * So this is two ACTIONS, not a setting: create a buyer link, or point the
3762
- * channel at a website integration. Both of them do something the moment they
3763
- * are pressed. A legacy row still carrying `none` or `internal` renders the
3764
- * neutral "not distributed yet" state with both actions offered — the stored
3765
- * value is left alone (it is organizer-declared metadata and the API that
3766
- * writes it is unchanged), it simply no longer has a control of its own.
2483
+ * The current route is stated, not merely styled: a chooser whose selection
2484
+ * you have to infer from a border is not a chooser. Its card carries a
2485
+ * "Current route" marker and drops its own select button, because pressing it
2486
+ * would do nothing.
3767
2487
  */
3768
2488
  private distributeHtml;
3769
2489
  /**
@@ -3814,6 +2534,23 @@ declare class ChannelsMode {
3814
2534
  private renderScopeDialog;
3815
2535
  private openDialog;
3816
2536
  private renderDialog;
2537
+ /**
2538
+ * `channel_intent_switch_blocked` — buyers are inside the route being left.
2539
+ *
2540
+ * The same review-then-acknowledge shape as the archive and chart-drop guards,
2541
+ * because it is the same kind of decision: the server refuses once, names
2542
+ * exactly what is at stake, and only a deliberate second press goes through.
2543
+ * What acknowledging does is spelled out per consequence — links close now,
2544
+ * checkouts already running survive and drain — rather than hidden behind a
2545
+ * word like "force".
2546
+ */
2547
+ private renderIntentSwitchDialog;
2548
+ /**
2549
+ * The acknowledged retry. The declare and the create stay one gesture across
2550
+ * the sheet: if this switch was the first half of a declare-then-create, the
2551
+ * held form finishes on the far side of the acknowledgement.
2552
+ */
2553
+ private acknowledgeIntentSwitch;
3817
2554
  /**
3818
2555
  * Mount a modal: `aria-modal` dialog, programmatic name, focus moved inside,
3819
2556
  * Tab trapped, Escape closes WITHOUT mutating, focus restored on close (§13).
@@ -3854,14 +2591,28 @@ declare class ChannelsMode {
3854
2591
  private renderMenuDialog;
3855
2592
  private renderRenameDialog;
3856
2593
  /**
3857
- * "Get embed code" — mark the channel as reached through the organizer's own
3858
- * backend. The write itself is `setChannelAccessIntent(…, 'server')`, the same
3859
- * API the old picker called; the difference is that it is now a deliberate
3860
- * action with a consequence the organizer is told about, rather than one of
3861
- * four dropdown values with no observable effect.
2594
+ * "Use a website or app" — declare the channel's route as `server`.
2595
+ *
2596
+ * This is no longer a flag the Embed page happens to read: since 2026-08-06 it
2597
+ * is what AUTHORIZES `POST /v1/events/:key/buyer-access-sessions` to mint for
2598
+ * this channel at all. Without it, an integration that is otherwise perfectly
2599
+ * wired up gets a 409 on every buyer.
3862
2600
  */
3863
2601
  private chooseWebsiteIntegration;
2602
+ /**
2603
+ * Declare this channel's sale route.
2604
+ *
2605
+ * Reports through the toast lane the rest of the rail's direct actions use.
2606
+ * The two enforcement refusals get real answers rather than a generic failure:
2607
+ * `channel_intent_switch_blocked` opens the review sheet (there is a decision
2608
+ * to make, and a sheet is where decisions live), and
2609
+ * `channel_access_intent_forbids` — which the organizer can hit by racing
2610
+ * their own second tab — says which route is in the way.
2611
+ */
3864
2612
  private setAccessIntent;
2613
+ /** What just happened, including anything the switch took down with it — the
2614
+ * server reports `intentSwitch` only when it actually disturbed something. */
2615
+ private intentSavedCopy;
3865
2616
  /** `channelId` is explicit because this is reachable from the ⋯ menu on a row
3866
2617
  * that is NOT the open channel, as well as from the detail panel itself. */
3867
2618
  private togglePause;
@@ -3894,7 +2645,41 @@ declare class ChannelsMode {
3894
2645
  * everything else.
3895
2646
  */
3896
2647
  private renderLinkCreateDialog;
2648
+ /**
2649
+ * DECLARE, then create.
2650
+ *
2651
+ * `createAccessLink` used to set the channel's route to `hosted_link` as a
2652
+ * side effect, which is exactly why the picker could never refuse anything.
2653
+ * The server took that side effect away and now REQUIRES the declaration —
2654
+ * and channels default to `none`, so a create that did not declare first
2655
+ * would 409 on the organizer's very first "Create buyer link".
2656
+ *
2657
+ * So the route is declared here, immediately before the create. It stays ONE
2658
+ * gesture: nothing is declared while the organizer is still filling the form
2659
+ * in (cancelling changes nothing), and if the declaration is the part that is
2660
+ * refused, the review sheet holds this form and finishes the job on the far
2661
+ * side of the acknowledgement.
2662
+ */
3897
2663
  private createLink;
2664
+ /**
2665
+ * The create half, on its own.
2666
+ *
2667
+ * Separate from `createLink` because the acknowledge path has ALREADY declared
2668
+ * the route — with the very acknowledgement the plain declaration was refused
2669
+ * for. Sending it back through `ensureHostedLinkRoute` would re-derive the
2670
+ * route from a channel list that has not necessarily caught up, and could
2671
+ * refuse the organizer a second time for a decision they just made.
2672
+ */
2673
+ private mintLink;
2674
+ /**
2675
+ * Make sure the channel declares the buyer-link route before a link is minted.
2676
+ *
2677
+ * Returns false when the create must NOT proceed — either it was refused, or
2678
+ * the decision has been handed to the switch-review sheet, which resumes it.
2679
+ * A channel already on `hosted_link` costs no request at all, so creating a
2680
+ * second link is the same single call it has always been.
2681
+ */
2682
+ private ensureHostedLinkRoute;
3898
2683
  /**
3899
2684
  * The ONE-TIME reveal.
3900
2685
  *
@@ -3928,4 +2713,4 @@ declare class ChannelsMode {
3928
2713
  handleBack(): boolean;
3929
2714
  }
3930
2715
 
3931
- export { ACCESS_LINK_DEFAULTS, type AccessLinkRecord, type AccessLinkReveal, type AccessLinkState, type AccessLinkStatus, type AccessLinkStatusRecord, ApiError, type ArchiveBlockedDetails, type AssignmentBuckets, type AssignmentDropDetails, type AssignmentResult, type AttachPickerFrameOptions, type BestAvailableResult, type BucketRow, BuyerAccessContext, type BuyerAccessExpiredEvent, type BuyerAccessRefreshReason, type BuyerAccessToken, type BuyerAccessTokenProvider, BuyerAccessUnavailableError, type BuyerAccessUnavailableEvent, type BuyerAccessUnavailableReason, BuyerRealtimeClient, type BuyerRealtimeOptions, type ChannelAccessIntent, type ChannelAccessSummary, type ChannelAllocationPage, type ChannelAuditEntry, type ChannelAuditPage, type ChannelCounts, type ChannelListResult, type ChannelPreviewProjection, type ChannelRecord, type ChannelSeatStatus, type ChannelState, type ChannelsCapabilities, type ChannelsClient, ChannelsMode, type ChannelsModeHost, type ChannelsRowView, type ChannelsSeatView, type CheckoutHandoff, type CheckoutLineItem, type CheckoutSessionResult, type ControlRoomActivityEntry, type ControlRoomSectionMetric, type ControlRoomSnapshot, EmbeddedDesigner, type EmbeddedDesignerEventType, type EmbeddedDesignerMessage, type EmbeddedDesignerOptions, type GAAreaAvailability, type HoldConflict, type HoldLineItem, type HoldResult, type LogEntry, type LogPage, ManageApi, ManageApiError, type OrderStatusResult, PUBLIC_CHANNEL_ID, PUBLIC_CHANNEL_NAME, type PaymentOptionsReason, type PaymentOptionsResult, type PaymentProviderName, type Projection, type PubApiOptions, type RealtimeSink, type ReportByStatus, type ReportCategoryMeta, type ReportCategoryRow, type ReportResult, type ResumedHoldResult, SeatManager, type SeatManagerActionResult, type SeatManagerActivity, type SeatManagerCapability, type SeatManagerConnection, type SeatManagerMode, type SeatManagerOptions, type SeatManagerTallies, SeatPicker, type SeatPickerOptions, type SeatPickerTheme, SeatingChart, type SeatingChartOptions, type SelectedObjectUnavailableEvent, type SelectedSeat, type SelectionSourceRow, type StatusChange, type SubscribeTicket$1 as SubscribeTicket, accessIntentLabel, accessLine, accessLinkBadge, accessLinkErrorCopy, accessLinkIsLive, accessLinkPolicyLines, attachPickerFrame, bucketRows, bucketRowsHtml, createBuyerAccessContext, createControllerSink, dropReviewRows, isPublicChannelId, markerLetter, markerOf, mutationCount, needsMoveConfirmation, planAssignment, retryAfterCopy, selectionSources, stateBadge, suggestMarker };
2716
+ export { AccessLinkReveal, AccessLinkStatusRecord, ApiError, AssignmentResult, type AttachPickerFrameOptions, type BestAvailableResult, BucketRow, BuyerAccessContext, type BuyerAccessExpiredEvent, type BuyerAccessRefreshReason, type BuyerAccessToken, type BuyerAccessTokenProvider, BuyerAccessUnavailableError, type BuyerAccessUnavailableEvent, type BuyerAccessUnavailableReason, BuyerRealtimeClient, type BuyerRealtimeOptions, ChannelAccessIntent, ChannelAllocationPage, ChannelListResult, ChannelPreviewProjection, ChannelRecord, ChannelSeatStatus, type ChannelsCapabilities, type ChannelsClient, ChannelsMode, type ChannelsModeHost, type ChannelsRowView, type ChannelsSeatView, type CheckoutHandoff, type CheckoutLineItem, type CheckoutSessionResult, EmbeddedDesigner, type EmbeddedDesignerEventType, type EmbeddedDesignerMessage, type EmbeddedDesignerOptions, type GAAreaAvailability, type HoldConflict, type HoldLineItem, type HoldResult, type OrderStatusResult, type PaymentOptionsReason, type PaymentOptionsResult, type PaymentProviderName, type Projection, type PubApiOptions, type RealtimeSink, type ResumedHoldResult, SeatPicker, type SeatPickerOptions, type SeatPickerTheme, SeatingChart, type SeatingChartOptions, type SelectedObjectUnavailableEvent, type SelectedSeat, type StatusChange, type SubscribeTicket, attachPickerFrame, bucketRowsHtml, createBuyerAccessContext, createControllerSink };