@opengeni/db 1.1.0 → 1.2.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/canonical-human-identities.js +3 -3
- package/dist/capability-reconciliation.js +2 -2
- package/dist/{chunk-J4WFOVBV.js → chunk-3GAR5UN3.js} +2 -2
- package/dist/{chunk-Z5HJXH3X.js → chunk-3TGYFFZR.js} +2 -2
- package/dist/{chunk-GLA5YCQS.js → chunk-6EIEGHPK.js} +4 -4
- package/dist/{chunk-BLUQG54M.js → chunk-CONWNUSL.js} +2 -2
- package/dist/{chunk-EKXCF3FH.js → chunk-CYP72JTQ.js} +11 -4
- package/dist/{chunk-EKXCF3FH.js.map → chunk-CYP72JTQ.js.map} +1 -1
- package/dist/{chunk-VOB6TXSJ.js → chunk-FWQNHNOU.js} +39 -2
- package/dist/chunk-FWQNHNOU.js.map +1 -0
- package/dist/{chunk-7Z7ALFRE.js → chunk-GDN5TSZP.js} +2 -2
- package/dist/{chunk-M3SWH4MU.js → chunk-JICUP7ZR.js} +2 -2
- package/dist/{chunk-KJVOBLFC.js → chunk-JLVWBIEM.js} +3 -3
- package/dist/{chunk-BZV5ZDRY.js → chunk-LXPFNG4L.js} +2 -2
- package/dist/{chunk-SKYRM7R7.js → chunk-O2Y5E5M3.js} +68 -32
- package/dist/chunk-O2Y5E5M3.js.map +1 -0
- package/dist/{chunk-M2YGXCCQ.js → chunk-QFJNEXFL.js} +2 -2
- package/dist/{chunk-CIGHXFPD.js → chunk-UCIMHNII.js} +101 -21
- package/dist/chunk-UCIMHNII.js.map +1 -0
- package/dist/{chunk-ODKYBA3C.js → chunk-VDPCIFKL.js} +5 -5
- package/dist/{chunk-T5NHDEZW.js → chunk-YOYILDLY.js} +26 -1
- package/dist/chunk-YOYILDLY.js.map +1 -0
- package/dist/connect-attempts.js +3 -3
- package/dist/credit-balances.d.ts +18 -0
- package/dist/credit-promotion-policy.d.ts +10 -0
- package/dist/editable-artifact-durable-export.js +2 -2
- package/dist/editable-artifacts.js +3 -3
- package/dist/index.d.ts +21 -5
- package/dist/index.js +2369 -2247
- package/dist/index.js.map +1 -1
- package/dist/managed-auth-session-sets.js +3 -3
- package/dist/managed-user-setup.d.ts +1 -0
- package/dist/mcp-operations.js +2 -2
- package/dist/organization-integration-policy.js +3 -3
- package/dist/organization-membership-lifecycle.d.ts +1 -0
- package/dist/persistence-errors.d.ts +9 -6
- package/dist/provision-roles.js +1 -1
- package/dist/retained-provider-commands.js +6 -6
- package/dist/runtime-posture.d.ts +4 -4
- package/dist/schema.d.ts +121 -2
- package/dist/schema.js +3 -1
- package/dist/session-background-commands.js +4 -4
- package/dist/session-command-output.js +5 -5
- package/dist/session-event-slices.js +3 -3
- package/dist/session-mcp-credential-rotation.js +5 -5
- package/dist/session-tenancy.js +3 -3
- package/dist/video-generation.js +3 -3
- package/dist/workspace-tool-defaults.js +4 -4
- package/drizzle/0613_model_scoped_promotional_credits.sql +238 -0
- package/drizzle/0614_quiescence_command_containment.sql +7 -0
- package/drizzle/0615_credit_promotion_policy_validation.sql +63 -0
- package/package.json +7 -7
- package/src/credit-balances.ts +109 -0
- package/src/credit-promotion-policy.ts +12 -0
- package/src/database.ts +81 -42
- package/src/index.ts +201 -60
- package/src/managed-user-setup.ts +8 -0
- package/src/organization-membership-lifecycle.ts +8 -0
- package/src/persistence-errors.ts +17 -6
- package/src/provision-roles.ts +9 -0
- package/src/runtime-posture.ts +22 -0
- package/src/schema.ts +40 -1
- package/src/video-generation.ts +2 -7
- package/dist/chunk-CIGHXFPD.js.map +0 -1
- package/dist/chunk-SKYRM7R7.js.map +0 -1
- package/dist/chunk-T5NHDEZW.js.map +0 -1
- package/dist/chunk-VOB6TXSJ.js.map +0 -1
- /package/dist/{chunk-J4WFOVBV.js.map → chunk-3GAR5UN3.js.map} +0 -0
- /package/dist/{chunk-Z5HJXH3X.js.map → chunk-3TGYFFZR.js.map} +0 -0
- /package/dist/{chunk-GLA5YCQS.js.map → chunk-6EIEGHPK.js.map} +0 -0
- /package/dist/{chunk-BLUQG54M.js.map → chunk-CONWNUSL.js.map} +0 -0
- /package/dist/{chunk-7Z7ALFRE.js.map → chunk-GDN5TSZP.js.map} +0 -0
- /package/dist/{chunk-M3SWH4MU.js.map → chunk-JICUP7ZR.js.map} +0 -0
- /package/dist/{chunk-KJVOBLFC.js.map → chunk-JLVWBIEM.js.map} +0 -0
- /package/dist/{chunk-BZV5ZDRY.js.map → chunk-LXPFNG4L.js.map} +0 -0
- /package/dist/{chunk-M2YGXCCQ.js.map → chunk-QFJNEXFL.js.map} +0 -0
- /package/dist/{chunk-ODKYBA3C.js.map → chunk-VDPCIFKL.js.map} +0 -0
|
@@ -11,9 +11,9 @@ import {
|
|
|
11
11
|
getCanonicalHumanIdentityProjection,
|
|
12
12
|
synchronizeCanonicalHumanLoginBindings,
|
|
13
13
|
validateCanonicalHumanSession
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-GDN5TSZP.js";
|
|
15
|
+
import "./chunk-O2Y5E5M3.js";
|
|
16
|
+
import "./chunk-FWQNHNOU.js";
|
|
17
17
|
import "./chunk-P7YDM2RI.js";
|
|
18
18
|
import "./chunk-PZ5AY32C.js";
|
|
19
19
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
nestedPostgresSqlState,
|
|
3
3
|
rawRows
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-O2Y5E5M3.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-
|
|
299
|
+
//# sourceMappingURL=chunk-3GAR5UN3.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
rlsContextForWorkspace,
|
|
5
5
|
withWorkspaceSubjectRls,
|
|
6
6
|
withWorkspaceSubjectSessionActivityRls
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-O2Y5E5M3.js";
|
|
8
8
|
|
|
9
9
|
// src/session-tenancy.ts
|
|
10
10
|
import { createHash } from "crypto";
|
|
@@ -479,4 +479,4 @@ export {
|
|
|
479
479
|
forkSessionContent,
|
|
480
480
|
replayAppliedSessionFork
|
|
481
481
|
};
|
|
482
|
-
//# sourceMappingURL=chunk-
|
|
482
|
+
//# sourceMappingURL=chunk-3TGYFFZR.js.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
lockSessionEventWriteRows
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CYP72JTQ.js";
|
|
4
4
|
import {
|
|
5
5
|
withSessionActivityRlsContext
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-O2Y5E5M3.js";
|
|
7
7
|
import {
|
|
8
8
|
sandboxRetainedProcesses,
|
|
9
9
|
sessionBackgroundCommands,
|
|
10
10
|
sessionEvents,
|
|
11
11
|
sessions
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-FWQNHNOU.js";
|
|
13
13
|
import {
|
|
14
14
|
fromPostgresLosslessJson,
|
|
15
15
|
withLosslessContentWriteVersion
|
|
@@ -140,4 +140,4 @@ async function appendSessionCommandOutput(db, input) {
|
|
|
140
140
|
export {
|
|
141
141
|
appendSessionCommandOutput
|
|
142
142
|
};
|
|
143
|
-
//# sourceMappingURL=chunk-
|
|
143
|
+
//# sourceMappingURL=chunk-6EIEGHPK.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
rawRows,
|
|
3
3
|
withWorkspaceSubjectRls
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-O2Y5E5M3.js";
|
|
5
5
|
|
|
6
6
|
// src/connect-attempts.ts
|
|
7
7
|
import { createHash } from "crypto";
|
|
@@ -216,4 +216,4 @@ export {
|
|
|
216
216
|
claimConnectOperation,
|
|
217
217
|
finishConnectOperation
|
|
218
218
|
};
|
|
219
|
-
//# sourceMappingURL=chunk-
|
|
219
|
+
//# sourceMappingURL=chunk-CONWNUSL.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cancelUnacceptedVideoGenerationsForToolCallsInTransaction
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UCIMHNII.js";
|
|
4
4
|
import {
|
|
5
5
|
external_exports
|
|
6
6
|
} from "./chunk-4UJCXBR2.js";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
withSessionActivityRlsContext,
|
|
15
15
|
withWorkspaceRls,
|
|
16
16
|
withWorkspaceSubjectRls
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-O2Y5E5M3.js";
|
|
18
18
|
import {
|
|
19
19
|
auditEvents,
|
|
20
20
|
codexCapacityWaiters,
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
workspaceInferenceControls,
|
|
42
42
|
workspaceMemberships,
|
|
43
43
|
workspaces
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-FWQNHNOU.js";
|
|
45
45
|
import {
|
|
46
46
|
LOSSLESS_CONTENT_CODEC_VERSION,
|
|
47
47
|
fromPostgresLosslessJson,
|
|
@@ -666,6 +666,13 @@ async function createManagedOrganization(db, input) {
|
|
|
666
666
|
${input.trialCreditsEnabled === true ? "on" : "off"}, true
|
|
667
667
|
)`
|
|
668
668
|
);
|
|
669
|
+
await rawRows(
|
|
670
|
+
tx,
|
|
671
|
+
sql3`select pg_catalog.set_config(
|
|
672
|
+
'opengeni.signup_credit_model_ids',
|
|
673
|
+
${input.trialCreditModelIds ? JSON.stringify(input.trialCreditModelIds) : ""}, true
|
|
674
|
+
)`
|
|
675
|
+
);
|
|
669
676
|
const [row] = await rawRows(
|
|
670
677
|
tx,
|
|
671
678
|
sql3`select create_managed_organization(
|
|
@@ -6416,4 +6423,4 @@ export {
|
|
|
6416
6423
|
setWorkspacePauseTimerInTransaction,
|
|
6417
6424
|
fireWorkspacePauseTimerInTransaction
|
|
6418
6425
|
};
|
|
6419
|
-
//# sourceMappingURL=chunk-
|
|
6426
|
+
//# sourceMappingURL=chunk-CYP72JTQ.js.map
|