@opengeni/db 0.13.0 → 0.13.1
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.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/provision-roles.d.ts +2 -1
- package/dist/{schema-Bh1Hr7xY.d.ts → schema-D-hyrsFt.d.ts} +15 -15
- package/dist/schema.d.ts +1 -1
- package/package.json +3 -3
- package/src/index.ts +2 -1
|
@@ -4,7 +4,7 @@ import { refreshCodexToken, CodexRateLimitResetCreditsDetails, ResetCreditFetchF
|
|
|
4
4
|
import { SQL } from 'drizzle-orm';
|
|
5
5
|
import { PgDatabase, PgTransactionConfig } from 'drizzle-orm/pg-core';
|
|
6
6
|
import postgres from 'postgres';
|
|
7
|
-
import { s as sessionCommandReceipts, w as workspaces, a as sessions, b as sessionTurns, c as sessionTurnAttempts, d as composerDrafts, n as newSessionDrafts, e as schema, f as enrollmentOsValues, g as enrollmentExposureValues, h as deviceEnrollmentStatusValues, i as enrollmentStatusValues, j as sandboxKindValues, k as sessionRecordingCodecValues, l as sessionRecordingModeValues, m as sessionRecordingStateValues } from './schema-
|
|
7
|
+
import { s as sessionCommandReceipts, w as workspaces, a as sessions, b as sessionTurns, c as sessionTurnAttempts, d as composerDrafts, n as newSessionDrafts, e as schema, f as enrollmentOsValues, g as enrollmentExposureValues, h as deviceEnrollmentStatusValues, i as enrollmentStatusValues, j as sandboxKindValues, k as sessionRecordingCodecValues, l as sessionRecordingModeValues, m as sessionRecordingStateValues } from './schema-D-hyrsFt.js';
|
|
8
8
|
import './migrate.js';
|
|
9
9
|
import { FetchLike, DnsLookup } from '@opengeni/network';
|
|
10
10
|
|
|
@@ -1891,6 +1891,7 @@ type RegistryCapabilityCatalogItemInput = {
|
|
|
1891
1891
|
importBatchId: string;
|
|
1892
1892
|
scopesHint?: string[];
|
|
1893
1893
|
homepageUrl?: string | null;
|
|
1894
|
+
installUrl?: string | null;
|
|
1894
1895
|
tags?: string[];
|
|
1895
1896
|
metadata?: Record<string, unknown>;
|
|
1896
1897
|
};
|
|
@@ -1085,7 +1085,7 @@ declare const nestedAgentDepthConfiguration: drizzle_orm_pg_core.PgTableWithColu
|
|
|
1085
1085
|
tableName: "nested_agent_depth_configuration";
|
|
1086
1086
|
dataType: "string";
|
|
1087
1087
|
columnType: "PgText";
|
|
1088
|
-
data: "
|
|
1088
|
+
data: "default" | "deployment";
|
|
1089
1089
|
driverParam: string;
|
|
1090
1090
|
notNull: true;
|
|
1091
1091
|
hasDefault: false;
|
|
@@ -1097,7 +1097,7 @@ declare const nestedAgentDepthConfiguration: drizzle_orm_pg_core.PgTableWithColu
|
|
|
1097
1097
|
identity: undefined;
|
|
1098
1098
|
generated: undefined;
|
|
1099
1099
|
}, {}, {
|
|
1100
|
-
$type: "
|
|
1100
|
+
$type: "default" | "deployment";
|
|
1101
1101
|
}>;
|
|
1102
1102
|
updatedAt: drizzle_orm_pg_core.PgColumn<{
|
|
1103
1103
|
name: "updated_at";
|
|
@@ -3435,7 +3435,7 @@ declare const slackBotPostOperations: drizzle_orm_pg_core.PgTableWithColumns<{
|
|
|
3435
3435
|
tableName: "slack_bot_post_operations";
|
|
3436
3436
|
dataType: "string";
|
|
3437
3437
|
columnType: "PgText";
|
|
3438
|
-
data: "
|
|
3438
|
+
data: "channel" | "user";
|
|
3439
3439
|
driverParam: string;
|
|
3440
3440
|
notNull: true;
|
|
3441
3441
|
hasDefault: false;
|
|
@@ -3447,7 +3447,7 @@ declare const slackBotPostOperations: drizzle_orm_pg_core.PgTableWithColumns<{
|
|
|
3447
3447
|
identity: undefined;
|
|
3448
3448
|
generated: undefined;
|
|
3449
3449
|
}, {}, {
|
|
3450
|
-
$type: "
|
|
3450
|
+
$type: "channel" | "user";
|
|
3451
3451
|
}>;
|
|
3452
3452
|
targetId: drizzle_orm_pg_core.PgColumn<{
|
|
3453
3453
|
name: "target_id";
|
|
@@ -3488,7 +3488,7 @@ declare const slackBotPostOperations: drizzle_orm_pg_core.PgTableWithColumns<{
|
|
|
3488
3488
|
tableName: "slack_bot_post_operations";
|
|
3489
3489
|
dataType: "string";
|
|
3490
3490
|
columnType: "PgText";
|
|
3491
|
-
data: "
|
|
3491
|
+
data: "provider_started" | "completed";
|
|
3492
3492
|
driverParam: string;
|
|
3493
3493
|
notNull: true;
|
|
3494
3494
|
hasDefault: false;
|
|
@@ -3500,7 +3500,7 @@ declare const slackBotPostOperations: drizzle_orm_pg_core.PgTableWithColumns<{
|
|
|
3500
3500
|
identity: undefined;
|
|
3501
3501
|
generated: undefined;
|
|
3502
3502
|
}, {}, {
|
|
3503
|
-
$type: "
|
|
3503
|
+
$type: "provider_started" | "completed";
|
|
3504
3504
|
}>;
|
|
3505
3505
|
claimHolderId: drizzle_orm_pg_core.PgColumn<{
|
|
3506
3506
|
name: "claim_holder_id";
|
|
@@ -4923,7 +4923,7 @@ declare const sessions: drizzle_orm_pg_core.PgTableWithColumns<{
|
|
|
4923
4923
|
dataType: "json";
|
|
4924
4924
|
columnType: "PgJsonb";
|
|
4925
4925
|
data: {
|
|
4926
|
-
mode: "
|
|
4926
|
+
mode: "workspace_default" | "explicit" | "inherited" | "legacy";
|
|
4927
4927
|
inheritedFromSessionId: string | null;
|
|
4928
4928
|
};
|
|
4929
4929
|
driverParam: unknown;
|
|
@@ -4938,7 +4938,7 @@ declare const sessions: drizzle_orm_pg_core.PgTableWithColumns<{
|
|
|
4938
4938
|
generated: undefined;
|
|
4939
4939
|
}, {}, {
|
|
4940
4940
|
$type: {
|
|
4941
|
-
mode: "
|
|
4941
|
+
mode: "workspace_default" | "explicit" | "inherited" | "legacy";
|
|
4942
4942
|
inheritedFromSessionId: string | null;
|
|
4943
4943
|
};
|
|
4944
4944
|
}>;
|
|
@@ -6257,7 +6257,7 @@ declare const sessionMcpServers: drizzle_orm_pg_core.PgTableWithColumns<{
|
|
|
6257
6257
|
id: string;
|
|
6258
6258
|
kind: "repository";
|
|
6259
6259
|
}[] | undefined;
|
|
6260
|
-
subjectScope?: "
|
|
6260
|
+
subjectScope?: "subject" | "workspace" | undefined;
|
|
6261
6261
|
};
|
|
6262
6262
|
driverParam: unknown;
|
|
6263
6263
|
notNull: false;
|
|
@@ -6281,7 +6281,7 @@ declare const sessionMcpServers: drizzle_orm_pg_core.PgTableWithColumns<{
|
|
|
6281
6281
|
id: string;
|
|
6282
6282
|
kind: "repository";
|
|
6283
6283
|
}[] | undefined;
|
|
6284
|
-
subjectScope?: "
|
|
6284
|
+
subjectScope?: "subject" | "workspace" | undefined;
|
|
6285
6285
|
};
|
|
6286
6286
|
}>;
|
|
6287
6287
|
headersEncrypted: drizzle_orm_pg_core.PgColumn<{
|
|
@@ -14192,7 +14192,7 @@ declare const sandboxWorkspaceMutationAdmissions: drizzle_orm_pg_core.PgTableWit
|
|
|
14192
14192
|
tableName: "sandbox_workspace_mutation_admissions";
|
|
14193
14193
|
dataType: "string";
|
|
14194
14194
|
columnType: "PgText";
|
|
14195
|
-
data: "
|
|
14195
|
+
data: "resolved" | "rejected" | "retained";
|
|
14196
14196
|
driverParam: string;
|
|
14197
14197
|
notNull: false;
|
|
14198
14198
|
hasDefault: false;
|
|
@@ -14591,7 +14591,7 @@ declare const sandboxRetainedProcesses: drizzle_orm_pg_core.PgTableWithColumns<{
|
|
|
14591
14591
|
tableName: "sandbox_retained_processes";
|
|
14592
14592
|
dataType: "string";
|
|
14593
14593
|
columnType: "PgText";
|
|
14594
|
-
data: "active" | "
|
|
14594
|
+
data: "active" | "exited" | "lost";
|
|
14595
14595
|
driverParam: string;
|
|
14596
14596
|
notNull: true;
|
|
14597
14597
|
hasDefault: true;
|
|
@@ -14761,7 +14761,7 @@ declare const sandboxRetainedProcesses: drizzle_orm_pg_core.PgTableWithColumns<{
|
|
|
14761
14761
|
tableName: "sandbox_retained_processes";
|
|
14762
14762
|
dataType: "string";
|
|
14763
14763
|
columnType: "PgText";
|
|
14764
|
-
data: "
|
|
14764
|
+
data: "exited" | "lost";
|
|
14765
14765
|
driverParam: string;
|
|
14766
14766
|
notNull: false;
|
|
14767
14767
|
hasDefault: false;
|
|
@@ -14924,7 +14924,7 @@ declare const sessionRecordings: drizzle_orm_pg_core.PgTableWithColumns<{
|
|
|
14924
14924
|
tableName: "session_recordings";
|
|
14925
14925
|
dataType: "string";
|
|
14926
14926
|
columnType: "PgText";
|
|
14927
|
-
data: "
|
|
14927
|
+
data: "recording" | "finalizing" | "available" | "failed";
|
|
14928
14928
|
driverParam: string;
|
|
14929
14929
|
notNull: true;
|
|
14930
14930
|
hasDefault: false;
|
|
@@ -15239,7 +15239,7 @@ declare const workspaceCaptures: drizzle_orm_pg_core.PgTableWithColumns<{
|
|
|
15239
15239
|
tableName: "workspace_captures";
|
|
15240
15240
|
dataType: "string";
|
|
15241
15241
|
columnType: "PgText";
|
|
15242
|
-
data: "
|
|
15242
|
+
data: "available" | "failed";
|
|
15243
15243
|
driverParam: string;
|
|
15244
15244
|
notNull: true;
|
|
15245
15245
|
hasDefault: true;
|
package/dist/schema.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import 'drizzle-orm';
|
|
2
2
|
import 'drizzle-orm/pg-core';
|
|
3
|
-
export { o as agentRunStates, p as apiKeys, q as auditEvents, r as billingCustomers, t as capabilityCatalogItems, u as capabilityInstallations, v as codexCapacityWaiters, x as codexCredentialLeases, y as codexResetRedemptionAttempts, z as codexRotationSettings, A as codexSubscriptionCredentials, d as composerDrafts, B as connections, C as creditLedgerEntries, D as deviceEnrollmentRequests, h as deviceEnrollmentStatusValues, E as documentBases, F as documentChunks, G as documents, g as enrollmentExposureValues, f as enrollmentOsValues, i as enrollmentStatusValues, H as enrollments, I as fileUploads, J as files, K as githubInstallationRepositories, L as githubInstallations, M as hostExportConfig, N as hostExportConsumers, O as hostExportCursorState, P as hostExportDeadLetters, Q as hostExportOutbox, R as importBatches, S as integrationOauthClients, T as integrationOauthStateNonces, U as knowledgeMemories, V as machineMetricsLatest, W as machineMetricsSeries, X as managedAccounts, Y as nestedAgentDepthConfiguration, n as newSessionDrafts, Z as packInstallations, _ as rigChanges, $ as rigVersions, a0 as rigs, j as sandboxKindValues, a1 as sandboxLeaseHolders, a2 as sandboxLeaseLivenessValues, a3 as sandboxLeases, a4 as sandboxPtySessions, a5 as sandboxRetainedProcessStateValues, a6 as sandboxRetainedProcesses, a7 as sandboxSessionEnvelopes, a8 as sandboxWorkspaceMutationActorKindValues, a9 as sandboxWorkspaceMutationAdmissions, aa as sandboxWorkspaceMutationHolderKindValues, ab as sandboxes, ac as scheduledTaskRuns, ad as scheduledTasks, ae as sessionAttemptInterruptions, s as sessionCommandReceipts, af as sessionEvents, ag as sessionGoals, ah as sessionHistoryItems, ai as sessionHumanInputRequests, aj as sessionListSnapshots, ak as sessionMcpServers, al as sessionPendingToolCalls, am as sessionPins, k as sessionRecordingCodecValues, l as sessionRecordingModeValues, m as sessionRecordingStateValues, an as sessionRecordings, ao as sessionSpawnDenials, ap as sessionSystemUpdateOutbox, aq as sessionSystemUpdates, c as sessionTurnAttempts, b as sessionTurns, ar as sessionWorkflowWakeOutbox, a as sessions, as as slackBotPostOperations, at as socialConnections, au as socialPosts, av as stripeWebhookEvents, aw as usageEvents, ax as workspaceCaptures, ay as workspaceControlEvents, az as workspaceInferenceControls, aA as workspaceInstructionPolicyActivationEvents, aB as workspaceInstructionPolicyHeads, aC as workspaceInstructionPolicyRevisions, aD as workspaceMemberships, aE as workspaceModelPolicies, aF as workspacePacks, aG as workspaceSessionActivityRevisions, aH as workspaceVariableSetVariables, aI as workspaceVariableSets, w as workspaces } from './schema-
|
|
3
|
+
export { o as agentRunStates, p as apiKeys, q as auditEvents, r as billingCustomers, t as capabilityCatalogItems, u as capabilityInstallations, v as codexCapacityWaiters, x as codexCredentialLeases, y as codexResetRedemptionAttempts, z as codexRotationSettings, A as codexSubscriptionCredentials, d as composerDrafts, B as connections, C as creditLedgerEntries, D as deviceEnrollmentRequests, h as deviceEnrollmentStatusValues, E as documentBases, F as documentChunks, G as documents, g as enrollmentExposureValues, f as enrollmentOsValues, i as enrollmentStatusValues, H as enrollments, I as fileUploads, J as files, K as githubInstallationRepositories, L as githubInstallations, M as hostExportConfig, N as hostExportConsumers, O as hostExportCursorState, P as hostExportDeadLetters, Q as hostExportOutbox, R as importBatches, S as integrationOauthClients, T as integrationOauthStateNonces, U as knowledgeMemories, V as machineMetricsLatest, W as machineMetricsSeries, X as managedAccounts, Y as nestedAgentDepthConfiguration, n as newSessionDrafts, Z as packInstallations, _ as rigChanges, $ as rigVersions, a0 as rigs, j as sandboxKindValues, a1 as sandboxLeaseHolders, a2 as sandboxLeaseLivenessValues, a3 as sandboxLeases, a4 as sandboxPtySessions, a5 as sandboxRetainedProcessStateValues, a6 as sandboxRetainedProcesses, a7 as sandboxSessionEnvelopes, a8 as sandboxWorkspaceMutationActorKindValues, a9 as sandboxWorkspaceMutationAdmissions, aa as sandboxWorkspaceMutationHolderKindValues, ab as sandboxes, ac as scheduledTaskRuns, ad as scheduledTasks, ae as sessionAttemptInterruptions, s as sessionCommandReceipts, af as sessionEvents, ag as sessionGoals, ah as sessionHistoryItems, ai as sessionHumanInputRequests, aj as sessionListSnapshots, ak as sessionMcpServers, al as sessionPendingToolCalls, am as sessionPins, k as sessionRecordingCodecValues, l as sessionRecordingModeValues, m as sessionRecordingStateValues, an as sessionRecordings, ao as sessionSpawnDenials, ap as sessionSystemUpdateOutbox, aq as sessionSystemUpdates, c as sessionTurnAttempts, b as sessionTurns, ar as sessionWorkflowWakeOutbox, a as sessions, as as slackBotPostOperations, at as socialConnections, au as socialPosts, av as stripeWebhookEvents, aw as usageEvents, ax as workspaceCaptures, ay as workspaceControlEvents, az as workspaceInferenceControls, aA as workspaceInstructionPolicyActivationEvents, aB as workspaceInstructionPolicyHeads, aC as workspaceInstructionPolicyRevisions, aD as workspaceMemberships, aE as workspaceModelPolicies, aF as workspacePacks, aG as workspaceSessionActivityRevisions, aH as workspaceVariableSetVariables, aI as workspaceVariableSets, w as workspaces } from './schema-D-hyrsFt.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeni/db",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.1",
|
|
4
4
|
"description": "OpenGeni persistence: Drizzle schema, RLS-scoped query layer, the SQL migration runner, and role provisioning.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@opengeni/codex": "^0.2.7",
|
|
54
|
-
"@opengeni/config": "^0.7.
|
|
55
|
-
"@opengeni/contracts": "^0.20.
|
|
54
|
+
"@opengeni/config": "^0.7.8",
|
|
55
|
+
"@opengeni/contracts": "^0.20.1",
|
|
56
56
|
"@opengeni/network": "^0.1.1",
|
|
57
57
|
"drizzle-orm": "^0.45.2",
|
|
58
58
|
"postgres": "^3.4.7"
|
package/src/index.ts
CHANGED
|
@@ -3328,6 +3328,7 @@ export type RegistryCapabilityCatalogItemInput = {
|
|
|
3328
3328
|
importBatchId: string;
|
|
3329
3329
|
scopesHint?: string[];
|
|
3330
3330
|
homepageUrl?: string | null;
|
|
3331
|
+
installUrl?: string | null;
|
|
3331
3332
|
tags?: string[];
|
|
3332
3333
|
metadata?: Record<string, unknown>;
|
|
3333
3334
|
};
|
|
@@ -4196,7 +4197,7 @@ export async function upsertRegistryCapabilityCatalogItem(
|
|
|
4196
4197
|
tags: input.tags ?? ["mcp", "integration", input.tier],
|
|
4197
4198
|
homepageUrl: input.homepageUrl ?? `https://${input.providerDomain}`,
|
|
4198
4199
|
endpointUrl: input.mcpUrl,
|
|
4199
|
-
installUrl: input.homepageUrl ?? `https://${input.providerDomain}`,
|
|
4200
|
+
installUrl: input.installUrl ?? input.homepageUrl ?? `https://${input.providerDomain}`,
|
|
4200
4201
|
authModel: input.authKind === "none" ? null : "credential_ref",
|
|
4201
4202
|
providerDomain: input.providerDomain,
|
|
4202
4203
|
surfaceType: "mcp",
|