@opengeni/db 1.3.0 → 1.4.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-LRSIODCQ.js → chunk-27T4AP25.js} +2 -2
- package/dist/{chunk-VQX54TK3.js → chunk-3WUCM7YF.js} +3 -3
- package/dist/{chunk-BRVBLQAL.js → chunk-AMK3FNOW.js} +4 -4
- package/dist/{chunk-AQMH2ZEH.js → chunk-BA52ITIY.js} +2 -2
- package/dist/{chunk-6S5T6FSP.js → chunk-CKDHKQS4.js} +5 -5
- package/dist/{chunk-HYBQABBJ.js → chunk-EFANLEWI.js} +2 -2
- package/dist/{chunk-PNWWNEDM.js → chunk-EMYA6XNE.js} +2 -2
- package/dist/{chunk-6UKNJ43T.js → chunk-GC5GUTV3.js} +2 -2
- package/dist/{chunk-DSNEIW5E.js → chunk-JL6TBB76.js} +2 -1
- package/dist/chunk-JL6TBB76.js.map +1 -0
- package/dist/{chunk-OEFNTGR3.js → chunk-NT7OGKYX.js} +4 -4
- package/dist/{chunk-BID3CNN3.js → chunk-T3CYF3DH.js} +3 -3
- package/dist/{chunk-3XHC5KC5.js → chunk-TRUEH4I2.js} +2 -2
- package/dist/{chunk-7S3O33NM.js → chunk-UQELJ6OM.js} +2 -2
- package/dist/{chunk-OI6YZXTU.js → chunk-VCHK4D6S.js} +2 -2
- package/dist/connect-attempts.js +3 -3
- package/dist/connection-metadata.d.ts +416 -0
- package/dist/editable-artifact-durable-export.js +2 -2
- package/dist/editable-artifacts.js +3 -3
- package/dist/index.d.ts +28 -7
- package/dist/index.js +10304 -9877
- package/dist/index.js.map +1 -1
- package/dist/legacy-tool-action-reviews.d.ts +75 -0
- package/dist/managed-auth-session-sets.js +3 -3
- package/dist/mcp-operations.js +2 -2
- package/dist/organization-integration-policy.js +3 -3
- package/dist/organization-slack-bots.d.ts +1 -1
- package/dist/retained-provider-commands.js +6 -6
- package/dist/schema.js +1 -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-realtime-billing.d.ts +48 -0
- package/dist/session-realtime.d.ts +8 -2
- package/dist/session-tenancy.js +3 -3
- package/dist/video-generation.js +3 -3
- package/dist/voice-transcription-settlement.d.ts +36 -0
- package/dist/workspace-tool-defaults.js +4 -4
- package/drizzle/0623_voice_transcription_attribution.sql +128 -0
- package/drizzle/0624_azure_live_realtime_model.sql +30 -0
- package/drizzle/0625_transcription_billing_refusal_codes.sql +29 -0
- package/package.json +7 -7
- package/src/connection-metadata.ts +166 -0
- package/src/index.ts +98 -165
- package/src/insights-unified.ts +2 -1
- package/src/legacy-tool-action-reviews.ts +242 -0
- package/src/organization-slack-bots.ts +1 -1
- package/src/schema.ts +1 -0
- package/src/session-realtime-billing.ts +135 -0
- package/src/session-realtime-ledger.ts +9 -4
- package/src/session-realtime.ts +20 -2
- package/src/tool-action-reviews.ts +129 -18
- package/src/voice-transcription-settlement.ts +94 -0
- package/dist/chunk-DSNEIW5E.js.map +0 -1
- /package/dist/{chunk-LRSIODCQ.js.map → chunk-27T4AP25.js.map} +0 -0
- /package/dist/{chunk-VQX54TK3.js.map → chunk-3WUCM7YF.js.map} +0 -0
- /package/dist/{chunk-BRVBLQAL.js.map → chunk-AMK3FNOW.js.map} +0 -0
- /package/dist/{chunk-AQMH2ZEH.js.map → chunk-BA52ITIY.js.map} +0 -0
- /package/dist/{chunk-6S5T6FSP.js.map → chunk-CKDHKQS4.js.map} +0 -0
- /package/dist/{chunk-HYBQABBJ.js.map → chunk-EFANLEWI.js.map} +0 -0
- /package/dist/{chunk-PNWWNEDM.js.map → chunk-EMYA6XNE.js.map} +0 -0
- /package/dist/{chunk-6UKNJ43T.js.map → chunk-GC5GUTV3.js.map} +0 -0
- /package/dist/{chunk-OEFNTGR3.js.map → chunk-NT7OGKYX.js.map} +0 -0
- /package/dist/{chunk-BID3CNN3.js.map → chunk-T3CYF3DH.js.map} +0 -0
- /package/dist/{chunk-3XHC5KC5.js.map → chunk-TRUEH4I2.js.map} +0 -0
- /package/dist/{chunk-7S3O33NM.js.map → chunk-UQELJ6OM.js.map} +0 -0
- /package/dist/{chunk-OI6YZXTU.js.map → chunk-VCHK4D6S.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cancelUnacceptedVideoGenerationsForToolCallsInTransaction
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-T3CYF3DH.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-27T4AP25.js";
|
|
18
18
|
import {
|
|
19
19
|
auditEvents,
|
|
20
20
|
codexCapacityWaiters,
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
workspaceInferenceControls,
|
|
43
43
|
workspaceMemberships,
|
|
44
44
|
workspaces
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-JL6TBB76.js";
|
|
46
46
|
import {
|
|
47
47
|
LOSSLESS_CONTENT_CODEC_VERSION,
|
|
48
48
|
fromPostgresLosslessJson,
|
|
@@ -6449,4 +6449,4 @@ export {
|
|
|
6449
6449
|
setWorkspacePauseTimerInTransaction,
|
|
6450
6450
|
fireWorkspacePauseTimerInTransaction
|
|
6451
6451
|
};
|
|
6452
|
-
//# sourceMappingURL=chunk-
|
|
6452
|
+
//# sourceMappingURL=chunk-NT7OGKYX.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
withAccountRls,
|
|
8
8
|
withRlsContext,
|
|
9
9
|
withWorkspaceRls
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-27T4AP25.js";
|
|
11
11
|
import {
|
|
12
12
|
connections,
|
|
13
13
|
creditDebitAllocations,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
workspaceVideoGenerationPolicies,
|
|
21
21
|
workspaceVideoGenerationQuotas,
|
|
22
22
|
workspaces
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-JL6TBB76.js";
|
|
24
24
|
|
|
25
25
|
// src/video-generation.ts
|
|
26
26
|
import {
|
|
@@ -1412,4 +1412,4 @@ export {
|
|
|
1412
1412
|
mediaGenerationResultForStoredOperation,
|
|
1413
1413
|
getVideoGenerationOperationSummary
|
|
1414
1414
|
};
|
|
1415
|
-
//# sourceMappingURL=chunk-
|
|
1415
|
+
//# sourceMappingURL=chunk-T3CYF3DH.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
rawRows,
|
|
3
3
|
withRlsContext
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-27T4AP25.js";
|
|
5
5
|
|
|
6
6
|
// src/editable-artifacts.ts
|
|
7
7
|
import { createHash } from "crypto";
|
|
@@ -3592,4 +3592,4 @@ export {
|
|
|
3592
3592
|
PostgresEditableArtifactLiveReadStore,
|
|
3593
3593
|
transactionallyAuthorizeEditableArtifactActor
|
|
3594
3594
|
};
|
|
3595
|
-
//# sourceMappingURL=chunk-
|
|
3595
|
+
//# sourceMappingURL=chunk-TRUEH4I2.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
nestedPostgresSqlState,
|
|
3
3
|
rawRows
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-27T4AP25.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-UQELJ6OM.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
rlsContextForWorkspace,
|
|
5
5
|
withWorkspaceSubjectRls,
|
|
6
6
|
withWorkspaceSubjectSessionActivityRls
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-27T4AP25.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-VCHK4D6S.js.map
|
package/dist/connect-attempts.js
CHANGED
|
@@ -7,9 +7,9 @@ import {
|
|
|
7
7
|
getConnectAttempt,
|
|
8
8
|
getConnectBeginReplay,
|
|
9
9
|
listPendingConnectAttempts
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-EFANLEWI.js";
|
|
11
|
+
import "./chunk-27T4AP25.js";
|
|
12
|
+
import "./chunk-JL6TBB76.js";
|
|
13
13
|
import "./chunk-P7YDM2RI.js";
|
|
14
14
|
import "./chunk-PZ5AY32C.js";
|
|
15
15
|
export {
|
|
@@ -0,0 +1,416 @@
|
|
|
1
|
+
import { type ConnectionMetadata } from "@opengeni/contracts";
|
|
2
|
+
import { type SQL } from "drizzle-orm";
|
|
3
|
+
import { type Database } from "./database.js";
|
|
4
|
+
/** Server-owned verification facts; public schemas expose them read-only and nullable. */
|
|
5
|
+
export type ConnectionMetadataWithVerification = ConnectionMetadata & {
|
|
6
|
+
verifiedInstallAt: string | null;
|
|
7
|
+
verifiedInstallVersion: number | null;
|
|
8
|
+
};
|
|
9
|
+
export declare const connectionMetadataColumns: {
|
|
10
|
+
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
11
|
+
name: "id";
|
|
12
|
+
tableName: "connections";
|
|
13
|
+
dataType: "string";
|
|
14
|
+
columnType: "PgUUID";
|
|
15
|
+
data: string;
|
|
16
|
+
driverParam: string;
|
|
17
|
+
notNull: true;
|
|
18
|
+
hasDefault: true;
|
|
19
|
+
isPrimaryKey: true;
|
|
20
|
+
isAutoincrement: false;
|
|
21
|
+
hasRuntimeDefault: false;
|
|
22
|
+
enumValues: undefined;
|
|
23
|
+
baseColumn: never;
|
|
24
|
+
identity: undefined;
|
|
25
|
+
generated: undefined;
|
|
26
|
+
}, {}, {}>;
|
|
27
|
+
authorityId: import("drizzle-orm/pg-core").PgColumn<{
|
|
28
|
+
name: "authority_id";
|
|
29
|
+
tableName: "connections";
|
|
30
|
+
dataType: "string";
|
|
31
|
+
columnType: "PgUUID";
|
|
32
|
+
data: string;
|
|
33
|
+
driverParam: string;
|
|
34
|
+
notNull: false;
|
|
35
|
+
hasDefault: false;
|
|
36
|
+
isPrimaryKey: false;
|
|
37
|
+
isAutoincrement: false;
|
|
38
|
+
hasRuntimeDefault: false;
|
|
39
|
+
enumValues: undefined;
|
|
40
|
+
baseColumn: never;
|
|
41
|
+
identity: undefined;
|
|
42
|
+
generated: undefined;
|
|
43
|
+
}, {}, {}>;
|
|
44
|
+
authorityGeneration: import("drizzle-orm/pg-core").PgColumn<{
|
|
45
|
+
name: "authority_generation";
|
|
46
|
+
tableName: "connections";
|
|
47
|
+
dataType: "number";
|
|
48
|
+
columnType: "PgBigInt53";
|
|
49
|
+
data: number;
|
|
50
|
+
driverParam: string | number;
|
|
51
|
+
notNull: true;
|
|
52
|
+
hasDefault: true;
|
|
53
|
+
isPrimaryKey: false;
|
|
54
|
+
isAutoincrement: false;
|
|
55
|
+
hasRuntimeDefault: false;
|
|
56
|
+
enumValues: undefined;
|
|
57
|
+
baseColumn: never;
|
|
58
|
+
identity: undefined;
|
|
59
|
+
generated: undefined;
|
|
60
|
+
}, {}, {}>;
|
|
61
|
+
accountId: import("drizzle-orm/pg-core").PgColumn<{
|
|
62
|
+
name: "account_id";
|
|
63
|
+
tableName: "connections";
|
|
64
|
+
dataType: "string";
|
|
65
|
+
columnType: "PgUUID";
|
|
66
|
+
data: string;
|
|
67
|
+
driverParam: string;
|
|
68
|
+
notNull: true;
|
|
69
|
+
hasDefault: false;
|
|
70
|
+
isPrimaryKey: false;
|
|
71
|
+
isAutoincrement: false;
|
|
72
|
+
hasRuntimeDefault: false;
|
|
73
|
+
enumValues: undefined;
|
|
74
|
+
baseColumn: never;
|
|
75
|
+
identity: undefined;
|
|
76
|
+
generated: undefined;
|
|
77
|
+
}, {}, {}>;
|
|
78
|
+
workspaceId: import("drizzle-orm/pg-core").PgColumn<{
|
|
79
|
+
name: "workspace_id";
|
|
80
|
+
tableName: "connections";
|
|
81
|
+
dataType: "string";
|
|
82
|
+
columnType: "PgUUID";
|
|
83
|
+
data: string;
|
|
84
|
+
driverParam: string;
|
|
85
|
+
notNull: true;
|
|
86
|
+
hasDefault: false;
|
|
87
|
+
isPrimaryKey: false;
|
|
88
|
+
isAutoincrement: false;
|
|
89
|
+
hasRuntimeDefault: false;
|
|
90
|
+
enumValues: undefined;
|
|
91
|
+
baseColumn: never;
|
|
92
|
+
identity: undefined;
|
|
93
|
+
generated: undefined;
|
|
94
|
+
}, {}, {}>;
|
|
95
|
+
subjectId: import("drizzle-orm/pg-core").PgColumn<{
|
|
96
|
+
name: "subject_id";
|
|
97
|
+
tableName: "connections";
|
|
98
|
+
dataType: "string";
|
|
99
|
+
columnType: "PgText";
|
|
100
|
+
data: string;
|
|
101
|
+
driverParam: string;
|
|
102
|
+
notNull: false;
|
|
103
|
+
hasDefault: false;
|
|
104
|
+
isPrimaryKey: false;
|
|
105
|
+
isAutoincrement: false;
|
|
106
|
+
hasRuntimeDefault: false;
|
|
107
|
+
enumValues: [string, ...string[]];
|
|
108
|
+
baseColumn: never;
|
|
109
|
+
identity: undefined;
|
|
110
|
+
generated: undefined;
|
|
111
|
+
}, {}, {}>;
|
|
112
|
+
providerDomain: import("drizzle-orm/pg-core").PgColumn<{
|
|
113
|
+
name: "provider_domain";
|
|
114
|
+
tableName: "connections";
|
|
115
|
+
dataType: "string";
|
|
116
|
+
columnType: "PgText";
|
|
117
|
+
data: string;
|
|
118
|
+
driverParam: string;
|
|
119
|
+
notNull: true;
|
|
120
|
+
hasDefault: false;
|
|
121
|
+
isPrimaryKey: false;
|
|
122
|
+
isAutoincrement: false;
|
|
123
|
+
hasRuntimeDefault: false;
|
|
124
|
+
enumValues: [string, ...string[]];
|
|
125
|
+
baseColumn: never;
|
|
126
|
+
identity: undefined;
|
|
127
|
+
generated: undefined;
|
|
128
|
+
}, {}, {}>;
|
|
129
|
+
kind: import("drizzle-orm/pg-core").PgColumn<{
|
|
130
|
+
name: "kind";
|
|
131
|
+
tableName: "connections";
|
|
132
|
+
dataType: "string";
|
|
133
|
+
columnType: "PgText";
|
|
134
|
+
data: string;
|
|
135
|
+
driverParam: string;
|
|
136
|
+
notNull: true;
|
|
137
|
+
hasDefault: false;
|
|
138
|
+
isPrimaryKey: false;
|
|
139
|
+
isAutoincrement: false;
|
|
140
|
+
hasRuntimeDefault: false;
|
|
141
|
+
enumValues: [string, ...string[]];
|
|
142
|
+
baseColumn: never;
|
|
143
|
+
identity: undefined;
|
|
144
|
+
generated: undefined;
|
|
145
|
+
}, {}, {}>;
|
|
146
|
+
status: import("drizzle-orm/pg-core").PgColumn<{
|
|
147
|
+
name: "status";
|
|
148
|
+
tableName: "connections";
|
|
149
|
+
dataType: "string";
|
|
150
|
+
columnType: "PgText";
|
|
151
|
+
data: string;
|
|
152
|
+
driverParam: string;
|
|
153
|
+
notNull: true;
|
|
154
|
+
hasDefault: true;
|
|
155
|
+
isPrimaryKey: false;
|
|
156
|
+
isAutoincrement: false;
|
|
157
|
+
hasRuntimeDefault: false;
|
|
158
|
+
enumValues: [string, ...string[]];
|
|
159
|
+
baseColumn: never;
|
|
160
|
+
identity: undefined;
|
|
161
|
+
generated: undefined;
|
|
162
|
+
}, {}, {}>;
|
|
163
|
+
grantedScopes: import("drizzle-orm/pg-core").PgColumn<{
|
|
164
|
+
name: "granted_scopes";
|
|
165
|
+
tableName: "connections";
|
|
166
|
+
dataType: "json";
|
|
167
|
+
columnType: "PgJsonb";
|
|
168
|
+
data: string[];
|
|
169
|
+
driverParam: unknown;
|
|
170
|
+
notNull: true;
|
|
171
|
+
hasDefault: true;
|
|
172
|
+
isPrimaryKey: false;
|
|
173
|
+
isAutoincrement: false;
|
|
174
|
+
hasRuntimeDefault: false;
|
|
175
|
+
enumValues: undefined;
|
|
176
|
+
baseColumn: never;
|
|
177
|
+
identity: undefined;
|
|
178
|
+
generated: undefined;
|
|
179
|
+
}, {}, {
|
|
180
|
+
$type: string[];
|
|
181
|
+
}>;
|
|
182
|
+
expiresAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
183
|
+
name: "expires_at";
|
|
184
|
+
tableName: "connections";
|
|
185
|
+
dataType: "date";
|
|
186
|
+
columnType: "PgTimestamp";
|
|
187
|
+
data: Date;
|
|
188
|
+
driverParam: string;
|
|
189
|
+
notNull: false;
|
|
190
|
+
hasDefault: false;
|
|
191
|
+
isPrimaryKey: false;
|
|
192
|
+
isAutoincrement: false;
|
|
193
|
+
hasRuntimeDefault: false;
|
|
194
|
+
enumValues: undefined;
|
|
195
|
+
baseColumn: never;
|
|
196
|
+
identity: undefined;
|
|
197
|
+
generated: undefined;
|
|
198
|
+
}, {}, {}>;
|
|
199
|
+
lastRefreshAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
200
|
+
name: "last_refresh_at";
|
|
201
|
+
tableName: "connections";
|
|
202
|
+
dataType: "date";
|
|
203
|
+
columnType: "PgTimestamp";
|
|
204
|
+
data: Date;
|
|
205
|
+
driverParam: string;
|
|
206
|
+
notNull: false;
|
|
207
|
+
hasDefault: false;
|
|
208
|
+
isPrimaryKey: false;
|
|
209
|
+
isAutoincrement: false;
|
|
210
|
+
hasRuntimeDefault: false;
|
|
211
|
+
enumValues: undefined;
|
|
212
|
+
baseColumn: never;
|
|
213
|
+
identity: undefined;
|
|
214
|
+
generated: undefined;
|
|
215
|
+
}, {}, {}>;
|
|
216
|
+
lastUsedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
217
|
+
name: "last_used_at";
|
|
218
|
+
tableName: "connections";
|
|
219
|
+
dataType: "date";
|
|
220
|
+
columnType: "PgTimestamp";
|
|
221
|
+
data: Date;
|
|
222
|
+
driverParam: string;
|
|
223
|
+
notNull: false;
|
|
224
|
+
hasDefault: false;
|
|
225
|
+
isPrimaryKey: false;
|
|
226
|
+
isAutoincrement: false;
|
|
227
|
+
hasRuntimeDefault: false;
|
|
228
|
+
enumValues: undefined;
|
|
229
|
+
baseColumn: never;
|
|
230
|
+
identity: undefined;
|
|
231
|
+
generated: undefined;
|
|
232
|
+
}, {}, {}>;
|
|
233
|
+
lastError: import("drizzle-orm/pg-core").PgColumn<{
|
|
234
|
+
name: "last_error";
|
|
235
|
+
tableName: "connections";
|
|
236
|
+
dataType: "string";
|
|
237
|
+
columnType: "PgText";
|
|
238
|
+
data: string;
|
|
239
|
+
driverParam: string;
|
|
240
|
+
notNull: false;
|
|
241
|
+
hasDefault: false;
|
|
242
|
+
isPrimaryKey: false;
|
|
243
|
+
isAutoincrement: false;
|
|
244
|
+
hasRuntimeDefault: false;
|
|
245
|
+
enumValues: [string, ...string[]];
|
|
246
|
+
baseColumn: never;
|
|
247
|
+
identity: undefined;
|
|
248
|
+
generated: undefined;
|
|
249
|
+
}, {}, {}>;
|
|
250
|
+
version: import("drizzle-orm/pg-core").PgColumn<{
|
|
251
|
+
name: "version";
|
|
252
|
+
tableName: "connections";
|
|
253
|
+
dataType: "number";
|
|
254
|
+
columnType: "PgInteger";
|
|
255
|
+
data: number;
|
|
256
|
+
driverParam: string | number;
|
|
257
|
+
notNull: true;
|
|
258
|
+
hasDefault: true;
|
|
259
|
+
isPrimaryKey: false;
|
|
260
|
+
isAutoincrement: false;
|
|
261
|
+
hasRuntimeDefault: false;
|
|
262
|
+
enumValues: undefined;
|
|
263
|
+
baseColumn: never;
|
|
264
|
+
identity: undefined;
|
|
265
|
+
generated: undefined;
|
|
266
|
+
}, {}, {}>;
|
|
267
|
+
verifiedInstallAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
268
|
+
name: "verified_install_at";
|
|
269
|
+
tableName: "connections";
|
|
270
|
+
dataType: "date";
|
|
271
|
+
columnType: "PgTimestamp";
|
|
272
|
+
data: Date;
|
|
273
|
+
driverParam: string;
|
|
274
|
+
notNull: false;
|
|
275
|
+
hasDefault: false;
|
|
276
|
+
isPrimaryKey: false;
|
|
277
|
+
isAutoincrement: false;
|
|
278
|
+
hasRuntimeDefault: false;
|
|
279
|
+
enumValues: undefined;
|
|
280
|
+
baseColumn: never;
|
|
281
|
+
identity: undefined;
|
|
282
|
+
generated: undefined;
|
|
283
|
+
}, {}, {}>;
|
|
284
|
+
verifiedInstallVersion: import("drizzle-orm/pg-core").PgColumn<{
|
|
285
|
+
name: "verified_install_version";
|
|
286
|
+
tableName: "connections";
|
|
287
|
+
dataType: "number";
|
|
288
|
+
columnType: "PgInteger";
|
|
289
|
+
data: number;
|
|
290
|
+
driverParam: string | number;
|
|
291
|
+
notNull: false;
|
|
292
|
+
hasDefault: false;
|
|
293
|
+
isPrimaryKey: false;
|
|
294
|
+
isAutoincrement: false;
|
|
295
|
+
hasRuntimeDefault: false;
|
|
296
|
+
enumValues: undefined;
|
|
297
|
+
baseColumn: never;
|
|
298
|
+
identity: undefined;
|
|
299
|
+
generated: undefined;
|
|
300
|
+
}, {}, {}>;
|
|
301
|
+
metadata: import("drizzle-orm/pg-core").PgColumn<{
|
|
302
|
+
name: "metadata";
|
|
303
|
+
tableName: "connections";
|
|
304
|
+
dataType: "json";
|
|
305
|
+
columnType: "PgJsonb";
|
|
306
|
+
data: Record<string, unknown>;
|
|
307
|
+
driverParam: unknown;
|
|
308
|
+
notNull: true;
|
|
309
|
+
hasDefault: true;
|
|
310
|
+
isPrimaryKey: false;
|
|
311
|
+
isAutoincrement: false;
|
|
312
|
+
hasRuntimeDefault: false;
|
|
313
|
+
enumValues: undefined;
|
|
314
|
+
baseColumn: never;
|
|
315
|
+
identity: undefined;
|
|
316
|
+
generated: undefined;
|
|
317
|
+
}, {}, {
|
|
318
|
+
$type: Record<string, unknown>;
|
|
319
|
+
}>;
|
|
320
|
+
createdBySubjectId: import("drizzle-orm/pg-core").PgColumn<{
|
|
321
|
+
name: "created_by_subject_id";
|
|
322
|
+
tableName: "connections";
|
|
323
|
+
dataType: "string";
|
|
324
|
+
columnType: "PgText";
|
|
325
|
+
data: string;
|
|
326
|
+
driverParam: string;
|
|
327
|
+
notNull: false;
|
|
328
|
+
hasDefault: false;
|
|
329
|
+
isPrimaryKey: false;
|
|
330
|
+
isAutoincrement: false;
|
|
331
|
+
hasRuntimeDefault: false;
|
|
332
|
+
enumValues: [string, ...string[]];
|
|
333
|
+
baseColumn: never;
|
|
334
|
+
identity: undefined;
|
|
335
|
+
generated: undefined;
|
|
336
|
+
}, {}, {}>;
|
|
337
|
+
updatedBySubjectId: import("drizzle-orm/pg-core").PgColumn<{
|
|
338
|
+
name: "updated_by_subject_id";
|
|
339
|
+
tableName: "connections";
|
|
340
|
+
dataType: "string";
|
|
341
|
+
columnType: "PgText";
|
|
342
|
+
data: string;
|
|
343
|
+
driverParam: string;
|
|
344
|
+
notNull: false;
|
|
345
|
+
hasDefault: false;
|
|
346
|
+
isPrimaryKey: false;
|
|
347
|
+
isAutoincrement: false;
|
|
348
|
+
hasRuntimeDefault: false;
|
|
349
|
+
enumValues: [string, ...string[]];
|
|
350
|
+
baseColumn: never;
|
|
351
|
+
identity: undefined;
|
|
352
|
+
generated: undefined;
|
|
353
|
+
}, {}, {}>;
|
|
354
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
355
|
+
name: "created_at";
|
|
356
|
+
tableName: "connections";
|
|
357
|
+
dataType: "date";
|
|
358
|
+
columnType: "PgTimestamp";
|
|
359
|
+
data: Date;
|
|
360
|
+
driverParam: string;
|
|
361
|
+
notNull: true;
|
|
362
|
+
hasDefault: true;
|
|
363
|
+
isPrimaryKey: false;
|
|
364
|
+
isAutoincrement: false;
|
|
365
|
+
hasRuntimeDefault: false;
|
|
366
|
+
enumValues: undefined;
|
|
367
|
+
baseColumn: never;
|
|
368
|
+
identity: undefined;
|
|
369
|
+
generated: undefined;
|
|
370
|
+
}, {}, {}>;
|
|
371
|
+
updatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
372
|
+
name: "updated_at";
|
|
373
|
+
tableName: "connections";
|
|
374
|
+
dataType: "date";
|
|
375
|
+
columnType: "PgTimestamp";
|
|
376
|
+
data: Date;
|
|
377
|
+
driverParam: string;
|
|
378
|
+
notNull: true;
|
|
379
|
+
hasDefault: true;
|
|
380
|
+
isPrimaryKey: false;
|
|
381
|
+
isAutoincrement: false;
|
|
382
|
+
hasRuntimeDefault: false;
|
|
383
|
+
enumValues: undefined;
|
|
384
|
+
baseColumn: never;
|
|
385
|
+
identity: undefined;
|
|
386
|
+
generated: undefined;
|
|
387
|
+
}, {}, {}>;
|
|
388
|
+
};
|
|
389
|
+
export declare function connectionSubjectVisibility(subjectId?: string | null): SQL;
|
|
390
|
+
export declare function withConnectionSubjectRls<T>(db: Database, workspaceId: string, subjectId: string | null | undefined, fn: (db: Database) => Promise<T>): Promise<T>;
|
|
391
|
+
export declare function listConnectionsMetadata(db: Database, workspaceId: string, subjectId?: string | null): Promise<ConnectionMetadataWithVerification[]>;
|
|
392
|
+
export declare function getConnectionMetadata(db: Database, workspaceId: string, connectionId: string, subjectId?: string | null): Promise<ConnectionMetadataWithVerification | null>;
|
|
393
|
+
export declare function mapConnectionMetadata(row: {
|
|
394
|
+
id: string;
|
|
395
|
+
authorityId?: string | null;
|
|
396
|
+
authorityGeneration: number;
|
|
397
|
+
accountId: string;
|
|
398
|
+
workspaceId: string;
|
|
399
|
+
subjectId: string | null;
|
|
400
|
+
providerDomain: string;
|
|
401
|
+
kind: string;
|
|
402
|
+
status: string;
|
|
403
|
+
grantedScopes: string[];
|
|
404
|
+
expiresAt: Date | null;
|
|
405
|
+
lastRefreshAt: Date | null;
|
|
406
|
+
lastUsedAt: Date | null;
|
|
407
|
+
lastError: string | null;
|
|
408
|
+
version: number;
|
|
409
|
+
verifiedInstallAt: Date | null;
|
|
410
|
+
verifiedInstallVersion: number | null;
|
|
411
|
+
metadata: Record<string, unknown>;
|
|
412
|
+
createdBySubjectId: string | null;
|
|
413
|
+
updatedBySubjectId: string | null;
|
|
414
|
+
createdAt: Date;
|
|
415
|
+
updatedAt: Date;
|
|
416
|
+
}): ConnectionMetadataWithVerification;
|
|
@@ -10,9 +10,9 @@ import {
|
|
|
10
10
|
listEditableArtifactIdsForSession,
|
|
11
11
|
touchEditableArtifactSessionLink,
|
|
12
12
|
transactionallyAuthorizeEditableArtifactActor
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-TRUEH4I2.js";
|
|
14
|
+
import "./chunk-27T4AP25.js";
|
|
15
|
+
import "./chunk-JL6TBB76.js";
|
|
16
16
|
import "./chunk-P7YDM2RI.js";
|
|
17
17
|
import "./chunk-PZ5AY32C.js";
|
|
18
18
|
export {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export * from "./organization-slack-bots.js";
|
|
2
|
+
export * from "./voice-transcription-settlement.js";
|
|
3
|
+
import { type ConnectionMetadataWithVerification } from "./connection-metadata.js";
|
|
4
|
+
export { getConnectionMetadata, listConnectionsMetadata, type ConnectionMetadataWithVerification, } from "./connection-metadata.js";
|
|
2
5
|
export { readCreditPromotionPolicy } from "./credit-promotion-policy.js";
|
|
3
6
|
export { getBillingBalance, getSpendableCreditBalance, spendableCreditMicros, } from "./credit-balances.js";
|
|
4
7
|
import { type TurnAttemptFenceRejectReason } from "./session-attempt-fence.js";
|
|
@@ -260,6 +263,7 @@ export * from "./session-queue-commands.js";
|
|
|
260
263
|
export * from "./session-realtime.js";
|
|
261
264
|
export * from "./session-realtime-context.js";
|
|
262
265
|
export * from "./session-realtime-ledger.js";
|
|
266
|
+
export * from "./session-realtime-billing.js";
|
|
263
267
|
export * from "./new-session-drafts.js";
|
|
264
268
|
export * from "./workspace-instruction-policies.js";
|
|
265
269
|
export * from "./company-profile.js";
|
|
@@ -1518,11 +1522,6 @@ export declare class PersonalGitHubRepositorySelectionUnavailableError extends E
|
|
|
1518
1522
|
readonly code = "PERSONAL_GITHUB_REPOSITORY_SELECTION_UNAVAILABLE";
|
|
1519
1523
|
constructor();
|
|
1520
1524
|
}
|
|
1521
|
-
/** Server-owned verification facts; public schemas expose them read-only and nullable. */
|
|
1522
|
-
export type ConnectionMetadataWithVerification = ConnectionMetadata & {
|
|
1523
|
-
verifiedInstallAt: string | null;
|
|
1524
|
-
verifiedInstallVersion: number | null;
|
|
1525
|
-
};
|
|
1526
1525
|
export type SlackBotPostOperation = {
|
|
1527
1526
|
id: string;
|
|
1528
1527
|
accountId: string;
|
|
@@ -2363,8 +2362,6 @@ export declare function revokeWorkspaceOpenRouterConnections(db: Database, input
|
|
|
2363
2362
|
* reconnect remains fenced to the exact Connection version captured in state.
|
|
2364
2363
|
*/
|
|
2365
2364
|
export declare function persistProviderOAuthConnection(db: Database, input: PersistProviderOAuthConnectionInput): Promise<ConnectionMetadataWithVerification | null>;
|
|
2366
|
-
export declare function listConnectionsMetadata(db: Database, workspaceId: string, subjectId?: string | null): Promise<ConnectionMetadataWithVerification[]>;
|
|
2367
|
-
export declare function getConnectionMetadata(db: Database, workspaceId: string, connectionId: string, subjectId?: string | null): Promise<ConnectionMetadataWithVerification | null>;
|
|
2368
2365
|
export declare function getPersonalGitHubRepositorySelectionState(db: Database, input: {
|
|
2369
2366
|
accountId: string;
|
|
2370
2367
|
originWorkspaceId: string;
|
|
@@ -8452,6 +8449,30 @@ export type SandboxWorkspaceMutationAdmission = {
|
|
|
8452
8449
|
workspaceGeneration: number;
|
|
8453
8450
|
};
|
|
8454
8451
|
export type SandboxWorkspaceMutationProviderOutcome = "resolved" | "rejected";
|
|
8452
|
+
/** Evidence from a committed exact admission settlement. It establishes the
|
|
8453
|
+
* physical provider outcome only; mutable output authority remains rejected. */
|
|
8454
|
+
export type SandboxWorkspaceMutationPhysicalSettlement = Readonly<{
|
|
8455
|
+
accountId: string;
|
|
8456
|
+
workspaceId: string;
|
|
8457
|
+
admission: Readonly<SandboxWorkspaceMutationAdmission>;
|
|
8458
|
+
operation: string;
|
|
8459
|
+
outcome: "resolved";
|
|
8460
|
+
}>;
|
|
8461
|
+
/** The exact provider outcome committed before its output failed an acceptance
|
|
8462
|
+
* fence. A generic admission fence or failed transaction carries no receipt.
|
|
8463
|
+
* This error never authorizes accepting output or replaying provider work. */
|
|
8464
|
+
export declare class SandboxWorkspaceMutationOutputRejectedError extends SandboxWorkspaceMutationFencedError {
|
|
8465
|
+
readonly name = "SandboxWorkspaceMutationOutputRejectedError";
|
|
8466
|
+
readonly physicalSettlement: SandboxWorkspaceMutationPhysicalSettlement;
|
|
8467
|
+
constructor(code: SandboxWorkspaceMutationFencedError["code"], message: string, physicalSettlement: SandboxWorkspaceMutationPhysicalSettlement);
|
|
8468
|
+
matchesPhysicalSettlement(input: {
|
|
8469
|
+
accountId: string;
|
|
8470
|
+
workspaceId: string;
|
|
8471
|
+
admission: SandboxWorkspaceMutationAdmission;
|
|
8472
|
+
operation: string;
|
|
8473
|
+
outcome: SandboxWorkspaceMutationProviderOutcome;
|
|
8474
|
+
}): boolean;
|
|
8475
|
+
}
|
|
8455
8476
|
export type SandboxRetainedProcessState = "active" | "exited" | "lost";
|
|
8456
8477
|
export type SandboxRetainedProcess = {
|
|
8457
8478
|
id: string;
|