@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.
- package/dist/automations.d.ts +4 -0
- package/dist/canonical-human-identities.js +3 -3
- package/dist/{chunk-U4WPPEBH.js → chunk-3ZMN4EXC.js} +2 -2
- package/dist/{chunk-4NAR7FBA.js → chunk-6FIVOJ3V.js} +5 -1
- package/dist/{chunk-4NAR7FBA.js.map → chunk-6FIVOJ3V.js.map} +1 -1
- package/dist/{chunk-O56DM5GZ.js → chunk-DXJ2WY6W.js} +88 -1
- package/dist/chunk-DXJ2WY6W.js.map +1 -0
- package/dist/{chunk-S3TDDCS2.js → chunk-JP6IYGYI.js} +3 -3
- package/dist/{chunk-SZAWDXQC.js → chunk-JS3AWDKZ.js} +3 -3
- package/dist/{chunk-DZCYW2WT.js → chunk-LHKB62GC.js} +2 -2
- package/dist/{chunk-US4IS6IV.js → chunk-QL4AHBYD.js} +2 -2
- package/dist/{chunk-5NNCGFQY.js → chunk-VDXHLVDE.js} +2 -2
- package/dist/{chunk-F6PBS6WE.js → chunk-ZTSJPFDH.js} +2 -2
- package/dist/editable-artifact-durable-export.js +2 -2
- package/dist/editable-artifacts.js +3 -3
- package/dist/index.d.ts +105 -2
- package/dist/index.js +6241 -5241
- package/dist/index.js.map +1 -1
- package/dist/managed-auth-session-sets.js +3 -3
- package/dist/model-catalog.d.ts +153 -0
- package/dist/pr-review.d.ts +9 -0
- package/dist/provision-roles.js +1 -1
- package/dist/runtime-posture.d.ts +4 -4
- package/dist/schema.d.ts +344 -2
- package/dist/schema.js +5 -1
- package/dist/session-background-commands.js +3 -3
- package/dist/session-control.d.ts +35 -0
- package/dist/session-queue-commands.d.ts +17 -0
- package/dist/session-tenancy.js +3 -3
- package/dist/video-generation.js +3 -3
- package/dist/xai-subscription.d.ts +8 -0
- package/drizzle/0387_bound_host_export_session_payloads.sql +165 -0
- package/drizzle/0388_sandbox_provider_deadline_interactions.sql +491 -0
- package/drizzle/0389_model_catalog_and_gateway_custom_models.sql +241 -0
- package/package.json +6 -6
- package/src/automations.ts +9 -1
- package/src/index.ts +850 -117
- package/src/insights.ts +21 -7
- package/src/model-catalog.ts +682 -0
- package/src/pr-review.ts +19 -0
- package/src/runtime-posture.ts +4 -0
- package/src/schema.ts +98 -2
- package/src/session-control.ts +170 -0
- package/src/session-queue-commands.ts +157 -82
- package/src/xai-subscription.ts +66 -14
- package/dist/chunk-O56DM5GZ.js.map +0 -1
- /package/dist/{chunk-U4WPPEBH.js.map → chunk-3ZMN4EXC.js.map} +0 -0
- /package/dist/{chunk-S3TDDCS2.js.map → chunk-JP6IYGYI.js.map} +0 -0
- /package/dist/{chunk-SZAWDXQC.js.map → chunk-JS3AWDKZ.js.map} +0 -0
- /package/dist/{chunk-DZCYW2WT.js.map → chunk-LHKB62GC.js.map} +0 -0
- /package/dist/{chunk-US4IS6IV.js.map → chunk-QL4AHBYD.js.map} +0 -0
- /package/dist/{chunk-5NNCGFQY.js.map → chunk-VDXHLVDE.js.map} +0 -0
- /package/dist/{chunk-F6PBS6WE.js.map → chunk-ZTSJPFDH.js.map} +0 -0
|
@@ -68,6 +68,7 @@ __export(schema_exports, {
|
|
|
68
68
|
connectorActionPolicies: () => connectorActionPolicies,
|
|
69
69
|
connectorActionRequests: () => connectorActionRequests,
|
|
70
70
|
creditLedgerEntries: () => creditLedgerEntries,
|
|
71
|
+
deploymentModelCatalog: () => deploymentModelCatalog,
|
|
71
72
|
deviceEnrollmentRequests: () => deviceEnrollmentRequests,
|
|
72
73
|
deviceEnrollmentStatusValues: () => deviceEnrollmentStatusValues,
|
|
73
74
|
documentBases: () => documentBases,
|
|
@@ -316,6 +317,7 @@ __export(schema_exports, {
|
|
|
316
317
|
workspaceCaptures: () => workspaceCaptures,
|
|
317
318
|
workspaceCodexSubscriptionPreferences: () => workspaceCodexSubscriptionPreferences,
|
|
318
319
|
workspaceControlEvents: () => workspaceControlEvents,
|
|
320
|
+
workspaceGatewayCustomModels: () => workspaceGatewayCustomModels,
|
|
319
321
|
workspaceInferenceControls: () => workspaceInferenceControls,
|
|
320
322
|
workspaceInstructionPolicyActivationEvents: () => workspaceInstructionPolicyActivationEvents,
|
|
321
323
|
workspaceInstructionPolicyDeactivationEvents: () => workspaceInstructionPolicyDeactivationEvents,
|
|
@@ -12429,6 +12431,13 @@ var sessionCommandReceipts = pgTable19(
|
|
|
12429
12431
|
table.targetSessionId,
|
|
12430
12432
|
table.createdAt
|
|
12431
12433
|
),
|
|
12434
|
+
promptActorOperation: index19("session_command_receipts_prompt_actor_operation_idx").on(
|
|
12435
|
+
table.workspaceId,
|
|
12436
|
+
table.actorType,
|
|
12437
|
+
table.actorSubjectId,
|
|
12438
|
+
table.actorAttemptId,
|
|
12439
|
+
table.operationKey
|
|
12440
|
+
).where(sql16`${table.action} in ('prompt.send', 'prompt.steer')`),
|
|
12432
12441
|
goalUpdateOperation: uniqueIndex19("session_command_receipts_goal_update_operation_uq").on(table.workspaceId, table.action, table.targetSessionId, table.operationKey).where(sql16`${table.action} = 'goal.update'`),
|
|
12433
12442
|
actorValid: check11(
|
|
12434
12443
|
"session_command_receipts_actor_check",
|
|
@@ -17176,6 +17185,82 @@ var rigChanges = pgTable19(
|
|
|
17176
17185
|
workspaceStatus: index19("rig_changes_workspace_status_idx").on(table.workspaceId, table.status)
|
|
17177
17186
|
})
|
|
17178
17187
|
);
|
|
17188
|
+
var deploymentModelCatalog = pgTable19(
|
|
17189
|
+
"deployment_model_catalog",
|
|
17190
|
+
{
|
|
17191
|
+
singleton: boolean11("singleton").primaryKey().notNull().default(true),
|
|
17192
|
+
document: jsonb15("document").$type().notNull(),
|
|
17193
|
+
version: bigint14("version", { mode: "number" }).notNull().default(1),
|
|
17194
|
+
updatedAt: timestamp19("updated_at", { withTimezone: true }).notNull().defaultNow()
|
|
17195
|
+
},
|
|
17196
|
+
(table) => ({
|
|
17197
|
+
singletonCheck: check11("deployment_model_catalog_singleton_chk", sql16`${table.singleton}`),
|
|
17198
|
+
documentCheck: check11(
|
|
17199
|
+
"deployment_model_catalog_document_chk",
|
|
17200
|
+
sql16`jsonb_typeof(${table.document}) = 'object'`
|
|
17201
|
+
),
|
|
17202
|
+
versionCheck: check11("deployment_model_catalog_version_chk", sql16`${table.version} > 0`)
|
|
17203
|
+
})
|
|
17204
|
+
);
|
|
17205
|
+
var workspaceGatewayCustomModels = pgTable19(
|
|
17206
|
+
"workspace_gateway_custom_models",
|
|
17207
|
+
{
|
|
17208
|
+
id: uuid19("id").primaryKey().defaultRandom(),
|
|
17209
|
+
accountId: uuid19("account_id").notNull().references(() => managedAccounts.id, { onDelete: "cascade" }),
|
|
17210
|
+
workspaceId: uuid19("workspace_id").notNull().references(() => workspaces.id, { onDelete: "cascade" }),
|
|
17211
|
+
providerKind: text19("provider_kind").$type().notNull(),
|
|
17212
|
+
upstreamModelId: text19("upstream_model_id").notNull(),
|
|
17213
|
+
label: text19("label"),
|
|
17214
|
+
version: integer18("version").notNull().default(1),
|
|
17215
|
+
createOperationId: uuid19("create_operation_id").notNull(),
|
|
17216
|
+
createRequestHash: text19("create_request_hash").notNull(),
|
|
17217
|
+
deleteOperationId: uuid19("delete_operation_id"),
|
|
17218
|
+
deleteRequestHash: text19("delete_request_hash"),
|
|
17219
|
+
createdBySubjectId: text19("created_by_subject_id").notNull(),
|
|
17220
|
+
retiredAt: timestamp19("retired_at", { withTimezone: true }),
|
|
17221
|
+
createdAt: timestamp19("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
17222
|
+
updatedAt: timestamp19("updated_at", { withTimezone: true }).notNull().defaultNow()
|
|
17223
|
+
},
|
|
17224
|
+
(table) => ({
|
|
17225
|
+
workspaceAccountFk: foreignKey({
|
|
17226
|
+
name: "workspace_gateway_custom_models_workspace_account_fk",
|
|
17227
|
+
columns: [table.workspaceId, table.accountId],
|
|
17228
|
+
foreignColumns: [workspaces.id, workspaces.accountId]
|
|
17229
|
+
}).onDelete("cascade"),
|
|
17230
|
+
workspaceUpstream: uniqueIndex19("workspace_gateway_custom_models_workspace_upstream_uq").on(table.workspaceId, table.providerKind, table.upstreamModelId).where(sql16`${table.retiredAt} is null`),
|
|
17231
|
+
createOperation: uniqueIndex19("workspace_gateway_custom_models_create_operation_uq").on(
|
|
17232
|
+
table.workspaceId,
|
|
17233
|
+
table.providerKind,
|
|
17234
|
+
table.createOperationId
|
|
17235
|
+
),
|
|
17236
|
+
deleteOperation: uniqueIndex19("workspace_gateway_custom_models_delete_operation_uq").on(table.workspaceId, table.providerKind, table.deleteOperationId).where(sql16`${table.deleteOperationId} is not null`),
|
|
17237
|
+
providerKindCheck: check11(
|
|
17238
|
+
"workspace_gateway_custom_models_provider_kind_chk",
|
|
17239
|
+
sql16`${table.providerKind} in ('vercel_gateway', 'openrouter')`
|
|
17240
|
+
),
|
|
17241
|
+
upstreamCheck: check11(
|
|
17242
|
+
"workspace_gateway_custom_models_upstream_chk",
|
|
17243
|
+
sql16`octet_length(${table.upstreamModelId}) between 1 and 238 and ${table.upstreamModelId} ~ '^[!-~]+$' and ${table.upstreamModelId} !~ '[|]'`
|
|
17244
|
+
),
|
|
17245
|
+
labelCheck: check11(
|
|
17246
|
+
"workspace_gateway_custom_models_label_chk",
|
|
17247
|
+
sql16`${table.label} is null or (octet_length(${table.label}) between 1 and 128 and ${table.label} !~ '[\r\n|]')`
|
|
17248
|
+
),
|
|
17249
|
+
actorCheck: check11(
|
|
17250
|
+
"workspace_gateway_custom_models_actor_chk",
|
|
17251
|
+
sql16`octet_length(${table.createdBySubjectId}) between 1 and 1024`
|
|
17252
|
+
),
|
|
17253
|
+
versionCheck: check11("workspace_gateway_custom_models_version_chk", sql16`${table.version} > 0`),
|
|
17254
|
+
createHashCheck: check11(
|
|
17255
|
+
"workspace_gateway_custom_models_create_hash_chk",
|
|
17256
|
+
sql16`${table.createRequestHash} ~ '^[a-f0-9]{64}$'`
|
|
17257
|
+
),
|
|
17258
|
+
deleteReceiptCheck: check11(
|
|
17259
|
+
"workspace_gateway_custom_models_delete_receipt_chk",
|
|
17260
|
+
sql16`(${table.deleteOperationId} is null and ${table.deleteRequestHash} is null) or (${table.deleteOperationId} is not null and ${table.deleteRequestHash} ~ '^[a-f0-9]{64}$' and ${table.retiredAt} is not null)`
|
|
17261
|
+
)
|
|
17262
|
+
})
|
|
17263
|
+
);
|
|
17179
17264
|
|
|
17180
17265
|
export {
|
|
17181
17266
|
LOSSLESS_CONTENT_CODEC_VERSION,
|
|
@@ -17523,6 +17608,8 @@ export {
|
|
|
17523
17608
|
rigs,
|
|
17524
17609
|
rigVersions,
|
|
17525
17610
|
rigChanges,
|
|
17611
|
+
deploymentModelCatalog,
|
|
17612
|
+
workspaceGatewayCustomModels,
|
|
17526
17613
|
schema_exports
|
|
17527
17614
|
};
|
|
17528
|
-
//# sourceMappingURL=chunk-
|
|
17615
|
+
//# sourceMappingURL=chunk-DXJ2WY6W.js.map
|