@opengeni/db 0.17.1 → 0.18.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/{chunk-TLAC622R.js → chunk-YKWJ7QJ2.js} +11 -1
- package/dist/chunk-YKWJ7QJ2.js.map +1 -0
- package/dist/index.d.ts +70 -2
- package/dist/index.js +176 -6
- package/dist/index.js.map +1 -1
- package/dist/schema.d.ts +87 -2
- package/dist/schema.js +1 -1
- package/drizzle/0141_social_connection_credentials.sql +8 -0
- package/drizzle/0151_slack_delivery_backoff.sql +134 -0
- package/package.json +3 -3
- package/src/index.ts +294 -6
- package/src/schema.ts +10 -0
- package/dist/chunk-TLAC622R.js.map +0 -1
|
@@ -1072,6 +1072,7 @@ var slackInteractionInbox = pgTable3(
|
|
|
1072
1072
|
claimHolderId: uuid3("claim_holder_id"),
|
|
1073
1073
|
claimExpiresAt: timestamp3("claim_expires_at", { withTimezone: true }),
|
|
1074
1074
|
attemptCount: integer2("attempt_count").notNull().default(0),
|
|
1075
|
+
retryAt: timestamp3("retry_at", { withTimezone: true }),
|
|
1075
1076
|
lastErrorCode: text3("last_error_code"),
|
|
1076
1077
|
processedAt: timestamp3("processed_at", { withTimezone: true }),
|
|
1077
1078
|
createdAt: timestamp3("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
@@ -1088,6 +1089,7 @@ var slackInteractionInbox = pgTable3(
|
|
|
1088
1089
|
),
|
|
1089
1090
|
pending: index3("slack_interaction_inbox_pending_idx").on(
|
|
1090
1091
|
table.status,
|
|
1092
|
+
table.retryAt,
|
|
1091
1093
|
table.createdAt,
|
|
1092
1094
|
table.id
|
|
1093
1095
|
)
|
|
@@ -1116,6 +1118,9 @@ var slackInteractions = pgTable3(
|
|
|
1116
1118
|
deliveryClaimExpiresAt: timestamp3("delivery_claim_expires_at", {
|
|
1117
1119
|
withTimezone: true
|
|
1118
1120
|
}),
|
|
1121
|
+
deliveryAttemptCount: integer2("delivery_attempt_count").notNull().default(0),
|
|
1122
|
+
deliveryRetryAt: timestamp3("delivery_retry_at", { withTimezone: true }),
|
|
1123
|
+
deliveryLastErrorCode: text3("delivery_last_error_code"),
|
|
1119
1124
|
ackSlackMessageTs: text3("ack_slack_message_ts"),
|
|
1120
1125
|
progressCount: integer2("progress_count").notNull().default(0),
|
|
1121
1126
|
terminalDeliveryState: text3("terminal_delivery_state").$type().notNull().default("open"),
|
|
@@ -1136,6 +1141,7 @@ var slackInteractions = pgTable3(
|
|
|
1136
1141
|
workspaceSession: uniqueIndex3("slack_interactions_workspace_session_uq").on(table.workspaceId, table.sessionId).where(sql3`${table.sessionId} is not null`),
|
|
1137
1142
|
delivery: index3("slack_interactions_delivery_idx").on(
|
|
1138
1143
|
table.terminalDeliveryState,
|
|
1144
|
+
table.deliveryRetryAt,
|
|
1139
1145
|
table.updatedAt,
|
|
1140
1146
|
table.id
|
|
1141
1147
|
)
|
|
@@ -4735,6 +4741,10 @@ var socialConnections = pgTable3(
|
|
|
4735
4741
|
status: text3("status").notNull().default("connected"),
|
|
4736
4742
|
scopes: jsonb2("scopes").$type().notNull().default([]),
|
|
4737
4743
|
credentialRef: text3("credential_ref"),
|
|
4744
|
+
// AES-256-GCM envelope (environment-crypto v1 format) holding the OAuth
|
|
4745
|
+
// token bundle. Never exposed through contracts or MCP tools; only the
|
|
4746
|
+
// host-side social API client decrypts it.
|
|
4747
|
+
credentialEncrypted: text3("credential_encrypted"),
|
|
4738
4748
|
tokenMetadata: jsonb2("token_metadata").$type().notNull().default({}),
|
|
4739
4749
|
metadata: jsonb2("metadata").$type().notNull().default({}),
|
|
4740
4750
|
createdAt: timestamp3("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
@@ -4987,4 +4997,4 @@ export {
|
|
|
4987
4997
|
rigChanges,
|
|
4988
4998
|
schema_exports
|
|
4989
4999
|
};
|
|
4990
|
-
//# sourceMappingURL=chunk-
|
|
5000
|
+
//# sourceMappingURL=chunk-YKWJ7QJ2.js.map
|