deepline 0.1.268 → 0.1.270
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/bundling-sources/sdk/src/client.ts +57 -10
- package/dist/bundling-sources/sdk/src/index.ts +1 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/run-failure.ts +4 -2
- package/dist/bundling-sources/shared_libs/play-runtime/run-ledger.ts +63 -0
- package/dist/cli/index.js +27 -8
- package/dist/cli/index.mjs +27 -8
- package/dist/index.d.mts +65 -9
- package/dist/index.d.ts +65 -9
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
|
@@ -99,6 +99,59 @@ const REGISTER_PLAY_ARTIFACTS_MAX_BATCH_COUNT = 3;
|
|
|
99
99
|
const REGISTER_PLAY_ARTIFACTS_MAX_BATCH_BYTES = 2_500_000;
|
|
100
100
|
const DEEPLINEAGENT_EXECUTE_TIMEOUT_MS = 15 * 60 * 1000;
|
|
101
101
|
|
|
102
|
+
export type IngestionStorageRepairResult = {
|
|
103
|
+
status?: 'repaired';
|
|
104
|
+
connection_grants: {
|
|
105
|
+
runtime_role: string;
|
|
106
|
+
customer_db_role: string;
|
|
107
|
+
};
|
|
108
|
+
repaired: unknown[];
|
|
109
|
+
count: number;
|
|
110
|
+
repair?: {
|
|
111
|
+
location: { changed: boolean };
|
|
112
|
+
storage_contract: { applied: boolean; current: boolean };
|
|
113
|
+
runtime_migration: { current: boolean };
|
|
114
|
+
runtime_capabilities: {
|
|
115
|
+
before: {
|
|
116
|
+
reachable: boolean;
|
|
117
|
+
status: string;
|
|
118
|
+
storage_contract_current: boolean;
|
|
119
|
+
runtime_migration_current: boolean;
|
|
120
|
+
runtime_capabilities_ready: boolean;
|
|
121
|
+
capability_failures: string[];
|
|
122
|
+
};
|
|
123
|
+
after: {
|
|
124
|
+
reachable: boolean;
|
|
125
|
+
status: string;
|
|
126
|
+
storage_contract_current: boolean;
|
|
127
|
+
runtime_migration_current: boolean;
|
|
128
|
+
runtime_capabilities_ready: boolean;
|
|
129
|
+
capability_failures: string[];
|
|
130
|
+
};
|
|
131
|
+
runtime_role: {
|
|
132
|
+
currentRole: string | null;
|
|
133
|
+
dlMetaSchemaUsage: boolean;
|
|
134
|
+
uuidFunctionExecute: boolean;
|
|
135
|
+
enrichmentsSchemaUsage: boolean;
|
|
136
|
+
enrichmentsWriteReady: boolean;
|
|
137
|
+
storageSchemaUsage: boolean;
|
|
138
|
+
storageSchemaCreate: boolean;
|
|
139
|
+
};
|
|
140
|
+
customer_db_role: {
|
|
141
|
+
currentRole: string | null;
|
|
142
|
+
dlMetaSchemaUsage: boolean;
|
|
143
|
+
uuidFunctionExecute: boolean;
|
|
144
|
+
enrichmentsSchemaUsage: boolean;
|
|
145
|
+
enrichmentsWriteReady: boolean;
|
|
146
|
+
storageSchemaUsage: boolean;
|
|
147
|
+
storageSchemaCreate: boolean;
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
internal_relations: { reconciled: boolean };
|
|
151
|
+
materialized_tables: { repaired_count: number };
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
|
|
102
155
|
function normalizePlayRunIntegrationMode(
|
|
103
156
|
value: unknown,
|
|
104
157
|
): 'live' | 'eval_stub' | 'fixture' | undefined {
|
|
@@ -1592,20 +1645,14 @@ export class DeeplineClient {
|
|
|
1592
1645
|
* grants plus materialized table grants. Org-admin only. Use when a run fails
|
|
1593
1646
|
* with WORKSPACE_STORAGE_NOT_READY.
|
|
1594
1647
|
*/
|
|
1595
|
-
async repairIngestionStorage(input?: {
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
count: number;
|
|
1599
|
-
}> {
|
|
1648
|
+
async repairIngestionStorage(input?: {
|
|
1649
|
+
provider?: string;
|
|
1650
|
+
}): Promise<IngestionStorageRepairResult> {
|
|
1600
1651
|
// forbiddenAsApiError: the repair route returns a meaningful 403 for
|
|
1601
1652
|
// non-org-admin callers. Without it, http.ts collapses 403 into a generic
|
|
1602
1653
|
// AuthError (statusCode 401) and the CLI's "requires org admin" branch
|
|
1603
1654
|
// could never fire.
|
|
1604
|
-
return this.http.post<
|
|
1605
|
-
connection_grants: { runtime_role: string; customer_db_role: string };
|
|
1606
|
-
repaired: unknown[];
|
|
1607
|
-
count: number;
|
|
1608
|
-
}>(
|
|
1655
|
+
return this.http.post<IngestionStorageRepairResult>(
|
|
1609
1656
|
'/api/v2/ingestion/repair',
|
|
1610
1657
|
{
|
|
1611
1658
|
...(input?.provider ? { provider: input.provider } : {}),
|
|
@@ -155,7 +155,7 @@ export const SDK_RELEASE = {
|
|
|
155
155
|
// 0.1.253 makes play-page browser opening opt-in and retires --no-open.
|
|
156
156
|
// 0.1.254 removes the internal operations tree from the published SDK CLI.
|
|
157
157
|
// Operators use the checkout-local deepline-admin binary instead.
|
|
158
|
-
version: '0.1.
|
|
158
|
+
version: '0.1.270',
|
|
159
159
|
contracts: {
|
|
160
160
|
api: {
|
|
161
161
|
name: 'sdk-http-api',
|
|
@@ -35,8 +35,10 @@ export const WORKSPACE_STORAGE_NOT_READY_CODE = 'WORKSPACE_STORAGE_NOT_READY';
|
|
|
35
35
|
// postgres-URI passwords). The raw pg error goes in the Error `cause` for server
|
|
36
36
|
// logs only, never into this message or the normalized public failure.
|
|
37
37
|
export const WORKSPACE_STORAGE_NOT_READY_MESSAGE =
|
|
38
|
-
'Workspace storage for this organization is
|
|
39
|
-
'
|
|
38
|
+
'Workspace storage for this organization is unavailable, so this operation could not start. ' +
|
|
39
|
+
'This blocked operation did not use Deepline credits. ' +
|
|
40
|
+
'Earlier completed operations in the same run may already have used credits. ' +
|
|
41
|
+
'Re-run the command. If it fails again, ask an organization admin to run `deepline db repair` (POST /api/v2/ingestion/repair), then re-run. ' +
|
|
40
42
|
'If this keeps happening, contact Deepline support with the run ID.';
|
|
41
43
|
|
|
42
44
|
export class WorkspaceStorageNotReadyError extends Error {
|
|
@@ -1023,6 +1023,57 @@ function terminalFinishedAt(
|
|
|
1023
1023
|
return base.finishedAt ?? occurredAt;
|
|
1024
1024
|
}
|
|
1025
1025
|
|
|
1026
|
+
function isStepLifecycleEvent(event: PlayRunLedgerEvent): boolean {
|
|
1027
|
+
return (
|
|
1028
|
+
event.type === 'step.started' ||
|
|
1029
|
+
event.type === 'step.progress' ||
|
|
1030
|
+
event.type === 'step.completed' ||
|
|
1031
|
+
event.type === 'step.failed' ||
|
|
1032
|
+
event.type === 'step.skipped'
|
|
1033
|
+
);
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
/**
|
|
1037
|
+
* A terminal status patch can arrive twice: first without a step start, then
|
|
1038
|
+
* with the original start timestamp after the runner recovers its progress
|
|
1039
|
+
* buffer. A completed node whose start equals its completion is synthetic, so
|
|
1040
|
+
* this is the only late lifecycle refinement that is safe to admit. It cannot
|
|
1041
|
+
* create a node, change a terminal status, alter completion, or revive active
|
|
1042
|
+
* work. Preserve the Run Snapshot's own timestamps while making the node's
|
|
1043
|
+
* duration truthful.
|
|
1044
|
+
*/
|
|
1045
|
+
function refineTerminalSyntheticStepStart(
|
|
1046
|
+
snapshot: PlayRunLedgerSnapshot,
|
|
1047
|
+
event: Extract<PlayRunLedgerEvent, { type: 'step.progress' }>,
|
|
1048
|
+
): PlayRunLedgerSnapshot | null {
|
|
1049
|
+
const current = snapshot.stepsById[event.stepId];
|
|
1050
|
+
const startedAt = event.progress.startedAt;
|
|
1051
|
+
if (
|
|
1052
|
+
current?.status !== 'completed' ||
|
|
1053
|
+
event.status !== 'completed' ||
|
|
1054
|
+
typeof startedAt !== 'number' ||
|
|
1055
|
+
current.startedAt == null ||
|
|
1056
|
+
current.completedAt == null ||
|
|
1057
|
+
current.startedAt !== current.completedAt ||
|
|
1058
|
+
startedAt >= current.startedAt
|
|
1059
|
+
) {
|
|
1060
|
+
return null;
|
|
1061
|
+
}
|
|
1062
|
+
return {
|
|
1063
|
+
...snapshot,
|
|
1064
|
+
stepsById: {
|
|
1065
|
+
...snapshot.stepsById,
|
|
1066
|
+
[event.stepId]: {
|
|
1067
|
+
...current,
|
|
1068
|
+
startedAt,
|
|
1069
|
+
progress: current.progress
|
|
1070
|
+
? { ...current.progress, startedAt }
|
|
1071
|
+
: { startedAt },
|
|
1072
|
+
},
|
|
1073
|
+
},
|
|
1074
|
+
};
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1026
1077
|
export function reducePlayRunLedgerEvent(
|
|
1027
1078
|
snapshot: PlayRunLedgerSnapshot,
|
|
1028
1079
|
event: PlayRunLedgerEvent,
|
|
@@ -1030,6 +1081,18 @@ export function reducePlayRunLedgerEvent(
|
|
|
1030
1081
|
if (event.runId !== snapshot.runId) {
|
|
1031
1082
|
return snapshot;
|
|
1032
1083
|
}
|
|
1084
|
+
// A terminal Run Snapshot is immutable with respect to step lifecycle.
|
|
1085
|
+
// Detached runners can race their best-effort progress transport against the
|
|
1086
|
+
// terminal outbox, and gateway processes can restart or split that traffic.
|
|
1087
|
+
// The Play Run Ledger is the durable projection authority, so late
|
|
1088
|
+
// `step.*` facts must be a true no-op here rather than relying on a gateway
|
|
1089
|
+
// process to remember terminal state.
|
|
1090
|
+
if (isTerminalPlayRunLedgerStatus(snapshot.status)) {
|
|
1091
|
+
if (event.type === 'step.progress') {
|
|
1092
|
+
return refineTerminalSyntheticStepStart(snapshot, event) ?? snapshot;
|
|
1093
|
+
}
|
|
1094
|
+
if (isStepLifecycleEvent(event)) return snapshot;
|
|
1095
|
+
}
|
|
1033
1096
|
// The scheduler's outbox can replay an older wait transition after its run
|
|
1034
1097
|
// reached a terminal state. That transition is no longer meaningful and
|
|
1035
1098
|
// must be byte-for-byte inert: even advancing `updatedAt` would re-publish
|
package/dist/cli/index.js
CHANGED
|
@@ -718,7 +718,7 @@ var SDK_RELEASE = {
|
|
|
718
718
|
// 0.1.253 makes play-page browser opening opt-in and retires --no-open.
|
|
719
719
|
// 0.1.254 removes the internal operations tree from the published SDK CLI.
|
|
720
720
|
// Operators use the checkout-local deepline-admin binary instead.
|
|
721
|
-
version: "0.1.
|
|
721
|
+
version: "0.1.270",
|
|
722
722
|
contracts: {
|
|
723
723
|
api: {
|
|
724
724
|
name: "sdk-http-api",
|
|
@@ -8834,6 +8834,28 @@ function formatDbQueryError(sql, error) {
|
|
|
8834
8834
|
}
|
|
8835
8835
|
return errorMessage(error);
|
|
8836
8836
|
}
|
|
8837
|
+
function dbRepairHumanLines(result) {
|
|
8838
|
+
const repair = result.repair;
|
|
8839
|
+
return [
|
|
8840
|
+
"Workspace storage repair completed.",
|
|
8841
|
+
...repair ? [
|
|
8842
|
+
`Location changed: ${repair.location.changed ? "yes" : "no"}`,
|
|
8843
|
+
`Storage contract: ${repair.storage_contract.current ? "current" : "not ready"}`,
|
|
8844
|
+
`Runtime migration: ${repair.runtime_migration.current ? "current" : "not ready"}`,
|
|
8845
|
+
`Runtime capability probe: ${repair.runtime_capabilities.after.runtime_capabilities_ready ? "passed" : "failed"}`,
|
|
8846
|
+
`Materialized table grants reconciled: ${repair.materialized_tables.repaired_count}`
|
|
8847
|
+
] : [
|
|
8848
|
+
"Runtime capability probe: unavailable from this server version",
|
|
8849
|
+
`Materialized table grants reconciled: ${result.count}`
|
|
8850
|
+
],
|
|
8851
|
+
`Runtime role: ${result.connection_grants.runtime_role}`,
|
|
8852
|
+
`Customer DB role: ${result.connection_grants.customer_db_role}`
|
|
8853
|
+
];
|
|
8854
|
+
}
|
|
8855
|
+
function dbRepairPlainText(result) {
|
|
8856
|
+
return result.repair ? "Workspace storage repair completed. Runtime capability probe passed.\n" : `Workspace storage repair completed. ${result.count} materialized table grant(s) reconciled; runtime capability probe unavailable.
|
|
8857
|
+
`;
|
|
8858
|
+
}
|
|
8837
8859
|
function writeCustomerDbCsv(result, outPath) {
|
|
8838
8860
|
const resolved = (0, import_node_path9.resolve)(outPath);
|
|
8839
8861
|
(0, import_node_fs8.writeFileSync)(
|
|
@@ -9015,26 +9037,23 @@ async function handleDbRepair(args) {
|
|
|
9015
9037
|
printCommandEnvelope(
|
|
9016
9038
|
{
|
|
9017
9039
|
command: "db repair",
|
|
9040
|
+
status: result.status,
|
|
9018
9041
|
repaired: result.repaired,
|
|
9019
9042
|
count: result.count,
|
|
9020
9043
|
connection_grants: result.connection_grants,
|
|
9044
|
+
repair: result.repair,
|
|
9021
9045
|
render: {
|
|
9022
9046
|
sections: [
|
|
9023
9047
|
{
|
|
9024
9048
|
title: "storage contract repair",
|
|
9025
|
-
lines:
|
|
9026
|
-
`Repaired ${result.count} table(s).`,
|
|
9027
|
-
`Runtime role: ${result.connection_grants.runtime_role}`,
|
|
9028
|
-
`Customer DB role: ${result.connection_grants.customer_db_role}`
|
|
9029
|
-
]
|
|
9049
|
+
lines: dbRepairHumanLines(result)
|
|
9030
9050
|
}
|
|
9031
9051
|
]
|
|
9032
9052
|
}
|
|
9033
9053
|
},
|
|
9034
9054
|
{
|
|
9035
9055
|
json: jsonOutput,
|
|
9036
|
-
text:
|
|
9037
|
-
`
|
|
9056
|
+
text: dbRepairPlainText(result)
|
|
9038
9057
|
}
|
|
9039
9058
|
);
|
|
9040
9059
|
return 0;
|
package/dist/cli/index.mjs
CHANGED
|
@@ -703,7 +703,7 @@ var SDK_RELEASE = {
|
|
|
703
703
|
// 0.1.253 makes play-page browser opening opt-in and retires --no-open.
|
|
704
704
|
// 0.1.254 removes the internal operations tree from the published SDK CLI.
|
|
705
705
|
// Operators use the checkout-local deepline-admin binary instead.
|
|
706
|
-
version: "0.1.
|
|
706
|
+
version: "0.1.270",
|
|
707
707
|
contracts: {
|
|
708
708
|
api: {
|
|
709
709
|
name: "sdk-http-api",
|
|
@@ -8839,6 +8839,28 @@ function formatDbQueryError(sql, error) {
|
|
|
8839
8839
|
}
|
|
8840
8840
|
return errorMessage(error);
|
|
8841
8841
|
}
|
|
8842
|
+
function dbRepairHumanLines(result) {
|
|
8843
|
+
const repair = result.repair;
|
|
8844
|
+
return [
|
|
8845
|
+
"Workspace storage repair completed.",
|
|
8846
|
+
...repair ? [
|
|
8847
|
+
`Location changed: ${repair.location.changed ? "yes" : "no"}`,
|
|
8848
|
+
`Storage contract: ${repair.storage_contract.current ? "current" : "not ready"}`,
|
|
8849
|
+
`Runtime migration: ${repair.runtime_migration.current ? "current" : "not ready"}`,
|
|
8850
|
+
`Runtime capability probe: ${repair.runtime_capabilities.after.runtime_capabilities_ready ? "passed" : "failed"}`,
|
|
8851
|
+
`Materialized table grants reconciled: ${repair.materialized_tables.repaired_count}`
|
|
8852
|
+
] : [
|
|
8853
|
+
"Runtime capability probe: unavailable from this server version",
|
|
8854
|
+
`Materialized table grants reconciled: ${result.count}`
|
|
8855
|
+
],
|
|
8856
|
+
`Runtime role: ${result.connection_grants.runtime_role}`,
|
|
8857
|
+
`Customer DB role: ${result.connection_grants.customer_db_role}`
|
|
8858
|
+
];
|
|
8859
|
+
}
|
|
8860
|
+
function dbRepairPlainText(result) {
|
|
8861
|
+
return result.repair ? "Workspace storage repair completed. Runtime capability probe passed.\n" : `Workspace storage repair completed. ${result.count} materialized table grant(s) reconciled; runtime capability probe unavailable.
|
|
8862
|
+
`;
|
|
8863
|
+
}
|
|
8842
8864
|
function writeCustomerDbCsv(result, outPath) {
|
|
8843
8865
|
const resolved = resolve6(outPath);
|
|
8844
8866
|
writeFileSync7(
|
|
@@ -9020,26 +9042,23 @@ async function handleDbRepair(args) {
|
|
|
9020
9042
|
printCommandEnvelope(
|
|
9021
9043
|
{
|
|
9022
9044
|
command: "db repair",
|
|
9045
|
+
status: result.status,
|
|
9023
9046
|
repaired: result.repaired,
|
|
9024
9047
|
count: result.count,
|
|
9025
9048
|
connection_grants: result.connection_grants,
|
|
9049
|
+
repair: result.repair,
|
|
9026
9050
|
render: {
|
|
9027
9051
|
sections: [
|
|
9028
9052
|
{
|
|
9029
9053
|
title: "storage contract repair",
|
|
9030
|
-
lines:
|
|
9031
|
-
`Repaired ${result.count} table(s).`,
|
|
9032
|
-
`Runtime role: ${result.connection_grants.runtime_role}`,
|
|
9033
|
-
`Customer DB role: ${result.connection_grants.customer_db_role}`
|
|
9034
|
-
]
|
|
9054
|
+
lines: dbRepairHumanLines(result)
|
|
9035
9055
|
}
|
|
9036
9056
|
]
|
|
9037
9057
|
}
|
|
9038
9058
|
},
|
|
9039
9059
|
{
|
|
9040
9060
|
json: jsonOutput,
|
|
9041
|
-
text:
|
|
9042
|
-
`
|
|
9061
|
+
text: dbRepairPlainText(result)
|
|
9043
9062
|
}
|
|
9044
9063
|
);
|
|
9045
9064
|
return 0;
|
package/dist/index.d.mts
CHANGED
|
@@ -1405,6 +1405,69 @@ type EnrichCompiledConfig = {
|
|
|
1405
1405
|
};
|
|
1406
1406
|
};
|
|
1407
1407
|
|
|
1408
|
+
type IngestionStorageRepairResult = {
|
|
1409
|
+
status?: 'repaired';
|
|
1410
|
+
connection_grants: {
|
|
1411
|
+
runtime_role: string;
|
|
1412
|
+
customer_db_role: string;
|
|
1413
|
+
};
|
|
1414
|
+
repaired: unknown[];
|
|
1415
|
+
count: number;
|
|
1416
|
+
repair?: {
|
|
1417
|
+
location: {
|
|
1418
|
+
changed: boolean;
|
|
1419
|
+
};
|
|
1420
|
+
storage_contract: {
|
|
1421
|
+
applied: boolean;
|
|
1422
|
+
current: boolean;
|
|
1423
|
+
};
|
|
1424
|
+
runtime_migration: {
|
|
1425
|
+
current: boolean;
|
|
1426
|
+
};
|
|
1427
|
+
runtime_capabilities: {
|
|
1428
|
+
before: {
|
|
1429
|
+
reachable: boolean;
|
|
1430
|
+
status: string;
|
|
1431
|
+
storage_contract_current: boolean;
|
|
1432
|
+
runtime_migration_current: boolean;
|
|
1433
|
+
runtime_capabilities_ready: boolean;
|
|
1434
|
+
capability_failures: string[];
|
|
1435
|
+
};
|
|
1436
|
+
after: {
|
|
1437
|
+
reachable: boolean;
|
|
1438
|
+
status: string;
|
|
1439
|
+
storage_contract_current: boolean;
|
|
1440
|
+
runtime_migration_current: boolean;
|
|
1441
|
+
runtime_capabilities_ready: boolean;
|
|
1442
|
+
capability_failures: string[];
|
|
1443
|
+
};
|
|
1444
|
+
runtime_role: {
|
|
1445
|
+
currentRole: string | null;
|
|
1446
|
+
dlMetaSchemaUsage: boolean;
|
|
1447
|
+
uuidFunctionExecute: boolean;
|
|
1448
|
+
enrichmentsSchemaUsage: boolean;
|
|
1449
|
+
enrichmentsWriteReady: boolean;
|
|
1450
|
+
storageSchemaUsage: boolean;
|
|
1451
|
+
storageSchemaCreate: boolean;
|
|
1452
|
+
};
|
|
1453
|
+
customer_db_role: {
|
|
1454
|
+
currentRole: string | null;
|
|
1455
|
+
dlMetaSchemaUsage: boolean;
|
|
1456
|
+
uuidFunctionExecute: boolean;
|
|
1457
|
+
enrichmentsSchemaUsage: boolean;
|
|
1458
|
+
enrichmentsWriteReady: boolean;
|
|
1459
|
+
storageSchemaUsage: boolean;
|
|
1460
|
+
storageSchemaCreate: boolean;
|
|
1461
|
+
};
|
|
1462
|
+
};
|
|
1463
|
+
internal_relations: {
|
|
1464
|
+
reconciled: boolean;
|
|
1465
|
+
};
|
|
1466
|
+
materialized_tables: {
|
|
1467
|
+
repaired_count: number;
|
|
1468
|
+
};
|
|
1469
|
+
};
|
|
1470
|
+
};
|
|
1408
1471
|
type ExecuteToolRawOptions = {
|
|
1409
1472
|
includeToolMetadata?: boolean;
|
|
1410
1473
|
responseIntent?: 'dataset' | 'raw' | 'row_artifact';
|
|
@@ -1933,14 +1996,7 @@ declare class DeeplineClient {
|
|
|
1933
1996
|
*/
|
|
1934
1997
|
repairIngestionStorage(input?: {
|
|
1935
1998
|
provider?: string;
|
|
1936
|
-
}): Promise<
|
|
1937
|
-
connection_grants: {
|
|
1938
|
-
runtime_role: string;
|
|
1939
|
-
customer_db_role: string;
|
|
1940
|
-
};
|
|
1941
|
-
repaired: unknown[];
|
|
1942
|
-
count: number;
|
|
1943
|
-
}>;
|
|
1999
|
+
}): Promise<IngestionStorageRepairResult>;
|
|
1944
2000
|
/**
|
|
1945
2001
|
* Start a play run.
|
|
1946
2002
|
*
|
|
@@ -4583,4 +4639,4 @@ declare function writeCsvOutputFile(rows: Array<Record<string, unknown>>, stem:
|
|
|
4583
4639
|
*/
|
|
4584
4640
|
declare function extractSummaryFields(payload: unknown): Record<string, Scalar>;
|
|
4585
4641
|
|
|
4586
|
-
export { AuthError, type BillingCreditPool, type BillingInvoiceEntry, type BillingInvoicesResult, type BillingNamespace, type BillingPaymentMethodSummary, type BillingSubscriptionCancelResult, type BillingSubscriptionStatus, type BillingTopUpResult, type ClearPlayHistoryRequest, type ClearPlayHistoryResult, type ColumnMap, type ColumnResolver, type ConditionalStepResolver, ConfigError, type CsvInput, type CsvOptions, type CustomerDbQueryResult, DEEPLINE_EXTRACTOR_TARGETS, DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS, DEEPLINE_TOOL_CATEGORIES, type DatasetBuilder, type DatasetColumnDefinition, type DatasetColumnRunInput, type DbNamespace, Deepline, DeeplineClient, type DeeplineClientOptions, DeeplineContext, type DeeplineEmailStatusGetterValue, DeeplineError, type DeeplineExtractorTarget, type DeeplineGetterValue, type DeeplineGetterValueMap, type DeeplineNamedPlay, type DeeplinePlayRuntimeContext, type DeeplinePlaysNamespace, type DeeplineToolCategory, type DeeplineToolsNamespace, type DefinePlayConfig, type DefinedPlay, type FileInput, JOB_CHANGE_STATUS_VALUES, type JobChangeStatus, type LiveEventEnvelope, PHONE_STATUS_VALUES, PLAY_BOOTSTRAP_COMPANY_FIELDS, PLAY_BOOTSTRAP_COMPANY_PROVIDER_CATEGORY, PLAY_BOOTSTRAP_CONTACT_FIELDS, PLAY_BOOTSTRAP_FINDER_KINDS, PLAY_BOOTSTRAP_OUTPUT_FIELD_BY_FINDER, PLAY_BOOTSTRAP_PEOPLE_PROVIDER_CATEGORY, PLAY_BOOTSTRAP_PROVIDER_CATEGORY_BY_FINDER, PLAY_BOOTSTRAP_SOURCE_KINDS, PLAY_BOOTSTRAP_STAGE_KINDS, PLAY_BOOTSTRAP_TEMPLATES, PROD_URL, type PhoneStatus, type PlayBindings, type PlayBootstrapEntityKind, type PlayBootstrapFinderKind, type PlayCallExecution, type PlayCallOptions, type PlayDataset, type PlayDatasetInput, type PlayInputContract, type PlayJob, type PlayListItem, type PlayLiveEvent, type PlayRevisionSummary, type PlayRunActionPackage, type PlayRunDatasetActions, type PlayRunPackage, type PlayRunResult, type PlayRunStart, type PlaySheetRow, type PlaySheetRowsResult, type PlayStatus, type PlayStepProgramStep, type PrebuiltPlayRef, type PreviousCell, type PublishPlayVersionRequest, type PublishPlayVersionResult, RateLimitError, type ResolvedConfig, RunObserveTransportUnavailableError, type RunsListOptions, type RunsLogsOptions, type RunsLogsResult, type RunsNamespace, type RunsTailOptions, SDK_API_CONTRACT, SDK_VERSION, type SqlListenerDeclaration, type SqlListenerEvent, type SqlListenerOperation, type SqlQuery, type StartPlayRunRequest, type StepOptions, type StepProgram, type StepProgramResolver, type StepResolver, type StopPlayRunResult, type ToolDefinition, type ToolExecuteResult, type ToolExecution, type ToolExecutionRequest, type ToolMetadata, type ToolSearchOptions, type ToolSearchResult, defineInput, definePlay, defineWorkflow, extractSummaryFields, formatPlayBootstrapFinderKinds, formatPlayBootstrapFinderKindsForSentence, formatPlayBootstrapTemplates, getDefinedPlayMetadata, isDeeplineExtractorTarget, isPlayBootstrapFinderKind, isPlayBootstrapTemplate, resolveConfig, runIf, steps, tryConvertToList, writeCsvOutputFile, writeJsonOutputFile };
|
|
4642
|
+
export { AuthError, type BillingCreditPool, type BillingInvoiceEntry, type BillingInvoicesResult, type BillingNamespace, type BillingPaymentMethodSummary, type BillingSubscriptionCancelResult, type BillingSubscriptionStatus, type BillingTopUpResult, type ClearPlayHistoryRequest, type ClearPlayHistoryResult, type ColumnMap, type ColumnResolver, type ConditionalStepResolver, ConfigError, type CsvInput, type CsvOptions, type CustomerDbQueryResult, DEEPLINE_EXTRACTOR_TARGETS, DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS, DEEPLINE_TOOL_CATEGORIES, type DatasetBuilder, type DatasetColumnDefinition, type DatasetColumnRunInput, type DbNamespace, Deepline, DeeplineClient, type DeeplineClientOptions, DeeplineContext, type DeeplineEmailStatusGetterValue, DeeplineError, type DeeplineExtractorTarget, type DeeplineGetterValue, type DeeplineGetterValueMap, type DeeplineNamedPlay, type DeeplinePlayRuntimeContext, type DeeplinePlaysNamespace, type DeeplineToolCategory, type DeeplineToolsNamespace, type DefinePlayConfig, type DefinedPlay, type FileInput, type IngestionStorageRepairResult, JOB_CHANGE_STATUS_VALUES, type JobChangeStatus, type LiveEventEnvelope, PHONE_STATUS_VALUES, PLAY_BOOTSTRAP_COMPANY_FIELDS, PLAY_BOOTSTRAP_COMPANY_PROVIDER_CATEGORY, PLAY_BOOTSTRAP_CONTACT_FIELDS, PLAY_BOOTSTRAP_FINDER_KINDS, PLAY_BOOTSTRAP_OUTPUT_FIELD_BY_FINDER, PLAY_BOOTSTRAP_PEOPLE_PROVIDER_CATEGORY, PLAY_BOOTSTRAP_PROVIDER_CATEGORY_BY_FINDER, PLAY_BOOTSTRAP_SOURCE_KINDS, PLAY_BOOTSTRAP_STAGE_KINDS, PLAY_BOOTSTRAP_TEMPLATES, PROD_URL, type PhoneStatus, type PlayBindings, type PlayBootstrapEntityKind, type PlayBootstrapFinderKind, type PlayCallExecution, type PlayCallOptions, type PlayDataset, type PlayDatasetInput, type PlayInputContract, type PlayJob, type PlayListItem, type PlayLiveEvent, type PlayRevisionSummary, type PlayRunActionPackage, type PlayRunDatasetActions, type PlayRunPackage, type PlayRunResult, type PlayRunStart, type PlaySheetRow, type PlaySheetRowsResult, type PlayStatus, type PlayStepProgramStep, type PrebuiltPlayRef, type PreviousCell, type PublishPlayVersionRequest, type PublishPlayVersionResult, RateLimitError, type ResolvedConfig, RunObserveTransportUnavailableError, type RunsListOptions, type RunsLogsOptions, type RunsLogsResult, type RunsNamespace, type RunsTailOptions, SDK_API_CONTRACT, SDK_VERSION, type SqlListenerDeclaration, type SqlListenerEvent, type SqlListenerOperation, type SqlQuery, type StartPlayRunRequest, type StepOptions, type StepProgram, type StepProgramResolver, type StepResolver, type StopPlayRunResult, type ToolDefinition, type ToolExecuteResult, type ToolExecution, type ToolExecutionRequest, type ToolMetadata, type ToolSearchOptions, type ToolSearchResult, defineInput, definePlay, defineWorkflow, extractSummaryFields, formatPlayBootstrapFinderKinds, formatPlayBootstrapFinderKindsForSentence, formatPlayBootstrapTemplates, getDefinedPlayMetadata, isDeeplineExtractorTarget, isPlayBootstrapFinderKind, isPlayBootstrapTemplate, resolveConfig, runIf, steps, tryConvertToList, writeCsvOutputFile, writeJsonOutputFile };
|
package/dist/index.d.ts
CHANGED
|
@@ -1405,6 +1405,69 @@ type EnrichCompiledConfig = {
|
|
|
1405
1405
|
};
|
|
1406
1406
|
};
|
|
1407
1407
|
|
|
1408
|
+
type IngestionStorageRepairResult = {
|
|
1409
|
+
status?: 'repaired';
|
|
1410
|
+
connection_grants: {
|
|
1411
|
+
runtime_role: string;
|
|
1412
|
+
customer_db_role: string;
|
|
1413
|
+
};
|
|
1414
|
+
repaired: unknown[];
|
|
1415
|
+
count: number;
|
|
1416
|
+
repair?: {
|
|
1417
|
+
location: {
|
|
1418
|
+
changed: boolean;
|
|
1419
|
+
};
|
|
1420
|
+
storage_contract: {
|
|
1421
|
+
applied: boolean;
|
|
1422
|
+
current: boolean;
|
|
1423
|
+
};
|
|
1424
|
+
runtime_migration: {
|
|
1425
|
+
current: boolean;
|
|
1426
|
+
};
|
|
1427
|
+
runtime_capabilities: {
|
|
1428
|
+
before: {
|
|
1429
|
+
reachable: boolean;
|
|
1430
|
+
status: string;
|
|
1431
|
+
storage_contract_current: boolean;
|
|
1432
|
+
runtime_migration_current: boolean;
|
|
1433
|
+
runtime_capabilities_ready: boolean;
|
|
1434
|
+
capability_failures: string[];
|
|
1435
|
+
};
|
|
1436
|
+
after: {
|
|
1437
|
+
reachable: boolean;
|
|
1438
|
+
status: string;
|
|
1439
|
+
storage_contract_current: boolean;
|
|
1440
|
+
runtime_migration_current: boolean;
|
|
1441
|
+
runtime_capabilities_ready: boolean;
|
|
1442
|
+
capability_failures: string[];
|
|
1443
|
+
};
|
|
1444
|
+
runtime_role: {
|
|
1445
|
+
currentRole: string | null;
|
|
1446
|
+
dlMetaSchemaUsage: boolean;
|
|
1447
|
+
uuidFunctionExecute: boolean;
|
|
1448
|
+
enrichmentsSchemaUsage: boolean;
|
|
1449
|
+
enrichmentsWriteReady: boolean;
|
|
1450
|
+
storageSchemaUsage: boolean;
|
|
1451
|
+
storageSchemaCreate: boolean;
|
|
1452
|
+
};
|
|
1453
|
+
customer_db_role: {
|
|
1454
|
+
currentRole: string | null;
|
|
1455
|
+
dlMetaSchemaUsage: boolean;
|
|
1456
|
+
uuidFunctionExecute: boolean;
|
|
1457
|
+
enrichmentsSchemaUsage: boolean;
|
|
1458
|
+
enrichmentsWriteReady: boolean;
|
|
1459
|
+
storageSchemaUsage: boolean;
|
|
1460
|
+
storageSchemaCreate: boolean;
|
|
1461
|
+
};
|
|
1462
|
+
};
|
|
1463
|
+
internal_relations: {
|
|
1464
|
+
reconciled: boolean;
|
|
1465
|
+
};
|
|
1466
|
+
materialized_tables: {
|
|
1467
|
+
repaired_count: number;
|
|
1468
|
+
};
|
|
1469
|
+
};
|
|
1470
|
+
};
|
|
1408
1471
|
type ExecuteToolRawOptions = {
|
|
1409
1472
|
includeToolMetadata?: boolean;
|
|
1410
1473
|
responseIntent?: 'dataset' | 'raw' | 'row_artifact';
|
|
@@ -1933,14 +1996,7 @@ declare class DeeplineClient {
|
|
|
1933
1996
|
*/
|
|
1934
1997
|
repairIngestionStorage(input?: {
|
|
1935
1998
|
provider?: string;
|
|
1936
|
-
}): Promise<
|
|
1937
|
-
connection_grants: {
|
|
1938
|
-
runtime_role: string;
|
|
1939
|
-
customer_db_role: string;
|
|
1940
|
-
};
|
|
1941
|
-
repaired: unknown[];
|
|
1942
|
-
count: number;
|
|
1943
|
-
}>;
|
|
1999
|
+
}): Promise<IngestionStorageRepairResult>;
|
|
1944
2000
|
/**
|
|
1945
2001
|
* Start a play run.
|
|
1946
2002
|
*
|
|
@@ -4583,4 +4639,4 @@ declare function writeCsvOutputFile(rows: Array<Record<string, unknown>>, stem:
|
|
|
4583
4639
|
*/
|
|
4584
4640
|
declare function extractSummaryFields(payload: unknown): Record<string, Scalar>;
|
|
4585
4641
|
|
|
4586
|
-
export { AuthError, type BillingCreditPool, type BillingInvoiceEntry, type BillingInvoicesResult, type BillingNamespace, type BillingPaymentMethodSummary, type BillingSubscriptionCancelResult, type BillingSubscriptionStatus, type BillingTopUpResult, type ClearPlayHistoryRequest, type ClearPlayHistoryResult, type ColumnMap, type ColumnResolver, type ConditionalStepResolver, ConfigError, type CsvInput, type CsvOptions, type CustomerDbQueryResult, DEEPLINE_EXTRACTOR_TARGETS, DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS, DEEPLINE_TOOL_CATEGORIES, type DatasetBuilder, type DatasetColumnDefinition, type DatasetColumnRunInput, type DbNamespace, Deepline, DeeplineClient, type DeeplineClientOptions, DeeplineContext, type DeeplineEmailStatusGetterValue, DeeplineError, type DeeplineExtractorTarget, type DeeplineGetterValue, type DeeplineGetterValueMap, type DeeplineNamedPlay, type DeeplinePlayRuntimeContext, type DeeplinePlaysNamespace, type DeeplineToolCategory, type DeeplineToolsNamespace, type DefinePlayConfig, type DefinedPlay, type FileInput, JOB_CHANGE_STATUS_VALUES, type JobChangeStatus, type LiveEventEnvelope, PHONE_STATUS_VALUES, PLAY_BOOTSTRAP_COMPANY_FIELDS, PLAY_BOOTSTRAP_COMPANY_PROVIDER_CATEGORY, PLAY_BOOTSTRAP_CONTACT_FIELDS, PLAY_BOOTSTRAP_FINDER_KINDS, PLAY_BOOTSTRAP_OUTPUT_FIELD_BY_FINDER, PLAY_BOOTSTRAP_PEOPLE_PROVIDER_CATEGORY, PLAY_BOOTSTRAP_PROVIDER_CATEGORY_BY_FINDER, PLAY_BOOTSTRAP_SOURCE_KINDS, PLAY_BOOTSTRAP_STAGE_KINDS, PLAY_BOOTSTRAP_TEMPLATES, PROD_URL, type PhoneStatus, type PlayBindings, type PlayBootstrapEntityKind, type PlayBootstrapFinderKind, type PlayCallExecution, type PlayCallOptions, type PlayDataset, type PlayDatasetInput, type PlayInputContract, type PlayJob, type PlayListItem, type PlayLiveEvent, type PlayRevisionSummary, type PlayRunActionPackage, type PlayRunDatasetActions, type PlayRunPackage, type PlayRunResult, type PlayRunStart, type PlaySheetRow, type PlaySheetRowsResult, type PlayStatus, type PlayStepProgramStep, type PrebuiltPlayRef, type PreviousCell, type PublishPlayVersionRequest, type PublishPlayVersionResult, RateLimitError, type ResolvedConfig, RunObserveTransportUnavailableError, type RunsListOptions, type RunsLogsOptions, type RunsLogsResult, type RunsNamespace, type RunsTailOptions, SDK_API_CONTRACT, SDK_VERSION, type SqlListenerDeclaration, type SqlListenerEvent, type SqlListenerOperation, type SqlQuery, type StartPlayRunRequest, type StepOptions, type StepProgram, type StepProgramResolver, type StepResolver, type StopPlayRunResult, type ToolDefinition, type ToolExecuteResult, type ToolExecution, type ToolExecutionRequest, type ToolMetadata, type ToolSearchOptions, type ToolSearchResult, defineInput, definePlay, defineWorkflow, extractSummaryFields, formatPlayBootstrapFinderKinds, formatPlayBootstrapFinderKindsForSentence, formatPlayBootstrapTemplates, getDefinedPlayMetadata, isDeeplineExtractorTarget, isPlayBootstrapFinderKind, isPlayBootstrapTemplate, resolveConfig, runIf, steps, tryConvertToList, writeCsvOutputFile, writeJsonOutputFile };
|
|
4642
|
+
export { AuthError, type BillingCreditPool, type BillingInvoiceEntry, type BillingInvoicesResult, type BillingNamespace, type BillingPaymentMethodSummary, type BillingSubscriptionCancelResult, type BillingSubscriptionStatus, type BillingTopUpResult, type ClearPlayHistoryRequest, type ClearPlayHistoryResult, type ColumnMap, type ColumnResolver, type ConditionalStepResolver, ConfigError, type CsvInput, type CsvOptions, type CustomerDbQueryResult, DEEPLINE_EXTRACTOR_TARGETS, DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS, DEEPLINE_TOOL_CATEGORIES, type DatasetBuilder, type DatasetColumnDefinition, type DatasetColumnRunInput, type DbNamespace, Deepline, DeeplineClient, type DeeplineClientOptions, DeeplineContext, type DeeplineEmailStatusGetterValue, DeeplineError, type DeeplineExtractorTarget, type DeeplineGetterValue, type DeeplineGetterValueMap, type DeeplineNamedPlay, type DeeplinePlayRuntimeContext, type DeeplinePlaysNamespace, type DeeplineToolCategory, type DeeplineToolsNamespace, type DefinePlayConfig, type DefinedPlay, type FileInput, type IngestionStorageRepairResult, JOB_CHANGE_STATUS_VALUES, type JobChangeStatus, type LiveEventEnvelope, PHONE_STATUS_VALUES, PLAY_BOOTSTRAP_COMPANY_FIELDS, PLAY_BOOTSTRAP_COMPANY_PROVIDER_CATEGORY, PLAY_BOOTSTRAP_CONTACT_FIELDS, PLAY_BOOTSTRAP_FINDER_KINDS, PLAY_BOOTSTRAP_OUTPUT_FIELD_BY_FINDER, PLAY_BOOTSTRAP_PEOPLE_PROVIDER_CATEGORY, PLAY_BOOTSTRAP_PROVIDER_CATEGORY_BY_FINDER, PLAY_BOOTSTRAP_SOURCE_KINDS, PLAY_BOOTSTRAP_STAGE_KINDS, PLAY_BOOTSTRAP_TEMPLATES, PROD_URL, type PhoneStatus, type PlayBindings, type PlayBootstrapEntityKind, type PlayBootstrapFinderKind, type PlayCallExecution, type PlayCallOptions, type PlayDataset, type PlayDatasetInput, type PlayInputContract, type PlayJob, type PlayListItem, type PlayLiveEvent, type PlayRevisionSummary, type PlayRunActionPackage, type PlayRunDatasetActions, type PlayRunPackage, type PlayRunResult, type PlayRunStart, type PlaySheetRow, type PlaySheetRowsResult, type PlayStatus, type PlayStepProgramStep, type PrebuiltPlayRef, type PreviousCell, type PublishPlayVersionRequest, type PublishPlayVersionResult, RateLimitError, type ResolvedConfig, RunObserveTransportUnavailableError, type RunsListOptions, type RunsLogsOptions, type RunsLogsResult, type RunsNamespace, type RunsTailOptions, SDK_API_CONTRACT, SDK_VERSION, type SqlListenerDeclaration, type SqlListenerEvent, type SqlListenerOperation, type SqlQuery, type StartPlayRunRequest, type StepOptions, type StepProgram, type StepProgramResolver, type StepResolver, type StopPlayRunResult, type ToolDefinition, type ToolExecuteResult, type ToolExecution, type ToolExecutionRequest, type ToolMetadata, type ToolSearchOptions, type ToolSearchResult, defineInput, definePlay, defineWorkflow, extractSummaryFields, formatPlayBootstrapFinderKinds, formatPlayBootstrapFinderKindsForSentence, formatPlayBootstrapTemplates, getDefinedPlayMetadata, isDeeplineExtractorTarget, isPlayBootstrapFinderKind, isPlayBootstrapTemplate, resolveConfig, runIf, steps, tryConvertToList, writeCsvOutputFile, writeJsonOutputFile };
|
package/dist/index.js
CHANGED
|
@@ -437,7 +437,7 @@ var SDK_RELEASE = {
|
|
|
437
437
|
// 0.1.253 makes play-page browser opening opt-in and retires --no-open.
|
|
438
438
|
// 0.1.254 removes the internal operations tree from the published SDK CLI.
|
|
439
439
|
// Operators use the checkout-local deepline-admin binary instead.
|
|
440
|
-
version: "0.1.
|
|
440
|
+
version: "0.1.270",
|
|
441
441
|
contracts: {
|
|
442
442
|
api: {
|
|
443
443
|
name: "sdk-http-api",
|
package/dist/index.mjs
CHANGED
|
@@ -367,7 +367,7 @@ var SDK_RELEASE = {
|
|
|
367
367
|
// 0.1.253 makes play-page browser opening opt-in and retires --no-open.
|
|
368
368
|
// 0.1.254 removes the internal operations tree from the published SDK CLI.
|
|
369
369
|
// Operators use the checkout-local deepline-admin binary instead.
|
|
370
|
-
version: "0.1.
|
|
370
|
+
version: "0.1.270",
|
|
371
371
|
contracts: {
|
|
372
372
|
api: {
|
|
373
373
|
name: "sdk-http-api",
|