@opengeni/db 3.7.3-canary.0 → 3.7.4-canary.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.
Files changed (53) hide show
  1. package/dist/automations.d.ts +4 -0
  2. package/dist/canonical-human-identities.js +3 -3
  3. package/dist/{chunk-U4WPPEBH.js → chunk-3ZMN4EXC.js} +2 -2
  4. package/dist/{chunk-4NAR7FBA.js → chunk-6FIVOJ3V.js} +5 -1
  5. package/dist/{chunk-4NAR7FBA.js.map → chunk-6FIVOJ3V.js.map} +1 -1
  6. package/dist/{chunk-O56DM5GZ.js → chunk-DXJ2WY6W.js} +88 -1
  7. package/dist/chunk-DXJ2WY6W.js.map +1 -0
  8. package/dist/{chunk-S3TDDCS2.js → chunk-JP6IYGYI.js} +3 -3
  9. package/dist/{chunk-SZAWDXQC.js → chunk-JS3AWDKZ.js} +3 -3
  10. package/dist/{chunk-DZCYW2WT.js → chunk-LHKB62GC.js} +2 -2
  11. package/dist/{chunk-US4IS6IV.js → chunk-QL4AHBYD.js} +2 -2
  12. package/dist/{chunk-5NNCGFQY.js → chunk-VDXHLVDE.js} +2 -2
  13. package/dist/{chunk-F6PBS6WE.js → chunk-ZTSJPFDH.js} +2 -2
  14. package/dist/editable-artifact-durable-export.js +2 -2
  15. package/dist/editable-artifacts.js +3 -3
  16. package/dist/index.d.ts +105 -2
  17. package/dist/index.js +6241 -5241
  18. package/dist/index.js.map +1 -1
  19. package/dist/managed-auth-session-sets.js +3 -3
  20. package/dist/model-catalog.d.ts +153 -0
  21. package/dist/pr-review.d.ts +9 -0
  22. package/dist/provision-roles.js +1 -1
  23. package/dist/runtime-posture.d.ts +4 -4
  24. package/dist/schema.d.ts +344 -2
  25. package/dist/schema.js +5 -1
  26. package/dist/session-background-commands.js +3 -3
  27. package/dist/session-control.d.ts +35 -0
  28. package/dist/session-queue-commands.d.ts +17 -0
  29. package/dist/session-tenancy.js +3 -3
  30. package/dist/video-generation.js +3 -3
  31. package/dist/xai-subscription.d.ts +8 -0
  32. package/drizzle/0387_bound_host_export_session_payloads.sql +165 -0
  33. package/drizzle/0388_sandbox_provider_deadline_interactions.sql +491 -0
  34. package/drizzle/0389_model_catalog_and_gateway_custom_models.sql +241 -0
  35. package/package.json +6 -6
  36. package/src/automations.ts +9 -1
  37. package/src/index.ts +850 -117
  38. package/src/insights.ts +21 -7
  39. package/src/model-catalog.ts +682 -0
  40. package/src/pr-review.ts +19 -0
  41. package/src/runtime-posture.ts +4 -0
  42. package/src/schema.ts +98 -2
  43. package/src/session-control.ts +170 -0
  44. package/src/session-queue-commands.ts +157 -82
  45. package/src/xai-subscription.ts +66 -14
  46. package/dist/chunk-O56DM5GZ.js.map +0 -1
  47. /package/dist/{chunk-U4WPPEBH.js.map → chunk-3ZMN4EXC.js.map} +0 -0
  48. /package/dist/{chunk-S3TDDCS2.js.map → chunk-JP6IYGYI.js.map} +0 -0
  49. /package/dist/{chunk-SZAWDXQC.js.map → chunk-JS3AWDKZ.js.map} +0 -0
  50. /package/dist/{chunk-DZCYW2WT.js.map → chunk-LHKB62GC.js.map} +0 -0
  51. /package/dist/{chunk-US4IS6IV.js.map → chunk-QL4AHBYD.js.map} +0 -0
  52. /package/dist/{chunk-5NNCGFQY.js.map → chunk-VDXHLVDE.js.map} +0 -0
  53. /package/dist/{chunk-F6PBS6WE.js.map → chunk-ZTSJPFDH.js.map} +0 -0
package/dist/schema.d.ts CHANGED
@@ -46319,8 +46319,9 @@ export declare const hostExportConfig: import("drizzle-orm/pg-core").PgTableWith
46319
46319
  /**
46320
46320
  * Transactional delivery buffer. It intentionally has no tenant/source FKs:
46321
46321
  * a workspace deletion must not erase an already-committed, unacknowledged
46322
- * host fact. Session-event payloads retain their exact storage bytes plus
46323
- * explicit codec truth; usage payloads remain ordinary JSON.
46322
+ * host fact. Session-event rows retain exact storage bytes while they fit the
46323
+ * bounded host wire; larger canonical events carry an explicit content-free
46324
+ * projection plus literal-JSON codec truth. Usage payloads remain ordinary JSON.
46324
46325
  */
46325
46326
  export declare const hostExportOutbox: import("drizzle-orm/pg-core").PgTableWithColumns<{
46326
46327
  name: "host_export_outbox";
@@ -55435,6 +55436,347 @@ export declare const rigChanges: import("drizzle-orm/pg-core").PgTableWithColumn
55435
55436
  };
55436
55437
  dialect: 'pg';
55437
55438
  }>;
55439
+ export declare const deploymentModelCatalog: import("drizzle-orm/pg-core").PgTableWithColumns<{
55440
+ name: "deployment_model_catalog";
55441
+ schema: undefined;
55442
+ columns: {
55443
+ singleton: import("drizzle-orm/pg-core").PgColumn<{
55444
+ name: "singleton";
55445
+ tableName: "deployment_model_catalog";
55446
+ dataType: "boolean";
55447
+ columnType: "PgBoolean";
55448
+ data: boolean;
55449
+ driverParam: boolean;
55450
+ notNull: true;
55451
+ hasDefault: true;
55452
+ isPrimaryKey: true;
55453
+ isAutoincrement: false;
55454
+ hasRuntimeDefault: false;
55455
+ enumValues: undefined;
55456
+ baseColumn: never;
55457
+ identity: undefined;
55458
+ generated: undefined;
55459
+ }, {}, {}>;
55460
+ document: import("drizzle-orm/pg-core").PgColumn<{
55461
+ name: "document";
55462
+ tableName: "deployment_model_catalog";
55463
+ dataType: "json";
55464
+ columnType: "PgJsonb";
55465
+ data: unknown;
55466
+ driverParam: unknown;
55467
+ notNull: true;
55468
+ hasDefault: false;
55469
+ isPrimaryKey: false;
55470
+ isAutoincrement: false;
55471
+ hasRuntimeDefault: false;
55472
+ enumValues: undefined;
55473
+ baseColumn: never;
55474
+ identity: undefined;
55475
+ generated: undefined;
55476
+ }, {}, {
55477
+ $type: unknown;
55478
+ }>;
55479
+ version: import("drizzle-orm/pg-core").PgColumn<{
55480
+ name: "version";
55481
+ tableName: "deployment_model_catalog";
55482
+ dataType: "number";
55483
+ columnType: "PgBigInt53";
55484
+ data: number;
55485
+ driverParam: string | number;
55486
+ notNull: true;
55487
+ hasDefault: true;
55488
+ isPrimaryKey: false;
55489
+ isAutoincrement: false;
55490
+ hasRuntimeDefault: false;
55491
+ enumValues: undefined;
55492
+ baseColumn: never;
55493
+ identity: undefined;
55494
+ generated: undefined;
55495
+ }, {}, {}>;
55496
+ updatedAt: import("drizzle-orm/pg-core").PgColumn<{
55497
+ name: "updated_at";
55498
+ tableName: "deployment_model_catalog";
55499
+ dataType: "date";
55500
+ columnType: "PgTimestamp";
55501
+ data: Date;
55502
+ driverParam: string;
55503
+ notNull: true;
55504
+ hasDefault: true;
55505
+ isPrimaryKey: false;
55506
+ isAutoincrement: false;
55507
+ hasRuntimeDefault: false;
55508
+ enumValues: undefined;
55509
+ baseColumn: never;
55510
+ identity: undefined;
55511
+ generated: undefined;
55512
+ }, {}, {}>;
55513
+ };
55514
+ dialect: 'pg';
55515
+ }>;
55516
+ export declare const workspaceGatewayCustomModels: import("drizzle-orm/pg-core").PgTableWithColumns<{
55517
+ name: "workspace_gateway_custom_models";
55518
+ schema: undefined;
55519
+ columns: {
55520
+ id: import("drizzle-orm/pg-core").PgColumn<{
55521
+ name: "id";
55522
+ tableName: "workspace_gateway_custom_models";
55523
+ dataType: "string";
55524
+ columnType: "PgUUID";
55525
+ data: string;
55526
+ driverParam: string;
55527
+ notNull: true;
55528
+ hasDefault: true;
55529
+ isPrimaryKey: true;
55530
+ isAutoincrement: false;
55531
+ hasRuntimeDefault: false;
55532
+ enumValues: undefined;
55533
+ baseColumn: never;
55534
+ identity: undefined;
55535
+ generated: undefined;
55536
+ }, {}, {}>;
55537
+ accountId: import("drizzle-orm/pg-core").PgColumn<{
55538
+ name: "account_id";
55539
+ tableName: "workspace_gateway_custom_models";
55540
+ dataType: "string";
55541
+ columnType: "PgUUID";
55542
+ data: string;
55543
+ driverParam: string;
55544
+ notNull: true;
55545
+ hasDefault: false;
55546
+ isPrimaryKey: false;
55547
+ isAutoincrement: false;
55548
+ hasRuntimeDefault: false;
55549
+ enumValues: undefined;
55550
+ baseColumn: never;
55551
+ identity: undefined;
55552
+ generated: undefined;
55553
+ }, {}, {}>;
55554
+ workspaceId: import("drizzle-orm/pg-core").PgColumn<{
55555
+ name: "workspace_id";
55556
+ tableName: "workspace_gateway_custom_models";
55557
+ dataType: "string";
55558
+ columnType: "PgUUID";
55559
+ data: string;
55560
+ driverParam: string;
55561
+ notNull: true;
55562
+ hasDefault: false;
55563
+ isPrimaryKey: false;
55564
+ isAutoincrement: false;
55565
+ hasRuntimeDefault: false;
55566
+ enumValues: undefined;
55567
+ baseColumn: never;
55568
+ identity: undefined;
55569
+ generated: undefined;
55570
+ }, {}, {}>;
55571
+ providerKind: import("drizzle-orm/pg-core").PgColumn<{
55572
+ name: "provider_kind";
55573
+ tableName: "workspace_gateway_custom_models";
55574
+ dataType: "string";
55575
+ columnType: "PgText";
55576
+ data: "openrouter" | "vercel_gateway";
55577
+ driverParam: string;
55578
+ notNull: true;
55579
+ hasDefault: false;
55580
+ isPrimaryKey: false;
55581
+ isAutoincrement: false;
55582
+ hasRuntimeDefault: false;
55583
+ enumValues: [string, ...string[]];
55584
+ baseColumn: never;
55585
+ identity: undefined;
55586
+ generated: undefined;
55587
+ }, {}, {
55588
+ $type: "openrouter" | "vercel_gateway";
55589
+ }>;
55590
+ upstreamModelId: import("drizzle-orm/pg-core").PgColumn<{
55591
+ name: "upstream_model_id";
55592
+ tableName: "workspace_gateway_custom_models";
55593
+ dataType: "string";
55594
+ columnType: "PgText";
55595
+ data: string;
55596
+ driverParam: string;
55597
+ notNull: true;
55598
+ hasDefault: false;
55599
+ isPrimaryKey: false;
55600
+ isAutoincrement: false;
55601
+ hasRuntimeDefault: false;
55602
+ enumValues: [string, ...string[]];
55603
+ baseColumn: never;
55604
+ identity: undefined;
55605
+ generated: undefined;
55606
+ }, {}, {}>;
55607
+ label: import("drizzle-orm/pg-core").PgColumn<{
55608
+ name: "label";
55609
+ tableName: "workspace_gateway_custom_models";
55610
+ dataType: "string";
55611
+ columnType: "PgText";
55612
+ data: string;
55613
+ driverParam: string;
55614
+ notNull: false;
55615
+ hasDefault: false;
55616
+ isPrimaryKey: false;
55617
+ isAutoincrement: false;
55618
+ hasRuntimeDefault: false;
55619
+ enumValues: [string, ...string[]];
55620
+ baseColumn: never;
55621
+ identity: undefined;
55622
+ generated: undefined;
55623
+ }, {}, {}>;
55624
+ version: import("drizzle-orm/pg-core").PgColumn<{
55625
+ name: "version";
55626
+ tableName: "workspace_gateway_custom_models";
55627
+ dataType: "number";
55628
+ columnType: "PgInteger";
55629
+ data: number;
55630
+ driverParam: string | number;
55631
+ notNull: true;
55632
+ hasDefault: true;
55633
+ isPrimaryKey: false;
55634
+ isAutoincrement: false;
55635
+ hasRuntimeDefault: false;
55636
+ enumValues: undefined;
55637
+ baseColumn: never;
55638
+ identity: undefined;
55639
+ generated: undefined;
55640
+ }, {}, {}>;
55641
+ createOperationId: import("drizzle-orm/pg-core").PgColumn<{
55642
+ name: "create_operation_id";
55643
+ tableName: "workspace_gateway_custom_models";
55644
+ dataType: "string";
55645
+ columnType: "PgUUID";
55646
+ data: string;
55647
+ driverParam: string;
55648
+ notNull: true;
55649
+ hasDefault: false;
55650
+ isPrimaryKey: false;
55651
+ isAutoincrement: false;
55652
+ hasRuntimeDefault: false;
55653
+ enumValues: undefined;
55654
+ baseColumn: never;
55655
+ identity: undefined;
55656
+ generated: undefined;
55657
+ }, {}, {}>;
55658
+ createRequestHash: import("drizzle-orm/pg-core").PgColumn<{
55659
+ name: "create_request_hash";
55660
+ tableName: "workspace_gateway_custom_models";
55661
+ dataType: "string";
55662
+ columnType: "PgText";
55663
+ data: string;
55664
+ driverParam: string;
55665
+ notNull: true;
55666
+ hasDefault: false;
55667
+ isPrimaryKey: false;
55668
+ isAutoincrement: false;
55669
+ hasRuntimeDefault: false;
55670
+ enumValues: [string, ...string[]];
55671
+ baseColumn: never;
55672
+ identity: undefined;
55673
+ generated: undefined;
55674
+ }, {}, {}>;
55675
+ deleteOperationId: import("drizzle-orm/pg-core").PgColumn<{
55676
+ name: "delete_operation_id";
55677
+ tableName: "workspace_gateway_custom_models";
55678
+ dataType: "string";
55679
+ columnType: "PgUUID";
55680
+ data: string;
55681
+ driverParam: string;
55682
+ notNull: false;
55683
+ hasDefault: false;
55684
+ isPrimaryKey: false;
55685
+ isAutoincrement: false;
55686
+ hasRuntimeDefault: false;
55687
+ enumValues: undefined;
55688
+ baseColumn: never;
55689
+ identity: undefined;
55690
+ generated: undefined;
55691
+ }, {}, {}>;
55692
+ deleteRequestHash: import("drizzle-orm/pg-core").PgColumn<{
55693
+ name: "delete_request_hash";
55694
+ tableName: "workspace_gateway_custom_models";
55695
+ dataType: "string";
55696
+ columnType: "PgText";
55697
+ data: string;
55698
+ driverParam: string;
55699
+ notNull: false;
55700
+ hasDefault: false;
55701
+ isPrimaryKey: false;
55702
+ isAutoincrement: false;
55703
+ hasRuntimeDefault: false;
55704
+ enumValues: [string, ...string[]];
55705
+ baseColumn: never;
55706
+ identity: undefined;
55707
+ generated: undefined;
55708
+ }, {}, {}>;
55709
+ createdBySubjectId: import("drizzle-orm/pg-core").PgColumn<{
55710
+ name: "created_by_subject_id";
55711
+ tableName: "workspace_gateway_custom_models";
55712
+ dataType: "string";
55713
+ columnType: "PgText";
55714
+ data: string;
55715
+ driverParam: string;
55716
+ notNull: true;
55717
+ hasDefault: false;
55718
+ isPrimaryKey: false;
55719
+ isAutoincrement: false;
55720
+ hasRuntimeDefault: false;
55721
+ enumValues: [string, ...string[]];
55722
+ baseColumn: never;
55723
+ identity: undefined;
55724
+ generated: undefined;
55725
+ }, {}, {}>;
55726
+ retiredAt: import("drizzle-orm/pg-core").PgColumn<{
55727
+ name: "retired_at";
55728
+ tableName: "workspace_gateway_custom_models";
55729
+ dataType: "date";
55730
+ columnType: "PgTimestamp";
55731
+ data: Date;
55732
+ driverParam: string;
55733
+ notNull: false;
55734
+ hasDefault: false;
55735
+ isPrimaryKey: false;
55736
+ isAutoincrement: false;
55737
+ hasRuntimeDefault: false;
55738
+ enumValues: undefined;
55739
+ baseColumn: never;
55740
+ identity: undefined;
55741
+ generated: undefined;
55742
+ }, {}, {}>;
55743
+ createdAt: import("drizzle-orm/pg-core").PgColumn<{
55744
+ name: "created_at";
55745
+ tableName: "workspace_gateway_custom_models";
55746
+ dataType: "date";
55747
+ columnType: "PgTimestamp";
55748
+ data: Date;
55749
+ driverParam: string;
55750
+ notNull: true;
55751
+ hasDefault: true;
55752
+ isPrimaryKey: false;
55753
+ isAutoincrement: false;
55754
+ hasRuntimeDefault: false;
55755
+ enumValues: undefined;
55756
+ baseColumn: never;
55757
+ identity: undefined;
55758
+ generated: undefined;
55759
+ }, {}, {}>;
55760
+ updatedAt: import("drizzle-orm/pg-core").PgColumn<{
55761
+ name: "updated_at";
55762
+ tableName: "workspace_gateway_custom_models";
55763
+ dataType: "date";
55764
+ columnType: "PgTimestamp";
55765
+ data: Date;
55766
+ driverParam: string;
55767
+ notNull: true;
55768
+ hasDefault: true;
55769
+ isPrimaryKey: false;
55770
+ isAutoincrement: false;
55771
+ hasRuntimeDefault: false;
55772
+ enumValues: undefined;
55773
+ baseColumn: never;
55774
+ identity: undefined;
55775
+ generated: undefined;
55776
+ }, {}, {}>;
55777
+ };
55778
+ dialect: 'pg';
55779
+ }>;
55438
55780
  export * from "./workspace-instruction-policies-schema.js";
55439
55781
  export * from "./company-profile-schema.js";
55440
55782
  export * from "./workspace-learning-policy-schema.js";
package/dist/schema.js CHANGED
@@ -62,6 +62,7 @@ import {
62
62
  connectorActionPolicies,
63
63
  connectorActionRequests,
64
64
  creditLedgerEntries,
65
+ deploymentModelCatalog,
65
66
  deviceEnrollmentRequests,
66
67
  deviceEnrollmentStatusValues,
67
68
  documentBases,
@@ -310,6 +311,7 @@ import {
310
311
  workspaceCaptures,
311
312
  workspaceCodexSubscriptionPreferences,
312
313
  workspaceControlEvents,
314
+ workspaceGatewayCustomModels,
313
315
  workspaceInferenceControls,
314
316
  workspaceInstructionPolicyActivationEvents,
315
317
  workspaceInstructionPolicyDeactivationEvents,
@@ -337,7 +339,7 @@ import {
337
339
  xaiRotationSettings,
338
340
  xaiSessionAccountPins,
339
341
  xaiSubscriptionCredentials
340
- } from "./chunk-O56DM5GZ.js";
342
+ } from "./chunk-DXJ2WY6W.js";
341
343
  import "./chunk-PZ5AY32C.js";
342
344
  export {
343
345
  agentRunStates,
@@ -403,6 +405,7 @@ export {
403
405
  connectorActionPolicies,
404
406
  connectorActionRequests,
405
407
  creditLedgerEntries,
408
+ deploymentModelCatalog,
406
409
  deviceEnrollmentRequests,
407
410
  deviceEnrollmentStatusValues,
408
411
  documentBases,
@@ -651,6 +654,7 @@ export {
651
654
  workspaceCaptures,
652
655
  workspaceCodexSubscriptionPreferences,
653
656
  workspaceControlEvents,
657
+ workspaceGatewayCustomModels,
654
658
  workspaceInferenceControls,
655
659
  workspaceInstructionPolicyActivationEvents,
656
660
  workspaceInstructionPolicyDeactivationEvents,
@@ -12,9 +12,9 @@ import {
12
12
  settleClaimedConnectedMachineBackgroundCommand,
13
13
  settleConnectedMachineSessionBackgroundCommand,
14
14
  settleSessionBackgroundCommandForRetainedProcess
15
- } from "./chunk-S3TDDCS2.js";
16
- import "./chunk-F6PBS6WE.js";
17
- import "./chunk-O56DM5GZ.js";
15
+ } from "./chunk-JP6IYGYI.js";
16
+ import "./chunk-ZTSJPFDH.js";
17
+ import "./chunk-DXJ2WY6W.js";
18
18
  import "./chunk-PZ5AY32C.js";
19
19
  export {
20
20
  backgroundCommandActivityForSessions,
@@ -429,6 +429,40 @@ export declare function evaluateSessionControl(db: Database, workspaceId: string
429
429
  lock?: WorkspaceControlLockMode;
430
430
  workspaceControl?: WorkspaceControlRow | undefined;
431
431
  }): Promise<EffectiveSessionControl>;
432
+ export type SessionPromptCommandAction = "prompt.send" | "prompt.steer";
433
+ /**
434
+ * Prompt operation keys are actor-scoped across target sessions and across the
435
+ * Send/Steer action pair. The advisory lock closes the gap left by the legacy
436
+ * action/target-specific unique index without changing old receipt identities.
437
+ */
438
+ export declare function reserveSessionPromptCommandReceipt(db: Database, input: {
439
+ accountId: string;
440
+ workspaceId: string;
441
+ actor: SessionCommandActor;
442
+ action: SessionPromptCommandAction;
443
+ targetSessionId: string;
444
+ operationKey: string;
445
+ canonicalRequestHash: string;
446
+ boundaryRequestHash: string;
447
+ }): Promise<{
448
+ receipt: SessionCommandReceiptRow;
449
+ replay: boolean;
450
+ }>;
451
+ /** Serialize one actor-scoped prompt operation before replay or reservation. */
452
+ export declare function lockSessionPromptCommandOperation(db: Database, input: {
453
+ workspaceId: string;
454
+ actor: SessionCommandActor;
455
+ operationKey: string;
456
+ }): Promise<void>;
457
+ /** Return only a fully committed exact prompt receipt with the new boundary fingerprint. */
458
+ export declare function getCompletedSessionPromptCommandReceipt(db: Database, input: {
459
+ workspaceId: string;
460
+ actor: SessionCommandActor;
461
+ action: SessionPromptCommandAction;
462
+ targetSessionId: string;
463
+ operationKey: string;
464
+ boundaryRequestHash: string;
465
+ }): Promise<SessionCommandReceiptRow | null>;
432
466
  export declare function reserveSessionCommandReceipt(db: Database, input: {
433
467
  accountId: string;
434
468
  workspaceId: string;
@@ -439,6 +473,7 @@ export declare function reserveSessionCommandReceipt(db: Database, input: {
439
473
  operationKey: string;
440
474
  canonicalRequestHash: string;
441
475
  identityScope?: "actor" | "goal_operation";
476
+ initialResult?: Record<string, unknown>;
442
477
  }): Promise<{
443
478
  receipt: SessionCommandReceiptRow;
444
479
  replay: boolean;
@@ -53,6 +53,18 @@ export type SubmitHumanPromptResult = {
53
53
  workspaceControlEventId: string | null;
54
54
  replay: boolean;
55
55
  };
56
+ export declare function replaySubmittedHumanPromptFromBoundaryReceipt(db: Database, input: {
57
+ workspaceId: string;
58
+ sessionId: string;
59
+ subjectId: string;
60
+ actor: SessionCommandActor;
61
+ operationKey: string;
62
+ delivery: "send" | "steer";
63
+ boundaryRequestHash: string;
64
+ expectedDraftRevision?: number | null;
65
+ /** Wait for an overlapping same-key transaction before checking committed replay truth. */
66
+ serializeOperation?: boolean;
67
+ }): Promise<SubmitHumanPromptResult | null>;
56
68
  export type AgentInternalUpdateCommandResult = {
57
69
  receipt: SessionCommandReceiptRow;
58
70
  updateId: string;
@@ -179,6 +191,8 @@ export declare function submitHumanPromptInTransaction(db: SessionActivityDataba
179
191
  subjectLabel?: string;
180
192
  actor: SessionCommandActor;
181
193
  operationKey: string;
194
+ /** Stable parsed boundary-request identity used before mutable enrichment. */
195
+ boundaryRequestHash?: string;
182
196
  delivery: "send" | "steer";
183
197
  controlEtag?: string | null;
184
198
  expectedDraftRevision?: number | null;
@@ -213,6 +227,9 @@ export declare function submitHumanPromptInTransaction(db: SessionActivityDataba
213
227
  id: string;
214
228
  headersEncrypted: Record<string, string>;
215
229
  }>;
230
+ /** Trusted database-only admission seam. It runs only after a completed
231
+ * operation replay has been ruled out; throwing rolls the prompt back. */
232
+ beforeFreshPromptCommit?: (tx: Database) => Promise<void>;
216
233
  /** Request-scoped callers bound the control prefix wait; lifecycle callers omit it. */
217
234
  controlLockTimeoutMs?: number;
218
235
  }): Promise<SubmitHumanPromptResult>;
@@ -14,9 +14,9 @@ import {
14
14
  replayAppliedSessionFork,
15
15
  sessionTenancyProductActivated,
16
16
  transitionSessionVisibility
17
- } from "./chunk-5NNCGFQY.js";
18
- import "./chunk-F6PBS6WE.js";
19
- import "./chunk-O56DM5GZ.js";
17
+ } from "./chunk-VDXHLVDE.js";
18
+ import "./chunk-ZTSJPFDH.js";
19
+ import "./chunk-DXJ2WY6W.js";
20
20
  import "./chunk-PZ5AY32C.js";
21
21
  export {
22
22
  SessionTenancyAccessError,
@@ -29,9 +29,9 @@ import {
29
29
  settleVideoGenerationFailure,
30
30
  settleVideoGenerationReady,
31
31
  updateWorkspaceVideoGenerationPolicy
32
- } from "./chunk-SZAWDXQC.js";
33
- import "./chunk-F6PBS6WE.js";
34
- import "./chunk-O56DM5GZ.js";
32
+ } from "./chunk-JS3AWDKZ.js";
33
+ import "./chunk-ZTSJPFDH.js";
34
+ import "./chunk-DXJ2WY6W.js";
35
35
  import "./chunk-PZ5AY32C.js";
36
36
  export {
37
37
  ACTIVE_VIDEO_GENERATION_STATUSES,
@@ -97,6 +97,14 @@ export declare function listXaiSubscriptionAccountsMetadata(db: Database, input:
97
97
  export declare function workspaceXaiSubscriptionActive(db: Database, settings: {
98
98
  readonly supergrokSubscriptionEnabled: boolean;
99
99
  }, workspaceId: string, subjectId: string): Promise<boolean>;
100
+ /** Metadata-only readiness for the exact provider-account authority frozen on a turn. */
101
+ export declare function workspaceXaiSubscriptionActiveForAuthority(db: Database, settings: {
102
+ readonly supergrokSubscriptionEnabled: boolean;
103
+ }, input: {
104
+ workspaceId: string;
105
+ subjectId: string;
106
+ authoritySnapshot: XaiAuthoritySnapshot;
107
+ }): Promise<boolean>;
100
108
  export declare function getXaiSubscriptionAccountMetadata(db: Database, input: {
101
109
  workspaceId: string;
102
110
  subjectId: string;