@opengeni/db 4.4.1 → 4.5.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 (82) hide show
  1. package/dist/canonical-human-identities.js +3 -3
  2. package/dist/capability-reconciliation.js +2 -2
  3. package/dist/{chunk-T7GDRZOH.js → chunk-4LVV4R4F.js} +2 -2
  4. package/dist/{chunk-NQWVBQFK.js → chunk-575FUJE2.js} +3 -3
  5. package/dist/{chunk-K2XOMTAG.js → chunk-7LFHUC35.js} +2 -2
  6. package/dist/{chunk-JC43DLHB.js → chunk-7P67EF5K.js} +5 -5
  7. package/dist/{chunk-XWANFAN4.js → chunk-BH2HBICR.js} +4 -4
  8. package/dist/{chunk-PB73JQOI.js → chunk-C3FI3DJ5.js} +2 -2
  9. package/dist/{chunk-LLQLCFCT.js → chunk-GSZZDYPV.js} +2 -2
  10. package/dist/{chunk-B4DWUU4Y.js → chunk-GYAQYECK.js} +2 -2
  11. package/dist/{chunk-GYHXV2LR.js → chunk-K2YN562I.js} +2 -2
  12. package/dist/{chunk-6UJX2OXO.js → chunk-KMBU4KDY.js} +25 -1
  13. package/dist/chunk-KMBU4KDY.js.map +1 -0
  14. package/dist/{chunk-JN2DIKGW.js → chunk-M6TNKUGE.js} +3 -1
  15. package/dist/chunk-M6TNKUGE.js.map +1 -0
  16. package/dist/{chunk-SSCUP23X.js → chunk-MSAWMGWJ.js} +6 -6
  17. package/dist/{chunk-T5RZ3HWS.js → chunk-OFQDECMZ.js} +4 -4
  18. package/dist/{chunk-7UA4WUGK.js → chunk-RRZO5XRA.js} +2671 -2335
  19. package/dist/{chunk-7UA4WUGK.js.map → chunk-RRZO5XRA.js.map} +1 -1
  20. package/dist/{chunk-72JNABPO.js → chunk-TIF52FMJ.js} +3 -3
  21. package/dist/{chunk-67VNEM5N.js → chunk-TLCTS7CZ.js} +4 -4
  22. package/dist/{chunk-VFQI3CDL.js → chunk-VXCIFQX7.js} +2 -2
  23. package/dist/{chunk-5H6FHFHD.js → chunk-XX5M3TJJ.js} +2 -2
  24. package/dist/{chunk-LUO43IZE.js → chunk-YOFYG5ZI.js} +2 -2
  25. package/dist/connect-attempts.js +3 -3
  26. package/dist/editable-artifact-durable-export.js +2 -2
  27. package/dist/editable-artifacts.js +3 -3
  28. package/dist/index.d.ts +21 -0
  29. package/dist/index.js +25 -19
  30. package/dist/managed-auth-session-sets.js +3 -3
  31. package/dist/mcp-operations.js +2 -2
  32. package/dist/migrate.js +19 -19
  33. package/dist/organization-integration-policy.js +3 -3
  34. package/dist/provision-roles.js +1 -1
  35. package/dist/retained-provider-commands.js +6 -6
  36. package/dist/runtime-posture.d.ts +2 -2
  37. package/dist/schema.d.ts +93 -0
  38. package/dist/schema.js +3 -1
  39. package/dist/session-background-commands.js +5 -5
  40. package/dist/session-command-output.js +5 -5
  41. package/dist/session-event-slices.js +3 -3
  42. package/dist/session-history-tool-identities.d.ts +11 -0
  43. package/dist/session-mcp-credential-rotation.js +6 -6
  44. package/dist/session-message-search.d.ts +21 -0
  45. package/dist/session-tenancy.js +6 -6
  46. package/dist/{subscription-core-codex-SUO2TISD.js → subscription-core-codex-L7NPFWAH.js} +6 -6
  47. package/dist/{subscription-core-codex-compat-SDHM4XG4.js → subscription-core-codex-compat-AK2UMLE3.js} +8 -8
  48. package/dist/subscription-usage-pool.d.ts +1 -1
  49. package/dist/video-generation.js +3 -3
  50. package/dist/workspace-artifacts.d.ts +13 -0
  51. package/dist/workspace-tool-defaults.js +5 -5
  52. package/drizzle/0907_subscription_connection_one_owner.sql +339 -209
  53. package/drizzle/0908_site_opens.sql +33 -0
  54. package/package.json +9 -9
  55. package/src/index.ts +304 -44
  56. package/src/runtime-posture.ts +2 -0
  57. package/src/schema.ts +24 -0
  58. package/src/session-history-tool-identities.ts +55 -0
  59. package/src/session-message-search.ts +188 -33
  60. package/src/subscription-core/administered-connections.ts +7 -5
  61. package/src/subscription-usage-pool.ts +7 -5
  62. package/src/workspace-artifacts.ts +45 -1
  63. package/dist/chunk-6UJX2OXO.js.map +0 -1
  64. package/dist/chunk-JN2DIKGW.js.map +0 -1
  65. /package/dist/{chunk-T7GDRZOH.js.map → chunk-4LVV4R4F.js.map} +0 -0
  66. /package/dist/{chunk-NQWVBQFK.js.map → chunk-575FUJE2.js.map} +0 -0
  67. /package/dist/{chunk-K2XOMTAG.js.map → chunk-7LFHUC35.js.map} +0 -0
  68. /package/dist/{chunk-JC43DLHB.js.map → chunk-7P67EF5K.js.map} +0 -0
  69. /package/dist/{chunk-XWANFAN4.js.map → chunk-BH2HBICR.js.map} +0 -0
  70. /package/dist/{chunk-PB73JQOI.js.map → chunk-C3FI3DJ5.js.map} +0 -0
  71. /package/dist/{chunk-LLQLCFCT.js.map → chunk-GSZZDYPV.js.map} +0 -0
  72. /package/dist/{chunk-B4DWUU4Y.js.map → chunk-GYAQYECK.js.map} +0 -0
  73. /package/dist/{chunk-GYHXV2LR.js.map → chunk-K2YN562I.js.map} +0 -0
  74. /package/dist/{chunk-SSCUP23X.js.map → chunk-MSAWMGWJ.js.map} +0 -0
  75. /package/dist/{chunk-T5RZ3HWS.js.map → chunk-OFQDECMZ.js.map} +0 -0
  76. /package/dist/{chunk-72JNABPO.js.map → chunk-TIF52FMJ.js.map} +0 -0
  77. /package/dist/{chunk-67VNEM5N.js.map → chunk-TLCTS7CZ.js.map} +0 -0
  78. /package/dist/{chunk-VFQI3CDL.js.map → chunk-VXCIFQX7.js.map} +0 -0
  79. /package/dist/{chunk-5H6FHFHD.js.map → chunk-XX5M3TJJ.js.map} +0 -0
  80. /package/dist/{chunk-LUO43IZE.js.map → chunk-YOFYG5ZI.js.map} +0 -0
  81. /package/dist/{subscription-core-codex-SUO2TISD.js.map → subscription-core-codex-L7NPFWAH.js.map} +0 -0
  82. /package/dist/{subscription-core-codex-compat-SDHM4XG4.js.map → subscription-core-codex-compat-AK2UMLE3.js.map} +0 -0
@@ -11,10 +11,10 @@ import {
11
11
  getCanonicalHumanIdentityProjection,
12
12
  synchronizeCanonicalHumanLoginBindings,
13
13
  validateCanonicalHumanSession
14
- } from "./chunk-5H6FHFHD.js";
15
- import "./chunk-GYHXV2LR.js";
14
+ } from "./chunk-XX5M3TJJ.js";
15
+ import "./chunk-K2YN562I.js";
16
16
  import "./chunk-SMCA7PNJ.js";
17
- import "./chunk-6UJX2OXO.js";
17
+ import "./chunk-KMBU4KDY.js";
18
18
  import "./chunk-PZ5AY32C.js";
19
19
  export {
20
20
  CanonicalHumanIdentityAuthorityError,
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  withWorkspaceRls
3
- } from "./chunk-GYHXV2LR.js";
3
+ } from "./chunk-K2YN562I.js";
4
4
  import "./chunk-SMCA7PNJ.js";
5
- import "./chunk-6UJX2OXO.js";
5
+ import "./chunk-KMBU4KDY.js";
6
6
  import "./chunk-PZ5AY32C.js";
7
7
 
8
8
  // src/capability-reconciliation.ts
@@ -6,7 +6,7 @@ import {
6
6
  rlsContextForWorkspace,
7
7
  setSubjectRlsContext,
8
8
  withRlsContext
9
- } from "./chunk-GYHXV2LR.js";
9
+ } from "./chunk-K2YN562I.js";
10
10
 
11
11
  // src/organization-integration-policy.ts
12
12
  import {
@@ -153,4 +153,4 @@ export {
153
153
  withOrganizationIntegrationPolicyFence,
154
154
  withOrganizationIntegrationAcquisition
155
155
  };
156
- //# sourceMappingURL=chunk-T7GDRZOH.js.map
156
+ //# sourceMappingURL=chunk-4LVV4R4F.js.map
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  rawRows,
3
3
  withWorkspaceRls
4
- } from "./chunk-GYHXV2LR.js";
4
+ } from "./chunk-K2YN562I.js";
5
5
  import {
6
6
  LOSSLESS_JSON_STRING_PREFIX,
7
7
  fromPostgresLosslessJson,
8
8
  sessionEvents,
9
9
  sessionTurns,
10
10
  toPostgresLosslessJson
11
- } from "./chunk-6UJX2OXO.js";
11
+ } from "./chunk-KMBU4KDY.js";
12
12
 
13
13
  // src/session-event-slices.ts
14
14
  import { and, asc, desc, eq, gt, inArray, lt, notInArray, sql as sql2 } from "drizzle-orm";
@@ -275,4 +275,4 @@ export {
275
275
  readSessionMessageSliceInScope,
276
276
  listSessionEventSlices
277
277
  };
278
- //# sourceMappingURL=chunk-NQWVBQFK.js.map
278
+ //# sourceMappingURL=chunk-575FUJE2.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  nestedPostgresSqlState,
3
3
  rawRows
4
- } from "./chunk-GYHXV2LR.js";
4
+ } from "./chunk-K2YN562I.js";
5
5
 
6
6
  // src/managed-auth-session-sets.ts
7
7
  import {
@@ -296,4 +296,4 @@ export {
296
296
  reapManagedAuthIsolatedSessions,
297
297
  reapExpiredManagedAuthSessionSets
298
298
  };
299
- //# sourceMappingURL=chunk-K2XOMTAG.js.map
299
+ //# sourceMappingURL=chunk-7LFHUC35.js.map
@@ -2,10 +2,10 @@ import {
2
2
  readSubscriptionProviderCutoverState,
3
3
  subscriptionCoreProvider,
4
4
  subscriptionCoreProviderIds
5
- } from "./chunk-VFQI3CDL.js";
5
+ } from "./chunk-VXCIFQX7.js";
6
6
  import {
7
7
  cancelUnacceptedVideoGenerationsForToolCallsInTransaction
8
- } from "./chunk-72JNABPO.js";
8
+ } from "./chunk-TIF52FMJ.js";
9
9
  import {
10
10
  external_exports
11
11
  } from "./chunk-4UJCXBR2.js";
@@ -20,7 +20,7 @@ import {
20
20
  withSessionActivityRlsContext,
21
21
  withWorkspaceRls,
22
22
  withWorkspaceSubjectRls
23
- } from "./chunk-GYHXV2LR.js";
23
+ } from "./chunk-K2YN562I.js";
24
24
  import {
25
25
  LOSSLESS_CONTENT_CODEC_VERSION,
26
26
  apiKeys,
@@ -53,7 +53,7 @@ import {
53
53
  workspaceInferenceControls,
54
54
  workspaceMemberships,
55
55
  workspaces
56
- } from "./chunk-6UJX2OXO.js";
56
+ } from "./chunk-KMBU4KDY.js";
57
57
 
58
58
  // src/session-command-output.ts
59
59
  import { and as and11, eq as eq12, inArray as inArray7 } from "drizzle-orm";
@@ -7890,4 +7890,4 @@ export {
7890
7890
  setWorkspacePauseTimerInTransaction,
7891
7891
  fireWorkspacePauseTimerInTransaction
7892
7892
  };
7893
- //# sourceMappingURL=chunk-JC43DLHB.js.map
7893
+ //# sourceMappingURL=chunk-7P67EF5K.js.map
@@ -2,7 +2,7 @@ import {
2
2
  memoByProvider,
3
3
  subscriptionCoreConnectionKind,
4
4
  subscriptionCoreProviderId
5
- } from "./chunk-B4DWUU4Y.js";
5
+ } from "./chunk-GYAQYECK.js";
6
6
  import {
7
7
  SUBSCRIPTION_CORE_CODEX,
8
8
  SubscriptionCoreCodexAccessLostError,
@@ -20,12 +20,12 @@ import {
20
20
  releaseSubscriptionTurnLease,
21
21
  subscriptionCoreCodexProvider,
22
22
  writeSubscriptionSessionBinding
23
- } from "./chunk-VFQI3CDL.js";
23
+ } from "./chunk-VXCIFQX7.js";
24
24
  import {
25
25
  rawRows,
26
26
  withRlsContext,
27
27
  withSessionRlsActorContext
28
- } from "./chunk-GYHXV2LR.js";
28
+ } from "./chunk-K2YN562I.js";
29
29
 
30
30
  // src/subscription-core-codex.ts
31
31
  import { CodexReloginRequired } from "@opengeni/codex";
@@ -1603,4 +1603,4 @@ export {
1603
1603
  refreshSubscriptionCoreCodexCredential,
1604
1604
  buildSubscriptionCoreCodexTokenResolver
1605
1605
  };
1606
- //# sourceMappingURL=chunk-XWANFAN4.js.map
1606
+ //# sourceMappingURL=chunk-BH2HBICR.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  setSubjectRlsContext,
3
3
  withRlsContext
4
- } from "./chunk-GYHXV2LR.js";
4
+ } from "./chunk-K2YN562I.js";
5
5
 
6
6
  // src/connection-token-resolver.ts
7
7
  import {
@@ -863,4 +863,4 @@ export {
863
863
  refreshOAuthConnectionCredential,
864
864
  isPrivateAddress
865
865
  };
866
- //# sourceMappingURL=chunk-PB73JQOI.js.map
866
+ //# sourceMappingURL=chunk-C3FI3DJ5.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  rawRows,
3
3
  withRlsContext
4
- } from "./chunk-GYHXV2LR.js";
4
+ } from "./chunk-K2YN562I.js";
5
5
 
6
6
  // src/editable-artifacts.ts
7
7
  import { createHash } from "crypto";
@@ -3638,4 +3638,4 @@ export {
3638
3638
  PostgresEditableArtifactLiveReadStore,
3639
3639
  transactionallyAuthorizeEditableArtifactActor
3640
3640
  };
3641
- //# sourceMappingURL=chunk-LLQLCFCT.js.map
3641
+ //# sourceMappingURL=chunk-GSZZDYPV.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  subscriptionCoreProvider
3
- } from "./chunk-VFQI3CDL.js";
3
+ } from "./chunk-VXCIFQX7.js";
4
4
 
5
5
  // src/subscription-core/provider.ts
6
6
  function subscriptionCoreProviderId(provider) {
@@ -32,4 +32,4 @@ export {
32
32
  subscriptionCoreConnectionKind,
33
33
  memoByProvider
34
34
  };
35
- //# sourceMappingURL=chunk-B4DWUU4Y.js.map
35
+ //# sourceMappingURL=chunk-GYAQYECK.js.map
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  LOSSLESS_CONTENT_WRITER_APPLICATION_NAME,
6
6
  workspaces
7
- } from "./chunk-6UJX2OXO.js";
7
+ } from "./chunk-KMBU4KDY.js";
8
8
 
9
9
  // src/persistence-errors.ts
10
10
  var SQLSTATE_KEYS = ["sqlState", "sqlstate", "code"];
@@ -1279,4 +1279,4 @@ export {
1279
1279
  withAccountRls,
1280
1280
  dbBindingFor
1281
1281
  };
1282
- //# sourceMappingURL=chunk-GYHXV2LR.js.map
1282
+ //# sourceMappingURL=chunk-K2YN562I.js.map
@@ -333,6 +333,7 @@ __export(schema_exports, {
333
333
  siteDataUsage: () => siteDataUsage,
334
334
  siteDataValidationWindows: () => siteDataValidationWindows,
335
335
  siteDataWorkspaceValidationWindows: () => siteDataWorkspaceValidationWindows,
336
+ siteOpens: () => siteOpens,
336
337
  siteSessionAccess: () => siteSessionAccess,
337
338
  skillConfigConversionReceipts: () => skillConfigConversionReceipts,
338
339
  skillSourceBindings: () => skillSourceBindings,
@@ -8117,6 +8118,28 @@ var siteSessionAccess = pgTable25(
8117
8118
  }).onDelete("cascade")
8118
8119
  ]
8119
8120
  );
8121
+ var siteOpens = pgTable25(
8122
+ "site_opens",
8123
+ {
8124
+ accountId: uuid24("account_id").notNull(),
8125
+ workspaceId: uuid24("workspace_id").notNull(),
8126
+ subjectId: text25("subject_id").notNull(),
8127
+ siteId: uuid24("site_id").notNull(),
8128
+ openedAt: timestamp25("opened_at", { withTimezone: true }).notNull().defaultNow()
8129
+ },
8130
+ (table) => [
8131
+ primaryKey12({ columns: [table.workspaceId, table.subjectId, table.siteId] }),
8132
+ foreignKey({
8133
+ columns: [table.workspaceId, table.accountId],
8134
+ foreignColumns: [workspaces.id, workspaces.accountId]
8135
+ }).onDelete("cascade"),
8136
+ foreignKey({
8137
+ columns: [table.workspaceId, table.siteId],
8138
+ foreignColumns: [workspaceArtifacts.workspaceId, workspaceArtifacts.id]
8139
+ }).onDelete("cascade"),
8140
+ index23("site_opens_site_idx").on(table.workspaceId, table.siteId)
8141
+ ]
8142
+ );
8120
8143
  var workspaceArtifactUploads = pgTable25(
8121
8144
  "workspace_artifact_uploads",
8122
8145
  {
@@ -21347,6 +21370,7 @@ export {
21347
21370
  workspaces,
21348
21371
  workspaceArtifacts,
21349
21372
  siteSessionAccess,
21373
+ siteOpens,
21350
21374
  workspaceArtifactUploads,
21351
21375
  workspaceArtifactVersions,
21352
21376
  workspaceArtifactEvents,
@@ -21624,4 +21648,4 @@ export {
21624
21648
  feedbackSubmissions,
21625
21649
  schema_exports
21626
21650
  };
21627
- //# sourceMappingURL=chunk-6UJX2OXO.js.map
21651
+ //# sourceMappingURL=chunk-KMBU4KDY.js.map