@platforma-open/milaboratories.mixcr-clonotyping-2 2.25.1 → 2.26.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/AGENTS.d.ts CHANGED
@@ -1,6 +1,3 @@
1
- //#endregion
2
- //#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.52.0/node_modules/@milaboratories/pl-model-common/dist/author_marker.d.ts
3
- //#region src/author_marker.d.ts
4
1
  /** Structure to help resolve conflicts if multiple participants writes to
5
2
  * the same state */
6
3
  interface AuthorMarker {
@@ -10,13 +7,32 @@ interface AuthorMarker {
10
7
  /** Sequential version of the state local to the author */
11
8
  localVersion: number;
12
9
  }
13
- //#endregion
14
- //#endregion
15
- //#region ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/typeAliases.d.cts
10
+ /**
11
+ * Intended to match web.Blob, node.Blob, node-fetch.Blob, etc.
12
+ */
13
+ interface BlobLike {
14
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/size) */
15
+ readonly size: number;
16
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/type) */
17
+ readonly type: string;
18
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/text) */
19
+ text(): Promise<string>;
20
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/slice) */
21
+ slice(start?: number, end?: number): BlobLike;
22
+ }
23
+ /**
24
+ * Intended to match web.File, node.File, node-fetch.File, etc.
25
+ */
26
+ interface FileLike extends BlobLike {
27
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/lastModified) */
28
+ readonly lastModified: number;
29
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/name) */
30
+ readonly name: string;
31
+ }
32
+ type Brand<B, K extends string = "__pl_model_brand__"> = { [key in K]: B; };
33
+ type Branded$1<T, B, K extends string = "__pl_model_brand__"> = T & Brand<B, K>;
16
34
  type Primitive = string | number | symbol | bigint | boolean | null | undefined;
17
35
  type Scalars = Primitive | Primitive[];
18
- //#endregion
19
- //#region ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/util.d.cts
20
36
  declare namespace util {
21
37
  type AssertEqual<T, U> = (<V>() => V extends T ? 1 : 2) extends (<V>() => V extends U ? 1 : 2) ? true : false;
22
38
  export type isAny<T> = 0 extends 1 & T ? true : false;
@@ -78,8 +94,6 @@ declare const ZodParsedType: {
78
94
  };
79
95
  type ZodParsedType = keyof typeof ZodParsedType;
80
96
  declare const getParsedType: (data: any) => ZodParsedType;
81
- //#endregion
82
- //#region ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/ZodError.d.cts
83
97
  type allKeys<T> = T extends any ? keyof T : never;
84
98
  type inferFlattenedErrors<T extends ZodType<any, any, any>, U = string> = typeToFlattenedError<TypeOf<T>, U>;
85
99
  type typeToFlattenedError<T, U = string> = {
@@ -234,15 +248,9 @@ type ErrorMapCtx = {
234
248
  type ZodErrorMap = (issue: ZodIssueOptionalMessage, _ctx: ErrorMapCtx) => {
235
249
  message: string;
236
250
  };
237
- //#endregion
238
- //#region ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/locales/en.d.cts
239
251
  declare const errorMap: ZodErrorMap;
240
- //#endregion
241
- //#region ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/errors.d.cts
242
252
  declare function setErrorMap(map: ZodErrorMap): void;
243
253
  declare function getErrorMap(): ZodErrorMap;
244
- //#endregion
245
- //#region ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/parseUtil.d.cts
246
254
  declare const makeIssue: (params: {
247
255
  data: any;
248
256
  path: (string | number)[];
@@ -319,8 +327,6 @@ declare const isAborted: (x: ParseReturnType<any>) => x is INVALID;
319
327
  declare const isDirty: <T>(x: ParseReturnType<T>) => x is OK<T> | DIRTY<T>;
320
328
  declare const isValid: <T>(x: ParseReturnType<T>) => x is OK<T>;
321
329
  declare const isAsync: <T>(x: ParseReturnType<T>) => x is AsyncParseReturnType<T>;
322
- //#endregion
323
- //#region ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/enumUtil.d.cts
324
330
  declare namespace enumUtil {
325
331
  type UnionToIntersectionFn<T> = (T extends unknown ? (k: () => T) => void : never) extends ((k: infer Intersection) => void) ? Intersection : never;
326
332
  type GetUnionLast<T> = UnionToIntersectionFn<T> extends (() => infer Last) ? Last : never;
@@ -329,8 +335,6 @@ declare namespace enumUtil {
329
335
  export type UnionToTupleString<T> = CastToStringTuple<UnionToTuple<T>>;
330
336
  export {};
331
337
  }
332
- //#endregion
333
- //#region ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/errorUtil.d.cts
334
338
  declare namespace errorUtil {
335
339
  type ErrMessage = string | {
336
340
  message?: string | undefined;
@@ -340,13 +344,9 @@ declare namespace errorUtil {
340
344
  };
341
345
  const toString: (message?: ErrMessage) => string | undefined;
342
346
  }
343
- //#endregion
344
- //#region ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/partialUtil.d.cts
345
347
  declare namespace partialUtil {
346
348
  type DeepPartial<T extends ZodTypeAny> = T extends ZodObject<ZodRawShape> ? ZodObject<{ [k in keyof T["shape"]]: ZodOptional<DeepPartial<T["shape"][k]>>; }, T["_def"]["unknownKeys"], T["_def"]["catchall"]> : T extends ZodArray<infer Type, infer Card> ? ZodArray<DeepPartial<Type>, Card> : T extends ZodOptional<infer Type> ? ZodOptional<DeepPartial<Type>> : T extends ZodNullable<infer Type> ? ZodNullable<DeepPartial<Type>> : T extends ZodTuple<infer Items> ? { [k in keyof Items]: Items[k] extends ZodTypeAny ? DeepPartial<Items[k]> : never; } extends (infer PI) ? PI extends ZodTupleItems ? ZodTuple<PI> : never : never : T;
347
349
  }
348
- //#endregion
349
- //#region ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/standard-schema.d.cts
350
350
  /**
351
351
  * The Standard Schema interface.
352
352
  */
@@ -449,8 +449,6 @@ declare namespace StandardSchemaV1 {
449
449
  export type InferOutput<Schema extends StandardSchemaV1> = NonNullable<Schema["~standard"]["types"]>["output"];
450
450
  export {};
451
451
  }
452
- //#endregion
453
- //#region ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/types.d.cts
454
452
  interface RefinementCtx {
455
453
  addIssue: (arg: IssueData) => void;
456
454
  path: (string | number)[];
@@ -1432,83 +1430,136 @@ declare const NEVER: never;
1432
1430
  declare namespace external_d_exports {
1433
1431
  export { AnyZodObject, AnyZodTuple, ArrayCardinality, ArrayKeys, AssertArray, AsyncParseReturnType, BRAND, CatchallInput, CatchallOutput, CustomErrorParams, DIRTY, DenormalizedError, EMPTY_PATH, Effect, EnumLike, EnumValues, ErrorMapCtx, FilterEnum, INVALID, Indices, InnerTypeOfFunction, InputTypeOfTuple, InputTypeOfTupleWithRest, IpVersion, IssueData, KeySchema, NEVER, OK, ObjectPair, OuterTypeOfFunction, OutputTypeOfTuple, OutputTypeOfTupleWithRest, ParseContext, ParseInput, ParseParams, ParsePath, ParsePathComponent, ParseResult, ParseReturnType, ParseStatus, PassthroughType, PreprocessEffect, Primitive, ProcessedCreateParams, RawCreateParams, RecordType, Refinement, RefinementCtx, RefinementEffect, SafeParseError, SafeParseReturnType, SafeParseSuccess, Scalars, ZodType as Schema, SomeZodObject, StringValidation, SuperRefinement, SyncParseReturnType, TransformEffect, TypeOf, UnknownKeysParam, Values, Writeable, ZodAny, ZodAnyDef, ZodArray, ZodArrayDef, ZodBigInt, ZodBigIntCheck, ZodBigIntDef, ZodBoolean, ZodBooleanDef, ZodBranded, ZodBrandedDef, ZodCatch, ZodCatchDef, ZodCustomIssue, ZodDate, ZodDateCheck, ZodDateDef, ZodDefault, ZodDefaultDef, ZodDiscriminatedUnion, ZodDiscriminatedUnionDef, ZodDiscriminatedUnionOption, ZodEffects, ZodEffectsDef, ZodEnum, ZodEnumDef, ZodError, ZodErrorMap, ZodFirstPartySchemaTypes, ZodFirstPartyTypeKind, ZodFormattedError, ZodFunction, ZodFunctionDef, ZodIntersection, ZodIntersectionDef, ZodInvalidArgumentsIssue, ZodInvalidDateIssue, ZodInvalidEnumValueIssue, ZodInvalidIntersectionTypesIssue, ZodInvalidLiteralIssue, ZodInvalidReturnTypeIssue, ZodInvalidStringIssue, ZodInvalidTypeIssue, ZodInvalidUnionDiscriminatorIssue, ZodInvalidUnionIssue, ZodIssue, ZodIssueBase, ZodIssueCode, ZodIssueOptionalMessage, ZodLazy, ZodLazyDef, ZodLiteral, ZodLiteralDef, ZodMap, ZodMapDef, ZodNaN, ZodNaNDef, ZodNativeEnum, ZodNativeEnumDef, ZodNever, ZodNeverDef, ZodNonEmptyArray, ZodNotFiniteIssue, ZodNotMultipleOfIssue, ZodNull, ZodNullDef, ZodNullable, ZodNullableDef, ZodNullableType, ZodNumber, ZodNumberCheck, ZodNumberDef, ZodObject, ZodObjectDef, ZodOptional, ZodOptionalDef, ZodOptionalType, ZodParsedType, ZodPipeline, ZodPipelineDef, ZodPromise, ZodPromiseDef, ZodRawShape, ZodReadonly, ZodReadonlyDef, ZodRecord, ZodRecordDef, ZodType as ZodSchema, ZodSet, ZodSetDef, ZodString, ZodStringCheck, ZodStringDef, ZodSymbol, ZodSymbolDef, ZodTooBigIssue, ZodTooSmallIssue, ZodEffects as ZodTransformer, ZodTuple, ZodTupleDef, ZodTupleItems, ZodType, ZodTypeAny, ZodTypeDef, ZodUndefined, ZodUndefinedDef, ZodUnion, ZodUnionDef, ZodUnionOptions, ZodUnknown, ZodUnknownDef, ZodUnrecognizedKeysIssue, ZodVoid, ZodVoidDef, addIssueToContext, anyType as any, arrayType as array, arrayOutputType, baseObjectInputType, baseObjectOutputType, bigIntType as bigint, booleanType as boolean, coerce, custom, dateType as date, datetimeRegex, errorMap as defaultErrorMap, deoptional, discriminatedUnionType as discriminatedUnion, effectsType as effect, enumType as enum, functionType as function, getErrorMap, getParsedType, TypeOf as infer, inferFlattenedErrors, inferFormattedError, input, instanceOfType as instanceof, intersectionType as intersection, isAborted, isAsync, isDirty, isValid, late, lazyType as lazy, literalType as literal, makeIssue, mapType as map, mergeTypes, nanType as nan, nativeEnumType as nativeEnum, neverType as never, noUnrecognized, nullType as null, nullableType as nullable, numberType as number, objectType as object, objectInputType, objectOutputType, objectUtil, oboolean, onumber, optionalType as optional, ostring, output, pipelineType as pipeline, preprocessType as preprocess, promiseType as promise, quotelessJson, recordType as record, setType as set, setErrorMap, strictObjectType as strictObject, stringType as string, symbolType as symbol, effectsType as transformer, tupleType as tuple, typeToFlattenedError, typecast, undefinedType as undefined, unionType as union, unknownType as unknown, util, voidType as void };
1434
1432
  }
1435
- //#endregion
1436
- //#region ../node_modules/.pnpm/@milaboratories+pl-error-like@1.12.10/node_modules/@milaboratories/pl-error-like/dist/error_like_shape.d.ts
1437
- //#region src/error_like_shape.d.ts
1438
- declare const BasePlErrorLike: ZodObject<{
1439
- type: ZodLiteral<"PlError">;
1440
- name: ZodString;
1441
- message: ZodString; /** The message with all details needed for SDK developers. */
1442
- fullMessage: ZodOptional<ZodString>;
1443
- stack: ZodOptional<ZodString>;
1444
- }, "strip", ZodTypeAny, {
1445
- type: "PlError";
1446
- message: string;
1447
- name: string;
1448
- fullMessage?: string | undefined;
1449
- stack?: string | undefined;
1450
- }, {
1451
- type: "PlError";
1452
- message: string;
1453
- name: string;
1454
- fullMessage?: string | undefined;
1455
- stack?: string | undefined;
1456
- }>;
1457
- /** Known Pl backend and ML errors. */
1458
- type PlErrorLike = TypeOf<typeof BasePlErrorLike> & {
1459
- cause?: ErrorLike;
1460
- errors?: ErrorLike[];
1461
- };
1462
- declare const PlErrorLike: ZodType<PlErrorLike>;
1463
- declare const BaseStandardErrorLike: ZodObject<{
1464
- type: ZodLiteral<"StandardError">;
1465
- name: ZodString;
1466
- message: ZodString;
1467
- stack: ZodOptional<ZodString>;
1433
+ /** Handle of locally downloaded blob. This handle is issued only after the
1434
+ * blob's content is downloaded locally, and ready for quick access. */
1435
+ type LocalBlobHandle = Branded$1<string, "LocalBlobHandle">;
1436
+ /** Handle of remote blob. This handle is issued as soon as the data becomes
1437
+ * available on the remote server. */
1438
+ type RemoteBlobHandle = Branded$1<string, "RemoteBlobHandle">;
1439
+ /** Being configured inside the output structure provides information about
1440
+ * blob's content and means to retrieve it when needed. */
1441
+ interface BlobHandleAndSize<H extends LocalBlobHandle | RemoteBlobHandle = LocalBlobHandle | RemoteBlobHandle> {
1442
+ /** Handle to retrieve block content using {@link BlobDriver.getContent()} */
1443
+ readonly handle: H;
1444
+ /** Blob size in bytes. */
1445
+ readonly size: number;
1446
+ }
1447
+ /** Range in bytes, from should be less than to. */
1448
+ declare const RangeBytes: ZodObject<{
1449
+ /** Included left border. */
1450
+ from: ZodNumber;
1451
+ /** Excluded right border. */
1452
+ to: ZodNumber;
1468
1453
  }, "strip", ZodTypeAny, {
1469
- type: "StandardError";
1470
- message: string;
1471
- name: string;
1472
- stack?: string | undefined;
1454
+ from: number;
1455
+ to: number;
1473
1456
  }, {
1474
- type: "StandardError";
1475
- message: string;
1476
- name: string;
1477
- stack?: string | undefined;
1457
+ from: number;
1458
+ to: number;
1478
1459
  }>;
1479
- /** Others unknown errors that could be thrown by the client. */
1480
- type StandardErrorLike = TypeOf<typeof BaseStandardErrorLike> & {
1481
- cause?: ErrorLike;
1482
- errors?: ErrorLike[];
1483
- };
1484
- declare const StandardErrorLike: ZodType<StandardErrorLike>;
1485
- declare const ErrorLike: ZodUnion<[ZodType<StandardErrorLike, ZodTypeDef, StandardErrorLike>, ZodType<PlErrorLike, ZodTypeDef, PlErrorLike>]>;
1486
- type ErrorLike = TypeOf<typeof ErrorLike>;
1487
- //#endregion
1488
- //#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.52.0/node_modules/@milaboratories/pl-model-common/dist/common_types.d.ts
1489
- type OutputWithStatus<T> = {
1490
- ok: true;
1491
- value: T;
1492
- stable: boolean;
1493
- } | {
1494
- ok: false;
1495
- errors: ErrorLike[];
1496
- moreErrors: boolean;
1460
+ type RangeBytes = TypeOf<typeof RangeBytes>;
1461
+ /** Being configured inside the output structure provides information about
1462
+ * locally downloaded blob and means to retrieve it's content when needed. This
1463
+ * structure is created only after the blob's content is downloaded locally, and
1464
+ * ready for quick access. */
1465
+ type LocalBlobHandleAndSize = BlobHandleAndSize<LocalBlobHandle>;
1466
+ /** Being configured inside the output structure provides information about
1467
+ * remote blob and means to retrieve it's content when needed. This structure
1468
+ * is created as soon as remote blob becomes available. */
1469
+ type RemoteBlobHandleAndSize = BlobHandleAndSize<RemoteBlobHandle>;
1470
+ /** Defines API of blob driver as it is seen from the block UI code. */
1471
+ interface BlobDriver {
1472
+ /**
1473
+ * Given the blob handle returns its content.
1474
+ * Depending on the handle type, content will be served from locally downloaded file,
1475
+ * or directly from remote platforma storage.
1476
+ */
1477
+ getContent(handle: LocalBlobHandle | RemoteBlobHandle, range?: RangeBytes): Promise<Uint8Array>;
1478
+ }
1479
+ interface ImportProgress {
1480
+ done: boolean;
1481
+ /** Status of indexing/uploading got from platforma gRPC. */
1482
+ status?: ImportStatus;
1483
+ /** True if BlobUpload, false if BlobIndex. */
1484
+ readonly isUpload: boolean;
1485
+ /** True if signature matched. */
1486
+ isUploadSignMatch?: boolean;
1487
+ /** Exists when an upload failed and was restarted,
1488
+ * but the error was recoverable.
1489
+ * If the error was non-recoverable,
1490
+ * the driver's computable will throw an error instead. */
1491
+ lastError?: string;
1492
+ }
1493
+ /** Almost direct mapping from proto struct got from gRPC. */
1494
+ interface ImportStatus {
1495
+ /** A float from 0 to 1 and is equal to bytesProcessed / bytesTotal. */
1496
+ readonly progress: number;
1497
+ readonly bytesProcessed?: number;
1498
+ readonly bytesTotal?: number;
1499
+ }
1500
+ /** Prefix constants — single source of truth for handle format. */
1501
+ declare const LIVE_LOG_PREFIX = "log+live://log/";
1502
+ declare const READY_LOG_PREFIX = "log+ready://log/";
1503
+ /** Handle of the live logs of a program.
1504
+ * The resource that represents a log can be deleted,
1505
+ * in this case the handle should be refreshed. */
1506
+ type LiveLogHandle = Branded$1<`${typeof LIVE_LOG_PREFIX}${string}`, "LiveLogHandle">;
1507
+ /** Handle of the ready logs of a program. */
1508
+ type ReadyLogHandle = Branded$1<`${typeof READY_LOG_PREFIX}${string}`, "ReadyLogHandle">;
1509
+ /** Handle of logs. This handle should be passed
1510
+ * to the driver for retrieving logs. */
1511
+ type AnyLogHandle = LiveLogHandle | ReadyLogHandle;
1512
+ /** Driver to retrieve logs given log handle */
1513
+ interface LogsDriver {
1514
+ lastLines(
1515
+ /** A handle that was issued previously. */
1516
+ handle: AnyLogHandle,
1517
+ /** Allows client to limit total data sent from server. */
1518
+ lineCount: number,
1519
+ /** Makes streamer to perform seek operation to given offset before sending the contents.
1520
+ * Client can just use the <new_offset> value of the last response from server to continue streaming after reconnection.
1521
+ * If undefined, then starts from the end. */
1522
+ offsetBytes?: number,
1523
+ /** Is substring for line search pattern.
1524
+ * This option makes controller to send to the client only lines, that
1525
+ * have given substring. */
1526
+ searchStr?: string): Promise<StreamingApiResponse>;
1527
+ readText(
1528
+ /** A handle that was issued previously. */
1529
+ handle: AnyLogHandle,
1530
+ /** Allows client to limit total data sent from server. */
1531
+ lineCount: number,
1532
+ /** Makes streamer to perform seek operation to given offset before sending the contents.
1533
+ * Client can just use the <new_offset> value of the last response from server to continue streaming after reconnection.
1534
+ * If undefined of 0, then starts from the beginning. */
1535
+ offsetBytes?: number,
1536
+ /** Is substring for line search pattern.
1537
+ * This option makes controller to send to the client only lines, that
1538
+ * have given substring. */
1539
+ searchStr?: string): Promise<StreamingApiResponse>;
1540
+ }
1541
+ /** Response of the driver.
1542
+ * The caller should give a handle to retrieve it.
1543
+ * It can be OK or outdated, in which case the handle
1544
+ * should be issued again. */
1545
+ type StreamingApiResponse = StreamingApiResponseOk | StreamingApiResponseHandleOutdated;
1546
+ type StreamingApiResponseOk = {
1547
+ /** The handle don't have to be updated,
1548
+ * the response is OK. */
1549
+ shouldUpdateHandle: false;
1550
+ /** Whether the log can still grow or it's in a final state. */
1551
+ live: boolean;
1552
+ /** Data of the response, in bytes. */
1553
+ data: Uint8Array;
1554
+ /** Current size of the file. It can grow if it's still live. */
1555
+ size: number;
1556
+ /** Offset in bytes from the beginning of a file. */
1557
+ newOffset: number;
1497
1558
  };
1498
- /** Base type for block outputs */
1499
- type BlockOutputsBase = Record<string, OutputWithStatus<unknown>>;
1500
- //#endregion
1501
- //#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.52.0/node_modules/@milaboratories/pl-model-common/dist/navigation.d.ts
1502
- /**
1503
- * Part of the block state, representing current navigation information
1504
- * (i.e. currently selected section)
1505
- */
1506
- type NavigationState<Href extends `/${string}` = `/${string}`> = {
1507
- readonly href: Href;
1559
+ /** The handle should be issued again, this one is done. */
1560
+ type StreamingApiResponseHandleOutdated = {
1561
+ shouldUpdateHandle: true;
1508
1562
  };
1509
- //#endregion
1510
- //#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.52.0/node_modules/@milaboratories/pl-model-common/dist/json.d.ts
1511
- //#region src/json.d.ts
1512
1563
  type JsonPrimitive = string | number | boolean | null;
1513
1564
  type JsonValue = JsonPrimitive | JsonValue[] | {
1514
1565
  [key: string]: JsonValue;
@@ -1521,82 +1572,6 @@ type StringifiedJson<T = unknown> = JsonCompatible<T> extends never ? never : st
1521
1572
  type CanonicalizedJson<T = unknown> = JsonCompatible<T> extends never ? never : string & {
1522
1573
  __json_canonicalized: T;
1523
1574
  };
1524
- //#endregion
1525
- //#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.52.0/node_modules/@milaboratories/pl-model-common/dist/block_state.d.ts
1526
- //#region src/block_state.d.ts
1527
- /**
1528
- * @template Args sets type of block arguments passed to the workflow
1529
- * @template Outputs type of the outputs returned by the workflow and rendered
1530
- * according to the output configuration specified for the block
1531
- * @template UiState data that stores only UI related state, that is not passed
1532
- * to the workflow
1533
- * @template Href typed href to represent navigation state
1534
- */
1535
- type BlockState<Args = unknown, Outputs extends BlockOutputsBase = BlockOutputsBase, UiState = unknown, Href extends `/${string}` = `/${string}`> = {
1536
- /** Block arguments passed to the workflow */
1537
- args: Args;
1538
- /** UI State persisted in the block state but not passed to the backend
1539
- * template */
1540
- ui: UiState;
1541
- /** Outputs rendered with block config */
1542
- outputs: Outputs;
1543
- /** Current navigation state */
1544
- navigationState: NavigationState<Href>;
1545
- readonly author: AuthorMarker | undefined;
1546
- };
1547
- type BlockStateV3<_Data = unknown, Outputs extends BlockOutputsBase = BlockOutputsBase, Href extends `/${string}` = `/${string}`> = {
1548
- /** Block storage persisted in the block state */
1549
- blockStorage: StringifiedJson;
1550
- /** Outputs rendered with block config */
1551
- outputs: Outputs;
1552
- /** Current navigation state */
1553
- navigationState: NavigationState<Href>;
1554
- readonly author: AuthorMarker | undefined;
1555
- };
1556
- //#endregion
1557
- //#endregion
1558
- //#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.52.0/node_modules/@milaboratories/pl-model-common/dist/branding.d.ts
1559
- //#region src/branding.d.ts
1560
- type Brand<B, K extends string = "__pl_model_brand__"> = { [key in K]: B; };
1561
- type Branded$1<T, B, K extends string = "__pl_model_brand__"> = T & Brand<B, K>;
1562
- //#endregion
1563
- //#endregion
1564
- //#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.52.0/node_modules/@milaboratories/pl-model-common/dist/dialog/index.d.ts
1565
- //#region src/dialog/index.d.ts
1566
- /**
1567
- * File filter passed to the native save dialog. Matches Electron's
1568
- * `FileFilter` shape so desktop runtimes can forward it verbatim.
1569
- */
1570
- interface FileFilter {
1571
- name: string;
1572
- extensions: string[];
1573
- }
1574
- /**
1575
- * Options accepted by `Dialog.showSaveDialog`. The UI supplies only a
1576
- * default file name; the main-process handler decides the default
1577
- * directory (e.g. `~/Downloads`).
1578
- */
1579
- interface ShowSaveDialogOptions {
1580
- defaultFileName?: string;
1581
- filters?: FileFilter[];
1582
- title?: string;
1583
- }
1584
- /** Result of `Dialog.showSaveDialog`. */
1585
- interface ShowSaveDialogResult {
1586
- canceled: boolean;
1587
- path?: string;
1588
- }
1589
- /**
1590
- * UI-facing save-dialog service. Implemented by desktop runtimes that
1591
- * can open a native file picker; absent in web/preview environments.
1592
- */
1593
- interface DialogService {
1594
- showSaveDialog(options: ShowSaveDialogOptions): Promise<ShowSaveDialogResult>;
1595
- }
1596
- //#endregion
1597
- //#endregion
1598
- //#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.52.0/node_modules/@milaboratories/pl-model-common/dist/pool_entry.d.ts
1599
- //#region src/pool_entry.d.ts
1600
1575
  interface PoolEntry<K extends string = string, R extends {} = {}> extends Disposable {
1601
1576
  /** Resource key, calculated using provided `calculateParamsKey` function */
1602
1577
  readonly key: K;
@@ -1609,9 +1584,6 @@ interface PoolEntry<K extends string = string, R extends {} = {}> extends Dispos
1609
1584
  */
1610
1585
  readonly unref: () => void;
1611
1586
  }
1612
- //#endregion
1613
- //#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.52.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/table_common.d.ts
1614
- //#region src/drivers/pframe/table_common.d.ts
1615
1587
  type PTableColumnSpecAxis = {
1616
1588
  type: "axis";
1617
1589
  id: AxisId;
@@ -1641,9 +1613,6 @@ type PTableColumnIdColumn = {
1641
1613
  };
1642
1614
  /** Unified PTable column identifier */
1643
1615
  type PTableColumnId = PTableColumnIdAxis | PTableColumnIdColumn;
1644
- //#endregion
1645
- //#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.52.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/data_types.d.ts
1646
- //#region src/drivers/pframe/data_types.d.ts
1647
1616
  type PVectorDataInt = Int32Array;
1648
1617
  type PVectorDataLong = BigInt64Array;
1649
1618
  type PVectorDataFloat = Float32Array;
@@ -1737,10 +1706,6 @@ interface ExportPTableOptions {
1737
1706
  */
1738
1707
  headerNames?: string[];
1739
1708
  }
1740
- //#endregion
1741
- //#endregion
1742
- //#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.52.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/data_info.d.ts
1743
- //#region src/drivers/pframe/data_info.d.ts
1744
1709
  /**
1745
1710
  * Represents a JavaScript representation of a value in a PColumn. Can be null, a number, or a string.
1746
1711
  * These are the primitive types that can be stored directly in PColumns.
@@ -1824,245 +1789,79 @@ type DataInfo<Blob> = JsonDataInfo | JsonPartitionedDataInfo<Blob> | BinaryParti
1824
1789
  */
1825
1790
  type PColumnValuesEntry = {
1826
1791
  key: PColumnKey;
1827
- val: PColumnValue;
1828
- };
1829
- /**
1830
- * Array of key-value entries representing explicit column data.
1831
- * Used for lightweight explicit instantiation of PColumns.
1832
- */
1833
- type PColumnValues = PColumnValuesEntry[];
1834
- //#endregion
1835
- //#region ../node_modules/.pnpm/@milaboratories+helpers@1.14.5/node_modules/@milaboratories/helpers/dist/types/brand.d.ts
1836
- //#region src/types/brand.d.ts
1837
- /**
1838
- * Phantom-property brand. The key is a plain string literal rather than a
1839
- * `unique symbol` so the resulting type stays fully nameable across packages.
1840
- *
1841
- * A `unique symbol` key forces TS, when forced to expand `Branded<T, B>` into
1842
- * its structural form (e.g. inside `Record<BrandedUnion, V>` index signatures
1843
- * during dts emit), to write out `typeof __brand` — a value-level reference
1844
- * to the symbol. If the symbol's declaring module isn't reachable from the
1845
- * compilation root, dts emit fails with TS4023 ("cannot be named"). Using a
1846
- * string key sidesteps this entirely: `{ __brand: B }` is a plain structural
1847
- * type, nameable from anywhere.
1848
- *
1849
- * Phantom keys provide compile-time discrimination only — two different brand
1850
- * tags `B1 ≠ B2` make `Branded<T, B1>` and `Branded<T, B2>` mutually
1851
- * incompatible regardless of whether the key is a symbol or a string.
1852
- */
1853
- type Branded<T, B> = T & {
1854
- readonly __brand: B;
1855
- };
1856
- //#endregion
1857
- //#region ../node_modules/.pnpm/@milaboratories+helpers@1.14.5/node_modules/@milaboratories/helpers/dist/types/index.d.ts
1858
- //#region src/types/index.d.ts
1859
- type Nil = null | undefined;
1860
- //#endregion
1861
- //#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.52.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec/overridden.d.ts
1862
- //#region src/drivers/pframe/spec/overridden.d.ts
1863
- type SpecOverrides = Pick<PColumnSpec, "domain" | "contextDomain" | "annotations"> & {
1864
- axesSpec?: AxisPatches;
1865
- };
1866
- /**
1867
- * `source` can reference a leaf or a Filtered/Discovered id, but never another
1868
- * Overridden id — there is no `Overridden<Overridden<...>>`. Repeated overrides
1869
- * merge at the outer wrapper via {@link mergeSpecOverrides}.
1870
- */
1871
- interface ColumnOverriddenKey {
1872
- __isOverridden: true;
1873
- source: Exclude<ColumnUniversalId, ColumnOverriddenId>;
1874
- specOverrides: SpecOverrides;
1875
- }
1876
- type ColumnOverriddenId = Branded<CanonicalizedJson<ColumnOverriddenKey>, "ColumnOverriddenId">;
1877
- //#endregion
1878
- //#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.52.0/node_modules/@milaboratories/pl-model-common/dist/ref.d.ts
1879
- //#region src/ref.d.ts
1880
- declare const PlRef: ZodReadonly<ZodObject<{
1881
- __isRef: ZodLiteral<true>;
1882
- blockId: ZodString;
1883
- name: ZodString;
1884
- requireEnrichments: ZodOptional<ZodLiteral<true>>;
1885
- }, "strip", ZodTypeAny, {
1886
- __isRef: true;
1887
- blockId: string;
1888
- name: string;
1889
- requireEnrichments?: true | undefined;
1890
- }, {
1891
- __isRef: true;
1892
- blockId: string;
1893
- name: string;
1894
- requireEnrichments?: true | undefined;
1895
- }>>;
1896
- type PlRef = TypeOf<typeof PlRef>;
1897
- //#endregion
1898
- //#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.52.0/node_modules/@milaboratories/pl-model-common/dist/drivers/interfaces.d.ts
1899
- //#region src/drivers/interfaces.d.ts
1900
- /**
1901
- * Intended to match web.Blob, node.Blob, node-fetch.Blob, etc.
1902
- */
1903
- interface BlobLike {
1904
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/size) */
1905
- readonly size: number;
1906
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/type) */
1907
- readonly type: string;
1908
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/text) */
1909
- text(): Promise<string>;
1910
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/slice) */
1911
- slice(start?: number, end?: number): BlobLike;
1912
- }
1913
- /**
1914
- * Intended to match web.File, node.File, node-fetch.File, etc.
1915
- */
1916
- interface FileLike extends BlobLike {
1917
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/lastModified) */
1918
- readonly lastModified: number;
1919
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/name) */
1920
- readonly name: string;
1921
- }
1922
- //#endregion
1923
- //#endregion
1924
- //#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.52.0/node_modules/@milaboratories/pl-model-common/dist/drivers/blob.d.ts
1925
- //#region src/drivers/blob.d.ts
1926
- /** Handle of locally downloaded blob. This handle is issued only after the
1927
- * blob's content is downloaded locally, and ready for quick access. */
1928
- type LocalBlobHandle = Branded$1<string, "LocalBlobHandle">;
1929
- /** Handle of remote blob. This handle is issued as soon as the data becomes
1930
- * available on the remote server. */
1931
- type RemoteBlobHandle = Branded$1<string, "RemoteBlobHandle">;
1932
- /** Being configured inside the output structure provides information about
1933
- * blob's content and means to retrieve it when needed. */
1934
- interface BlobHandleAndSize<H extends LocalBlobHandle | RemoteBlobHandle = LocalBlobHandle | RemoteBlobHandle> {
1935
- /** Handle to retrieve block content using {@link BlobDriver.getContent()} */
1936
- readonly handle: H;
1937
- /** Blob size in bytes. */
1938
- readonly size: number;
1939
- }
1940
- /** Range in bytes, from should be less than to. */
1941
- declare const RangeBytes: ZodObject<{
1942
- /** Included left border. */
1943
- from: ZodNumber;
1944
- /** Excluded right border. */
1945
- to: ZodNumber;
1946
- }, "strip", ZodTypeAny, {
1947
- from: number;
1948
- to: number;
1949
- }, {
1950
- from: number;
1951
- to: number;
1952
- }>;
1953
- type RangeBytes = TypeOf<typeof RangeBytes>;
1954
- /** Being configured inside the output structure provides information about
1955
- * locally downloaded blob and means to retrieve it's content when needed. This
1956
- * structure is created only after the blob's content is downloaded locally, and
1957
- * ready for quick access. */
1958
- type LocalBlobHandleAndSize = BlobHandleAndSize<LocalBlobHandle>;
1959
- /** Being configured inside the output structure provides information about
1960
- * remote blob and means to retrieve it's content when needed. This structure
1961
- * is created as soon as remote blob becomes available. */
1962
- type RemoteBlobHandleAndSize = BlobHandleAndSize<RemoteBlobHandle>;
1963
- /** Defines API of blob driver as it is seen from the block UI code. */
1964
- interface BlobDriver {
1965
- /**
1966
- * Given the blob handle returns its content.
1967
- * Depending on the handle type, content will be served from locally downloaded file,
1968
- * or directly from remote platforma storage.
1969
- */
1970
- getContent(handle: LocalBlobHandle | RemoteBlobHandle, range?: RangeBytes): Promise<Uint8Array>;
1971
- }
1972
- //#endregion
1973
- //#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.52.0/node_modules/@milaboratories/pl-model-common/dist/drivers/upload.d.ts
1974
- //#region src/drivers/upload.d.ts
1975
- interface ImportProgress {
1976
- done: boolean;
1977
- /** Status of indexing/uploading got from platforma gRPC. */
1978
- status?: ImportStatus;
1979
- /** True if BlobUpload, false if BlobIndex. */
1980
- readonly isUpload: boolean;
1981
- /** True if signature matched. */
1982
- isUploadSignMatch?: boolean;
1983
- /** Exists when an upload failed and was restarted,
1984
- * but the error was recoverable.
1985
- * If the error was non-recoverable,
1986
- * the driver's computable will throw an error instead. */
1987
- lastError?: string;
1988
- }
1989
- /** Almost direct mapping from proto struct got from gRPC. */
1990
- interface ImportStatus {
1991
- /** A float from 0 to 1 and is equal to bytesProcessed / bytesTotal. */
1992
- readonly progress: number;
1993
- readonly bytesProcessed?: number;
1994
- readonly bytesTotal?: number;
1995
- }
1996
- //#endregion
1997
- //#endregion
1998
- //#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.52.0/node_modules/@milaboratories/pl-model-common/dist/drivers/log.d.ts
1999
- //#region src/drivers/log.d.ts
2000
- /** Prefix constants — single source of truth for handle format. */
2001
- declare const LIVE_LOG_PREFIX = "log+live://log/";
2002
- declare const READY_LOG_PREFIX = "log+ready://log/";
2003
- /** Handle of the live logs of a program.
2004
- * The resource that represents a log can be deleted,
2005
- * in this case the handle should be refreshed. */
2006
- type LiveLogHandle = Branded$1<`${typeof LIVE_LOG_PREFIX}${string}`, "LiveLogHandle">;
2007
- /** Handle of the ready logs of a program. */
2008
- type ReadyLogHandle = Branded$1<`${typeof READY_LOG_PREFIX}${string}`, "ReadyLogHandle">;
2009
- /** Handle of logs. This handle should be passed
2010
- * to the driver for retrieving logs. */
2011
- type AnyLogHandle = LiveLogHandle | ReadyLogHandle;
2012
- /** Driver to retrieve logs given log handle */
2013
- interface LogsDriver {
2014
- lastLines(
2015
- /** A handle that was issued previously. */
2016
- handle: AnyLogHandle,
2017
- /** Allows client to limit total data sent from server. */
2018
- lineCount: number,
2019
- /** Makes streamer to perform seek operation to given offset before sending the contents.
2020
- * Client can just use the <new_offset> value of the last response from server to continue streaming after reconnection.
2021
- * If undefined, then starts from the end. */
2022
- offsetBytes?: number,
2023
- /** Is substring for line search pattern.
2024
- * This option makes controller to send to the client only lines, that
2025
- * have given substring. */
2026
- searchStr?: string): Promise<StreamingApiResponse>;
2027
- readText(
2028
- /** A handle that was issued previously. */
2029
- handle: AnyLogHandle,
2030
- /** Allows client to limit total data sent from server. */
2031
- lineCount: number,
2032
- /** Makes streamer to perform seek operation to given offset before sending the contents.
2033
- * Client can just use the <new_offset> value of the last response from server to continue streaming after reconnection.
2034
- * If undefined of 0, then starts from the beginning. */
2035
- offsetBytes?: number,
2036
- /** Is substring for line search pattern.
2037
- * This option makes controller to send to the client only lines, that
2038
- * have given substring. */
2039
- searchStr?: string): Promise<StreamingApiResponse>;
2040
- }
2041
- /** Response of the driver.
2042
- * The caller should give a handle to retrieve it.
2043
- * It can be OK or outdated, in which case the handle
2044
- * should be issued again. */
2045
- type StreamingApiResponse = StreamingApiResponseOk | StreamingApiResponseHandleOutdated;
2046
- type StreamingApiResponseOk = {
2047
- /** The handle don't have to be updated,
2048
- * the response is OK. */
2049
- shouldUpdateHandle: false;
2050
- /** Whether the log can still grow or it's in a final state. */
2051
- live: boolean;
2052
- /** Data of the response, in bytes. */
2053
- data: Uint8Array;
2054
- /** Current size of the file. It can grow if it's still live. */
2055
- size: number;
2056
- /** Offset in bytes from the beginning of a file. */
2057
- newOffset: number;
2058
- };
2059
- /** The handle should be issued again, this one is done. */
2060
- type StreamingApiResponseHandleOutdated = {
2061
- shouldUpdateHandle: true;
1792
+ val: PColumnValue;
1793
+ };
1794
+ /**
1795
+ * Array of key-value entries representing explicit column data.
1796
+ * Used for lightweight explicit instantiation of PColumns.
1797
+ */
1798
+ type PColumnValues = PColumnValuesEntry[];
1799
+ /** One output of one block: the block and the name of the output in its output context. */
1800
+ declare const BlockOutput: ZodObject<{
1801
+ blockId: ZodString;
1802
+ name: ZodString;
1803
+ }, "strip", ZodTypeAny, {
1804
+ blockId: string;
1805
+ name: string;
1806
+ }, {
1807
+ blockId: string;
1808
+ name: string;
1809
+ }>;
1810
+ type BlockOutput = Readonly<TypeOf<typeof BlockOutput>>;
1811
+ declare const PlRef: ZodReadonly<ZodObject<{
1812
+ blockId: ZodString;
1813
+ name: ZodString;
1814
+ __isRef: ZodLiteral<true>;
1815
+ requireEnrichments: ZodOptional<ZodLiteral<true>>;
1816
+ }, "strip", ZodTypeAny, {
1817
+ blockId: string;
1818
+ name: string;
1819
+ __isRef: true;
1820
+ requireEnrichments?: true | undefined;
1821
+ }, {
1822
+ blockId: string;
1823
+ name: string;
1824
+ __isRef: true;
1825
+ requireEnrichments?: true | undefined;
1826
+ }>>;
1827
+ type PlRef = TypeOf<typeof PlRef>;
1828
+ /**
1829
+ * Phantom-property brand. The key is a plain string literal rather than a
1830
+ * `unique symbol` so the resulting type stays fully nameable across packages.
1831
+ *
1832
+ * A `unique symbol` key forces TS, when forced to expand `Branded<T, B>` into
1833
+ * its structural form (e.g. inside `Record<BrandedUnion, V>` index signatures
1834
+ * during dts emit), to write out `typeof __brand` — a value-level reference
1835
+ * to the symbol. If the symbol's declaring module isn't reachable from the
1836
+ * compilation root, dts emit fails with TS4023 ("cannot be named"). Using a
1837
+ * string key sidesteps this entirely: `{ __brand: B }` is a plain structural
1838
+ * type, nameable from anywhere.
1839
+ *
1840
+ * Phantom keys provide compile-time discrimination only — two different brand
1841
+ * tags `B1 ≠ B2` make `Branded<T, B1>` and `Branded<T, B2>` mutually
1842
+ * incompatible regardless of whether the key is a symbol or a string.
1843
+ */
1844
+ type Branded<T, B> = T & {
1845
+ readonly __brand: B;
2062
1846
  };
2063
- //#endregion
2064
- //#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.52.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/column_filter.d.ts
2065
- //#region src/drivers/pframe/column_filter.d.ts
1847
+ type Nil = null | undefined;
1848
+ /**
1849
+ * A picked value of a column, as a block passes it to its workflow: always text. A number cell
1850
+ * is picked as its decimal string (`String(cell)`), so a value picked from a number column and
1851
+ * the same value picked as text are one value.
1852
+ */
1853
+ type ColumnValue = string;
1854
+ /** A column a block's args reference, with the values of it they picked. */
1855
+ interface ColumnReference {
1856
+ /**
1857
+ * The column id in canonical form. A plain output is the bare
1858
+ * `{ __isRef, blockId, name }` id whether the args held it with `requireEnrichments` or
1859
+ * without, as an object or as a string.
1860
+ */
1861
+ ref: ColumnUniversalId;
1862
+ /** Distinct picked values in the order first met; `null` when the args picked none. */
1863
+ values: null | ColumnValue[];
1864
+ }
2066
1865
  /** Allows to search multiple columns in different contexts. */
2067
1866
  interface ColumnFilter {
2068
1867
  /** Match any of the types listed here. If undefined, will be ignored during
@@ -2079,10 +1878,6 @@ interface ColumnFilter {
2079
1878
  * pattern. */
2080
1879
  readonly annotationPattern?: Record<string, string>;
2081
1880
  }
2082
- //#endregion
2083
- //#endregion
2084
- //#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.52.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/filter_spec.d.ts
2085
- //#region src/drivers/pframe/filter_spec.d.ts
2086
1881
  type FilterSpecNode<Leaf, CommonNode = {}, CommonLeaf = {}> = (CommonLeaf & Leaf) | (CommonNode & {
2087
1882
  type: "not";
2088
1883
  filter: FilterSpecNode<Leaf, CommonNode, CommonLeaf>;
@@ -2201,9 +1996,6 @@ type FilterSpec<Leaf extends FilterSpecLeaf<unknown> = FilterSpecLeaf<SUniversal
2201
1996
  type RootFilterSpec<Leaf extends FilterSpecLeaf<unknown> = FilterSpecLeaf<SUniversalPColumnId>, CommonNode = {}, CommonLeaf = CommonNode> = Extract<FilterSpec<Leaf, CommonNode, CommonLeaf>, {
2202
1997
  type: "or" | "and";
2203
1998
  }>;
2204
- //#endregion
2205
- //#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.52.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/find_columns.d.ts
2206
- //#region src/drivers/pframe/find_columns.d.ts
2207
1999
  /**
2208
2000
  * Request to search among existing columns in the PFrame. Two filtering
2209
2001
  * criteria can be used: (1) column ашдеук, to search for columns with
@@ -2228,10 +2020,6 @@ interface FindColumnsResponse {
2228
2020
  /** Array of column ids found using request criteria. */
2229
2021
  readonly hits: PColumnIdAndSpec[];
2230
2022
  }
2231
- //#endregion
2232
- //#endregion
2233
- //#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.52.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/unique_values.d.ts
2234
- //#region src/drivers/pframe/unique_values.d.ts
2235
2023
  /** Calculate set of unique values for a specific axis for the filtered set of records */
2236
2024
  interface UniqueValuesRequest {
2237
2025
  /** Target axis id */
@@ -2249,15 +2037,8 @@ interface UniqueValuesResponse {
2249
2037
  /** True if limit was reached and response contain non-exhaustive list of values. */
2250
2038
  readonly overflow: boolean;
2251
2039
  }
2252
- //#endregion
2253
- //#endregion
2254
- //#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.52.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/pframe.d.ts
2255
2040
  /** Information required to instantiate a PFrame. */
2256
2041
  type PFrameDef<Col> = Col[];
2257
- //#endregion
2258
- //#endregion
2259
- //#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.52.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/driver.d.ts
2260
- //#region src/drivers/pframe/driver.d.ts
2261
2042
  /** PFrame handle */
2262
2043
  type PFrameHandle = Branded$1<string, "PFrame">;
2263
2044
  /** PFrame handle */
@@ -2323,10 +2104,6 @@ interface PFrameDriver {
2323
2104
  */
2324
2105
  exportPTable(handle: PTableHandle, options: ExportPTableOptions): Promise<void>;
2325
2106
  }
2326
- //#endregion
2327
- //#endregion
2328
- //#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.52.0/node_modules/@milaboratories/pl-model-common/dist/drivers/ls.d.ts
2329
- //#region src/drivers/ls.d.ts
2330
2107
  type ImportFileHandleUpload = `upload://upload/${string}`;
2331
2108
  type ImportFileHandleIndex = `index://index/${string}`;
2332
2109
  type ImportFileHandle = ImportFileHandleUpload | ImportFileHandleIndex;
@@ -2405,9 +2182,6 @@ interface LsDriver {
2405
2182
  /** Saves currently opened block webview as a PDF. */
2406
2183
  exportToPdf?(): Promise<void>;
2407
2184
  }
2408
- //#endregion
2409
- //#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.52.0/node_modules/@milaboratories/pl-model-common/dist/columns/column_selector.d.ts
2410
- //#region src/columns/column_selector.d.ts
2411
2185
  /** Relaxed string matcher input: plain string, single matcher, or array of mixed. */
2412
2186
  type RelaxedStringMatchers = string | StringMatcher | (string | StringMatcher)[];
2413
2187
  /** Relaxed record matcher: values can be plain strings or relaxed matchers. */
@@ -2432,9 +2206,6 @@ interface RelaxedColumnSelector {
2432
2206
  }
2433
2207
  /** One or many relaxed column selectors; normalizes to MultiColumnSelector[]. */
2434
2208
  type ColumnSelector = RelaxedColumnSelector | RelaxedColumnSelector[];
2435
- //#endregion
2436
- //#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.52.0/node_modules/@milaboratories/pl-model-common/dist/drivers/columns/discover_columns_options.d.ts
2437
- //#region src/drivers/columns/discover_columns_options.d.ts
2438
2209
  /**
2439
2210
  * Axis matching behaviour applied to `discover` requests.
2440
2211
  *
@@ -2480,9 +2251,6 @@ type ColumnsDiscoverOptions = DiscoverColumnsOptions;
2480
2251
  * of the filter surface — only `include` / `exclude` / `anchors`.
2481
2252
  */
2482
2253
  type ColumnsFilterOptions = Omit<DiscoverColumnsOptions, "mode" | "maxHops">;
2483
- //#endregion
2484
- //#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.52.0/node_modules/@milaboratories/pl-model-common/dist/columns/types.d.ts
2485
- //#region src/columns/types.d.ts
2486
2254
  /**
2487
2255
  * Opaque sandbox/host accessor handle.
2488
2256
  *
@@ -2561,9 +2329,6 @@ interface AccessorLike<Self extends AccessorLike<Self>> {
2561
2329
  /** Decode the data payload as JSON. Returns `undefined` if no data. */
2562
2330
  getDataAsJson<T = unknown>(): T | undefined;
2563
2331
  }
2564
- //#endregion
2565
- //#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.52.0/node_modules/@milaboratories/pl-model-common/dist/drivers/columns/columns_collection_driver.d.ts
2566
- //#region src/drivers/columns/columns_collection_driver.d.ts
2567
2332
  /**
2568
2333
  * Opaque host-owned handle for a `ColumnsCollection` instance. Issued by
2569
2334
  * {@link ColumnsCollectionDriver.create}, refcounted by the driver, and
@@ -2621,13 +2386,14 @@ interface ColumnsCollectionDriverHost<A extends AccessorLike<A> = AccessorLike<a
2621
2386
  */
2622
2387
  getSpecDriver(): PFrameSpecDriver;
2623
2388
  /**
2624
- * Resolve the canonical {@link PColumnSpec} for a leaf {@link PObjectId}.
2389
+ * Resolve the {@link PObjectSpec} for a leaf {@link PObjectId}.
2625
2390
  * Returns `undefined` when the id is not present in the active registry
2626
2391
  * (e.g. handed to the driver via a `{kind:"ids"}` source whose underlying
2627
- * column has since left the visible scope). Override-wrapped ids are
2628
- * unwrapped by the caller — this method only resolves the underlying leaf.
2392
+ * column has since left the visible scope) or when its spec is not readable
2393
+ * yet. Override-wrapped ids are unwrapped by the caller — this method
2394
+ * only resolves the underlying leaf.
2629
2395
  */
2630
- resolveSpec(id: PObjectId): PColumnSpec | undefined;
2396
+ resolveSpec(id: PObjectId): PObjectSpec | undefined;
2631
2397
  }
2632
2398
  /**
2633
2399
  * Sandbox / UI view of the `ColumnsCollection` driver. Same methods as
@@ -2668,17 +2434,13 @@ interface ColumnsCollectionDriverModel {
2668
2434
  */
2669
2435
  interface ColumnsCollectionDriver {
2670
2436
  create(sources: ReadonlyArray<SerializedColumnsSource>, host: ColumnsCollectionDriverHost): PoolEntry<CollectionHandle>;
2671
- isEmpty(handle: CollectionHandle): boolean;
2437
+ isEmpty(handle: CollectionHandle, host: ColumnsCollectionDriverHost): boolean;
2672
2438
  isFinal(handle: CollectionHandle): boolean;
2673
2439
  getColumns(handle: CollectionHandle, host: ColumnsCollectionDriverHost): ColumnUniversalId[];
2674
2440
  addSource(handle: CollectionHandle, sources: ReadonlyArray<SerializedColumnsSource>, host: ColumnsCollectionDriverHost): PoolEntry<CollectionHandle>;
2675
2441
  discover(handle: CollectionHandle, options: ColumnsDiscoverOptions, host: ColumnsCollectionDriverHost): PoolEntry<CollectionHandle>;
2676
2442
  filter(handle: CollectionHandle, options: ColumnsFilterOptions, host: ColumnsCollectionDriverHost): PoolEntry<CollectionHandle>;
2677
2443
  }
2678
- //#endregion
2679
- //#endregion
2680
- //#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.52.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/query/query_common.d.ts
2681
- //#region src/drivers/pframe/query/query_common.d.ts
2682
2444
  /**
2683
2445
  * Structural type information for a single column: the axis value types (in
2684
2446
  * order) and the single column value type. Mirrors the self-contained
@@ -3728,10 +3490,6 @@ interface QuerySpecOverride<Q, SO> {
3728
3490
  /** Spec override patch to overlay on the inner spec. */
3729
3491
  override: SO;
3730
3492
  }
3731
- //#endregion
3732
- //#endregion
3733
- //#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.52.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/query/query_data.d.ts
3734
- //#region src/drivers/pframe/query/query_data.d.ts
3735
3493
  /**
3736
3494
  * Column identifier with type specification.
3737
3495
  *
@@ -3814,10 +3572,6 @@ type DataExprAxisRef = ExprAxisRef<number>;
3814
3572
  type DataExprColumnRef = ExprColumnRef<number>;
3815
3573
  type DataQueryExpression = DataExprColumnRef | DataExprAxisRef | ExprConstant | ExprNumericBinary<DataQueryExpression> | ExprNumericComparison<DataQueryExpression> | ExprNumericUnary<DataQueryExpression> | ExprStringEquals<DataQueryExpression> | ExprStringContains<DataQueryExpression> | ExprStringRegex<DataQueryExpression> | ExprStringContainsFuzzy<DataQueryExpression> | ExprIsNull<DataQueryExpression> | ExprFillNull<DataQueryExpression> | ExprLogicalUnary<DataQueryExpression> | ExprLogicalVariadic<DataQueryExpression> | ExprIsIn<DataQueryExpression, string> | ExprIsIn<DataQueryExpression, number> | ExprCast<DataQueryExpression> | ExprConditional<DataQueryExpression> | ExprRanking<DataQueryExpression, number, number>;
3816
3574
  type DataQueryBooleanExpression = InferBooleanExpressionUnion<DataQueryExpression>;
3817
- //#endregion
3818
- //#endregion
3819
- //#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.52.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec_driver.d.ts
3820
- //#region src/drivers/pframe/spec_driver.d.ts
3821
3575
  /** Matches a string value either exactly or by regex pattern */
3822
3576
  type StringMatcher = {
3823
3577
  type: "exact";
@@ -4034,9 +3788,6 @@ interface PFrameSpecDriver {
4034
3788
  filters: PTableRecordFilter[];
4035
3789
  }): DataQueryBooleanExpression[];
4036
3790
  }
4037
- //#endregion
4038
- //#endregion
4039
- //#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.52.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec/selectors.d.ts
4040
3791
  /** Single axis selector */
4041
3792
  interface SingleAxisSelector {
4042
3793
  /** Axis name (required) */
@@ -4057,9 +3808,6 @@ interface AxisQualification {
4057
3808
  /** Additional context domain entries applied to the axis. */
4058
3809
  readonly contextDomain: Record<string, string>;
4059
3810
  }
4060
- //#endregion
4061
- //#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.52.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec/filtered_column.d.ts
4062
- //#region src/drivers/pframe/spec/filtered_column.d.ts
4063
3811
  /** Value of an axis filter */
4064
3812
  type AxisFilterValue = number | string;
4065
3813
  /** Axis filter by index */
@@ -4075,9 +3823,6 @@ interface ColumnFilteredKey {
4075
3823
  axisFilters: AxisFilterByIdx[];
4076
3824
  }
4077
3825
  type ColumnFilteredId = Branded<CanonicalizedJson<ColumnFilteredKey>, "ColumnFilteredId">;
4078
- //#endregion
4079
- //#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.52.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/query/query_spec.d.ts
4080
- //#region src/drivers/pframe/query/query_spec.d.ts
4081
3826
  /**
4082
3827
  * Join entry for spec-layer queries — the base join entry extended with
4083
3828
  * per-axis domain constraints. Absent `qualifications` is equivalent to `[]`.
@@ -4146,10 +3891,6 @@ type SpecExprAxisRef = ExprAxisRef<SingleAxisSelector>;
4146
3891
  type SpecExprColumnRef = ExprColumnRef<ColumnUniversalId>;
4147
3892
  type SpecQueryExpression = SpecExprColumnRef | SpecExprAxisRef | ExprConstant | ExprNumericBinary<SpecQueryExpression> | ExprNumericComparison<SpecQueryExpression> | ExprNumericUnary<SpecQueryExpression> | ExprStringEquals<SpecQueryExpression> | ExprStringContains<SpecQueryExpression> | ExprStringRegex<SpecQueryExpression> | ExprStringContainsFuzzy<SpecQueryExpression> | ExprIsNull<SpecQueryExpression> | ExprFillNull<SpecQueryExpression> | ExprLogicalUnary<SpecQueryExpression> | ExprLogicalVariadic<SpecQueryExpression> | ExprIsIn<SpecQueryExpression, string> | ExprIsIn<SpecQueryExpression, number> | ExprCast<SpecQueryExpression> | ExprConditional<SpecQueryExpression> | ExprRanking<SpecQueryExpression, SingleAxisSelector, PObjectId>;
4148
3893
  type SpecQueryBooleanExpression = InferBooleanExpressionUnion<SpecQueryExpression>;
4149
- //#endregion
4150
- //#endregion
4151
- //#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.52.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/table_calculate.d.ts
4152
- //#region src/drivers/pframe/table_calculate.d.ts
4153
3894
  /** Defines a terminal column node in the join request tree */
4154
3895
  interface ColumnJoinEntry<Col> {
4155
3896
  /** Node type discriminator */
@@ -4436,9 +4177,6 @@ type CalculateTableDataRequest<Col> = {
4436
4177
  };
4437
4178
  /** Response for {@link CalculateTableDataRequest} */
4438
4179
  type CalculateTableDataResponse = FullPTableColumnData[];
4439
- //#endregion
4440
- //#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.52.0/node_modules/@milaboratories/pl-model-common/dist/pool/spec.d.ts
4441
- //#region src/pool/spec.d.ts
4442
4180
  /** Any object exported into the result pool by the block always have spec attached to it */
4443
4181
  type PObjectSpec = {
4444
4182
  /** PObject kind discriminator */
@@ -4475,9 +4213,6 @@ interface PObject<Data> {
4475
4213
  /** A handle to data object */
4476
4214
  readonly data: Data;
4477
4215
  }
4478
- //#endregion
4479
- //#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.52.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec/spec.d.ts
4480
- //#region src/drivers/pframe/spec/spec.d.ts
4481
4216
  declare const ValueType: {
4482
4217
  readonly Int: "Int";
4483
4218
  readonly Long: "Long";
@@ -4626,9 +4361,20 @@ interface AxisId {
4626
4361
  }
4627
4362
  /** Array of axis ids */
4628
4363
  type AxesId = AxisId[];
4629
- //#endregion
4630
- //#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.52.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec/ids.d.ts
4631
- //#region src/drivers/pframe/spec/ids.d.ts
4364
+ type SpecOverrides = Pick<PColumnSpec, "domain" | "contextDomain" | "annotations"> & {
4365
+ axesSpec?: AxisPatches;
4366
+ };
4367
+ /**
4368
+ * `source` can reference a leaf or a Filtered/Discovered id, but never another
4369
+ * Overridden id — there is no `Overridden<Overridden<...>>`. Repeated overrides
4370
+ * merge at the outer wrapper via {@link mergeSpecOverrides}.
4371
+ */
4372
+ interface ColumnOverriddenKey {
4373
+ __isOverridden: true;
4374
+ source: Exclude<ColumnUniversalId, ColumnOverriddenId>;
4375
+ specOverrides: SpecOverrides;
4376
+ }
4377
+ type ColumnOverriddenId = Branded<CanonicalizedJson<ColumnOverriddenKey>, "ColumnOverriddenId">;
4632
4378
  /**
4633
4379
  * Per-axis patches keyed by positional index in the base spec's `axesSpec`.
4634
4380
  *
@@ -4645,9 +4391,6 @@ type AxisPatches = Record<number, Partial<AxisSpec>>;
4645
4391
  */
4646
4392
  type SUniversalPColumnId = ColumnUniversalId;
4647
4393
  type ColumnUniversalId = LocalPObjectId | GlobalPObjectId | ColumnFilteredId | ColumnDiscoveredId | ColumnOverriddenId;
4648
- //#endregion
4649
- //#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.52.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec/discovered_column.d.ts
4650
- //#region src/drivers/pframe/spec/discovered_column.d.ts
4651
4394
  interface ColumnDiscoveredKey {
4652
4395
  __isDiscovered: true;
4653
4396
  column: ColumnUniversalId;
@@ -4660,9 +4403,194 @@ type PathItem = {
4660
4403
  type: "linker";
4661
4404
  column: ColumnUniversalId;
4662
4405
  };
4663
- //#endregion
4664
- //#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.52.0/node_modules/@milaboratories/pl-model-common/dist/services/service_types.d.ts
4665
- //#region src/services/service_types.d.ts
4406
+ /**
4407
+ * How a reference an args holds fares against what the last run of the producing block exports:
4408
+ * - `ok` — the output is exported and holds every picked value, or the reference picks none;
4409
+ * - `pending` — the producer's run, or the column data, is still being computed;
4410
+ * - `notRun` — the producer has no last run, so it exports nothing yet;
4411
+ * - `unreadable` — the output is exported, but its values cannot be read: the spec does not list
4412
+ * them and the data is not JSON, or looking up or reading the column failed;
4413
+ * - `unavailable` — the output is not exported: the producer is deleted, is not above the block
4414
+ * holding the reference, or its run no longer exports the output;
4415
+ * - `missingValues` — the output is exported, but lacks the listed picked values.
4416
+ */
4417
+ type LinkCheck = {
4418
+ type: "ok";
4419
+ } | {
4420
+ type: "pending";
4421
+ } | {
4422
+ type: "notRun";
4423
+ } | {
4424
+ type: "unreadable";
4425
+ } | {
4426
+ type: "unavailable";
4427
+ } | {
4428
+ type: "missingValues";
4429
+ values: ColumnValue[];
4430
+ };
4431
+ /** A column of another block that a block's args reference, with the values picked from it. */
4432
+ interface OutgoingReference extends ColumnReference {
4433
+ /** The block output the column is computed from. */
4434
+ producer: BlockOutput;
4435
+ }
4436
+ /**
4437
+ * How a reference fares against the last run of its producer, with the label of the column:
4438
+ * `pl7.app/label` of the exported column, or, when the last run does not export it, of the
4439
+ * column the producer prepares before it is run; `null` when neither has one.
4440
+ */
4441
+ interface ExportVerdict {
4442
+ check: LinkCheck;
4443
+ columnLabel: null | string;
4444
+ }
4445
+ /** A reference one block's args hold to a column another block exports, as it was checked. */
4446
+ interface ColumnLink extends OutgoingReference, ExportVerdict {
4447
+ /** The block whose args hold the reference. */
4448
+ holderBlockId: string;
4449
+ }
4450
+ /**
4451
+ * Column links of block `blockId`: `dependencies` — outputs of other blocks its args reference,
4452
+ * its current args, else those of its last run; `dependents` — references the args of other
4453
+ * blocks hold to its outputs. Each is checked against the last run of the block exporting the
4454
+ * column. `labels` maps the other blocks the links name to their labels, for those that have one.
4455
+ */
4456
+ interface BlockColumnLinks {
4457
+ blockId: string;
4458
+ dependencies: ColumnLink[];
4459
+ dependents: ColumnLink[];
4460
+ labels: Record<string, string>;
4461
+ }
4462
+ declare const BasePlErrorLike: ZodObject<{
4463
+ type: ZodLiteral<"PlError">;
4464
+ name: ZodString;
4465
+ message: ZodString;
4466
+ /** The message with all details needed for SDK developers. */
4467
+ fullMessage: ZodOptional<ZodString>;
4468
+ stack: ZodOptional<ZodString>;
4469
+ }, "strip", ZodTypeAny, {
4470
+ type: "PlError";
4471
+ name: string;
4472
+ message: string;
4473
+ fullMessage?: string | undefined;
4474
+ stack?: string | undefined;
4475
+ }, {
4476
+ type: "PlError";
4477
+ name: string;
4478
+ message: string;
4479
+ fullMessage?: string | undefined;
4480
+ stack?: string | undefined;
4481
+ }>;
4482
+ /** Known Pl backend and ML errors. */
4483
+ type PlErrorLike = TypeOf<typeof BasePlErrorLike> & {
4484
+ cause?: ErrorLike;
4485
+ errors?: ErrorLike[];
4486
+ };
4487
+ declare const PlErrorLike: ZodType<PlErrorLike>;
4488
+ declare const BaseStandardErrorLike: ZodObject<{
4489
+ type: ZodLiteral<"StandardError">;
4490
+ name: ZodString;
4491
+ message: ZodString;
4492
+ stack: ZodOptional<ZodString>;
4493
+ }, "strip", ZodTypeAny, {
4494
+ type: "StandardError";
4495
+ name: string;
4496
+ message: string;
4497
+ stack?: string | undefined;
4498
+ }, {
4499
+ type: "StandardError";
4500
+ name: string;
4501
+ message: string;
4502
+ stack?: string | undefined;
4503
+ }>;
4504
+ /** Others unknown errors that could be thrown by the client. */
4505
+ type StandardErrorLike = TypeOf<typeof BaseStandardErrorLike> & {
4506
+ cause?: ErrorLike;
4507
+ errors?: ErrorLike[];
4508
+ };
4509
+ declare const StandardErrorLike: ZodType<StandardErrorLike>;
4510
+ declare const ErrorLike: ZodUnion<[ZodType<StandardErrorLike, ZodTypeDef, StandardErrorLike>, ZodType<PlErrorLike, ZodTypeDef, PlErrorLike>]>;
4511
+ type ErrorLike = TypeOf<typeof ErrorLike>;
4512
+ type OutputWithStatus<T> = {
4513
+ ok: true;
4514
+ value: T;
4515
+ stable: boolean;
4516
+ } | {
4517
+ ok: false;
4518
+ errors: ErrorLike[];
4519
+ moreErrors: boolean;
4520
+ };
4521
+ /** Base type for block outputs */
4522
+ type BlockOutputsBase = Record<string, OutputWithStatus<unknown>>;
4523
+ /**
4524
+ * Part of the block state, representing current navigation information
4525
+ * (i.e. currently selected section)
4526
+ */
4527
+ type NavigationState<Href extends `/${string}` = `/${string}`> = {
4528
+ readonly href: Href;
4529
+ };
4530
+ /**
4531
+ * @template Args sets type of block arguments passed to the workflow
4532
+ * @template Outputs type of the outputs returned by the workflow and rendered
4533
+ * according to the output configuration specified for the block
4534
+ * @template UiState data that stores only UI related state, that is not passed
4535
+ * to the workflow
4536
+ * @template Href typed href to represent navigation state
4537
+ */
4538
+ type BlockState<Args = unknown, Outputs extends BlockOutputsBase = BlockOutputsBase, UiState = unknown, Href extends `/${string}` = `/${string}`> = {
4539
+ /** Block arguments passed to the workflow */
4540
+ args: Args;
4541
+ /** UI State persisted in the block state but not passed to the backend
4542
+ * template */
4543
+ ui: UiState;
4544
+ /** Outputs rendered with block config */
4545
+ outputs: Outputs;
4546
+ /** Current navigation state */
4547
+ navigationState: NavigationState<Href>;
4548
+ readonly author: AuthorMarker | undefined;
4549
+ };
4550
+ type BlockStateV3<_Data = unknown, Outputs extends BlockOutputsBase = BlockOutputsBase, Href extends `/${string}` = `/${string}`> = {
4551
+ /** Block storage persisted in the block state */
4552
+ blockStorage: StringifiedJson;
4553
+ /** Outputs rendered with block config */
4554
+ outputs: Outputs;
4555
+ /** Current navigation state */
4556
+ navigationState: NavigationState<Href>;
4557
+ readonly author: AuthorMarker | undefined;
4558
+ /**
4559
+ * Column links of the block: outputs of other blocks its args reference, and blocks whose args
4560
+ * reference its outputs. `undefined` in app versions that do not compute them.
4561
+ */
4562
+ readonly columnLinks: BlockColumnLinks | undefined;
4563
+ };
4564
+ /**
4565
+ * File filter passed to the native save dialog. Matches Electron's
4566
+ * `FileFilter` shape so desktop runtimes can forward it verbatim.
4567
+ */
4568
+ interface FileFilter {
4569
+ name: string;
4570
+ extensions: string[];
4571
+ }
4572
+ /**
4573
+ * Options accepted by `Dialog.showSaveDialog`. The UI supplies only a
4574
+ * default file name; the main-process handler decides the default
4575
+ * directory (e.g. `~/Downloads`).
4576
+ */
4577
+ interface ShowSaveDialogOptions {
4578
+ defaultFileName?: string;
4579
+ filters?: FileFilter[];
4580
+ title?: string;
4581
+ }
4582
+ /** Result of `Dialog.showSaveDialog`. */
4583
+ interface ShowSaveDialogResult {
4584
+ canceled: boolean;
4585
+ path?: string;
4586
+ }
4587
+ /**
4588
+ * UI-facing save-dialog service. Implemented by desktop runtimes that
4589
+ * can open a native file picker; absent in web/preview environments.
4590
+ */
4591
+ interface DialogService {
4592
+ showSaveDialog(options: ShowSaveDialogOptions): Promise<ShowSaveDialogResult>;
4593
+ }
4666
4594
  type ServiceTypesLike<Model = unknown, Ui = unknown, Kind extends ServiceType = ServiceType, ModelHost = Model, UiHost = Ui> = {
4667
4595
  readonly __types?: {
4668
4596
  model: Model;
@@ -4690,19 +4618,12 @@ type UiServices$1 = { [K in keyof TServices as ExtractServiceName<TServices[K]>]
4690
4618
  type ServiceNameLiterals = { [K in keyof TServices]: ExtractServiceName<TServices[K]>; };
4691
4619
  /** Auto-derived requires* feature flags from Services keys. */
4692
4620
  type ServiceRequireFlags = { [K in keyof TServices as `requires${K & string}`]?: boolean; };
4693
- //#endregion
4694
- //#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.52.0/node_modules/@milaboratories/pl-model-common/dist/services/service_declarations.d.ts
4695
- //#region src/services/service_declarations.d.ts
4696
4621
  declare const Services: {
4697
4622
  PFrameSpec: Branded$1<"pframeSpec", ServiceTypesLike<PFrameSpecDriver, PFrameSpecDriver, "wasm", PFrameSpecDriver, PFrameSpecDriver>>;
4698
4623
  PFrame: Branded$1<"pframe", ServiceTypesLike<PFrameModelDriver<PColumn<string | PColumnValues | DataInfo<string>>>, PFrameDriver, "node", PFrameModelDriver<PColumn<string | PColumnValues | DataInfo<string>>>, PFrameDriver>>;
4699
4624
  Dialog: Branded$1<"dialog", ServiceTypesLike<Record<string, never>, DialogService, "main", Record<string, never>, DialogService>>;
4700
4625
  ColumnsCollection: Branded$1<"columnsCollection", ServiceTypesLike<ColumnsCollectionDriverModel, ColumnsCollectionDriverModel, "wasm", ColumnsCollectionDriver, ColumnsCollectionDriver>>;
4701
4626
  };
4702
- //#endregion
4703
- //#endregion
4704
- //#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.52.0/node_modules/@milaboratories/pl-model-common/dist/driver_kit.d.ts
4705
- //#region src/driver_kit.d.ts
4706
4627
  /** Set of all drivers exposed in UI SDK via the platforma object. */
4707
4628
  interface DriverKit {
4708
4629
  /** Driver allowing to retrieve blob data */
@@ -4721,31 +4642,31 @@ interface DriverKit {
4721
4642
  /** Driver allowing to interact with PFrames and PTables */
4722
4643
  readonly pFrameDriver: PFrameDriver;
4723
4644
  }
4724
- //#endregion
4725
- //#endregion
4726
- //#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.52.0/node_modules/@milaboratories/pl-model-common/dist/flags/block_flags.d.ts
4727
4645
  /**
4728
4646
  * Known block flags. Flags are set during model compilation, see `BlockModelV3` feature flags for more details and for initial values.
4729
4647
  */
4730
4648
  type BlockCodeKnownFeatureFlags = {
4731
4649
  readonly supportsLazyState?: boolean;
4732
4650
  readonly supportsPframeQueryRanking?: boolean;
4651
+ /** The block UI reads `columnLinks` from the block state, so the app computes them for it. */
4652
+ readonly supportsColumnLinks?: boolean;
4733
4653
  readonly requiresModelAPIVersion?: number;
4734
4654
  readonly requiresUIAPIVersion?: number;
4735
4655
  readonly requiresCreatePTable?: number;
4736
4656
  readonly requiresPFramesVersion?: number;
4657
+ /**
4658
+ * The block may derive args while they are incomplete and keep them from running with
4659
+ * `argsIssues`. Set for every block the SDK builds. A runtime that does not know this flag
4660
+ * would run such incomplete args, so it must refuse the block.
4661
+ */
4662
+ readonly requiresArgsIssues?: boolean;
4737
4663
  } & ServiceRequireFlags;
4738
- //#endregion
4739
- //#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.52.0/node_modules/@milaboratories/pl-model-common/dist/errors.d.ts
4740
4664
  type ResultOrError<S, F = Error> = {
4741
4665
  value: S;
4742
4666
  error?: undefined;
4743
4667
  } | {
4744
4668
  error: F;
4745
4669
  };
4746
- //#endregion
4747
- //#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.52.0/node_modules/@milaboratories/pl-model-common/dist/utag.d.ts
4748
- //#region src/utag.d.ts
4749
4670
  /** Value returned for changing states supporting reactive listening for changes */
4750
4671
  interface ValueWithUTag<V> {
4751
4672
  /** Value snapshot. */
@@ -4762,10 +4683,6 @@ interface ValueWithUTag<V> {
4762
4683
  interface ValueWithUTagAndAuthor<V> extends ValueWithUTag<V> {
4763
4684
  readonly author?: AuthorMarker;
4764
4685
  }
4765
- //#endregion
4766
- //#endregion
4767
- //#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.10/node_modules/@platforma-sdk/model/dist/block_state_patch.d.ts
4768
- //#region src/block_state_patch.d.ts
4769
4686
  /** Patch for the structural object */
4770
4687
  type Patch<K, V> = {
4771
4688
  /** Field name to patch */
@@ -4777,10 +4694,6 @@ type Patch<K, V> = {
4777
4694
  type Unionize<T extends Record<string, unknown>> = { [K in keyof T]: Patch<K, T[K]>; }[keyof T];
4778
4695
  /** Patch for the BlockState, pushed by onStateUpdates method in SDK. */
4779
4696
  type BlockStatePatch<Args = unknown, Outputs extends BlockOutputsBase = BlockOutputsBase, UiState = unknown, Href extends `/${string}` = `/${string}`> = Unionize<BlockState<Args, Outputs, UiState, Href>>;
4780
- //#endregion
4781
- //#endregion
4782
- //#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.10/node_modules/@platforma-sdk/model/dist/plugin_handle.d.ts
4783
- //#region src/plugin_handle.d.ts
4784
4697
  /**
4785
4698
  * Phantom-only base type for constraining PluginHandle's type parameter.
4786
4699
  *
@@ -4805,8 +4718,6 @@ interface PluginFactoryLike<Data extends Record<string, unknown> = Record<string
4805
4718
  * Constrained with PluginFactoryLike (not PluginFactory) to avoid variance issues.
4806
4719
  */
4807
4720
  type PluginHandle<F extends PluginFactoryLike = PluginFactoryLike> = Branded<string, F>;
4808
- //#endregion
4809
- //#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.10/node_modules/@platforma-sdk/model/dist/block_storage.d.ts
4810
4721
  /** Payload for storage mutation operations. SDK defines specific operations. */
4811
4722
  type MutateStoragePayload<T = unknown> = {
4812
4723
  operation: "update-block-data";
@@ -4816,8 +4727,6 @@ type MutateStoragePayload<T = unknown> = {
4816
4727
  pluginId: PluginHandle;
4817
4728
  value: unknown;
4818
4729
  };
4819
- //#endregion
4820
- //#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.10/node_modules/@platforma-sdk/model/dist/bconfig/lambdas.d.ts
4821
4730
  /** Additional information that may alter lambda rendering procedure. */
4822
4731
  type ConfigRenderLambdaFlags = {
4823
4732
  /**
@@ -4852,10 +4761,6 @@ type InferOutputsFromLambdas<OutputsCfg extends Record<string, ConfigRenderLambd
4852
4761
  withStatus: true;
4853
4762
  } ? false : true;
4854
4763
  }; };
4855
- //#endregion
4856
- //#endregion
4857
- //#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.10/node_modules/@platforma-sdk/model/dist/block_api_v1.d.ts
4858
- //#region src/block_api_v1.d.ts
4859
4764
  /** Returned by state subscription methods to be able to cancel the subscription. */
4860
4765
  type CancelSubscription = () => void;
4861
4766
  /** Defines methods to read and write current block data. */
@@ -4915,9 +4820,6 @@ interface BlockApiV1<Args = unknown, Outputs extends BlockOutputsBase = BlockOut
4915
4820
  * */
4916
4821
  setNavigationState(state: NavigationState<Href>): Promise<void>;
4917
4822
  }
4918
- //#endregion
4919
- //#endregion
4920
- //#region ../node_modules/.pnpm/fast-json-patch@3.1.1/node_modules/fast-json-patch/module/core.d.ts
4921
4823
  declare type Operation = AddOperation<any> | RemoveOperation | ReplaceOperation<any> | MoveOperation | CopyOperation | TestOperation<any> | GetOperation<any>;
4922
4824
  interface BaseOperation {
4923
4825
  path: string;
@@ -4949,9 +4851,6 @@ interface GetOperation<T> extends BaseOperation {
4949
4851
  op: '_get';
4950
4852
  value: T;
4951
4853
  }
4952
- //#endregion
4953
- //#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.10/node_modules/@platforma-sdk/model/dist/block_api_v2.d.ts
4954
- //#region src/block_api_v2.d.ts
4955
4854
  /** Defines methods to read and write current block data. */
4956
4855
  interface BlockApiV2<Args = unknown, Outputs extends BlockOutputsBase = BlockOutputsBase, UiState = unknown, Href extends `/${string}` = `/${string}`> {
4957
4856
  /**
@@ -4999,15 +4898,9 @@ interface BlockApiV2<Args = unknown, Outputs extends BlockOutputsBase = BlockOut
4999
4898
  * */
5000
4899
  dispose(): Promise<ResultOrError<void>>;
5001
4900
  }
5002
- //#endregion
5003
- //#endregion
5004
- //#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.10/node_modules/@platforma-sdk/model/dist/version.d.ts
5005
4901
  type SdkInfo = {
5006
4902
  readonly sdkVersion: string;
5007
4903
  };
5008
- //#endregion
5009
- //#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.10/node_modules/@platforma-sdk/model/dist/services/block_services.d.ts
5010
- //#region src/services/block_services.d.ts
5011
4904
  /**
5012
4905
  * Services required by all V3 blocks by default.
5013
4906
  * Edit this when a new service should be available to all blocks.
@@ -5022,15 +4915,10 @@ declare const BLOCK_SERVICE_FLAGS: {
5022
4915
  readonly requiresColumnsCollection: true;
5023
4916
  };
5024
4917
  type BlockServiceFlags = typeof BLOCK_SERVICE_FLAGS;
5025
- //#endregion
5026
- //#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.10/node_modules/@platforma-sdk/model/dist/services/service_resolve.d.ts
5027
- //#region src/services/service_resolve.d.ts
5028
4918
  type FlagToName<Flag extends string> = Flag extends `requires${infer K}` ? K extends keyof ServiceNameLiterals ? ServiceNameLiterals[K] : never : never;
5029
4919
  type RequiredServiceNames<Flags> = { [K in keyof Flags & `requires${string}`]: Flags[K] extends true ? FlagToName<K & string> : never; }[keyof Flags & `requires${string}`];
5030
4920
  type ResolveUiServices<Flags> = Pick<UiServices$1, RequiredServiceNames<Flags> & keyof UiServices$1>;
5031
4921
  type BlockDefaultUiServices = ResolveUiServices<BlockServiceFlags>;
5032
- //#endregion
5033
- //#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.10/node_modules/@platforma-sdk/model/dist/plugin_model.d.ts
5034
4922
  /**
5035
4923
  * Runtime definition for a single public output field.
5036
4924
  * Stored in PluginModel and passed through BlockModelInfo to the UI layer.
@@ -5038,9 +4926,6 @@ type BlockDefaultUiServices = ResolveUiServices<BlockServiceFlags>;
5038
4926
  type PublicOutputFieldDef = {
5039
4927
  readonly getter: (data: unknown) => unknown;
5040
4928
  };
5041
- //#endregion
5042
- //#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.10/node_modules/@platforma-sdk/model/dist/block_api_v3.d.ts
5043
- //#region src/block_api_v3.d.ts
5044
4929
  /** Defines methods to read and write current block data. */
5045
4930
  interface BlockApiV3<_Data = unknown, _Args = unknown, Outputs extends BlockOutputsBase = BlockOutputsBase, Href extends `/${string}` = `/${string}`> {
5046
4931
  /**
@@ -5064,15 +4949,20 @@ interface BlockApiV3<_Data = unknown, _Args = unknown, Outputs extends BlockOutp
5064
4949
  * Sets block navigation state.
5065
4950
  * */
5066
4951
  setNavigationState(state: NavigationState<Href>): Promise<ResultOrError<void>>;
4952
+ /**
4953
+ * Opens another block of the same project in the app, as selecting it in the project does.
4954
+ * Resolves once the app has accepted the request, which may hide this block's UI; an error
4955
+ * result when the project has no block with this id.
4956
+ *
4957
+ * Absent in app versions that cannot open blocks on a block's request: check for it before
4958
+ * offering the user to open a block.
4959
+ * */
4960
+ openBlock?(blockId: string): Promise<ResultOrError<void>>;
5067
4961
  /**
5068
4962
  * Disposes the block API.
5069
4963
  * */
5070
4964
  dispose(): Promise<ResultOrError<void>>;
5071
4965
  }
5072
- //#endregion
5073
- //#endregion
5074
- //#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.10/node_modules/@platforma-sdk/model/dist/platforma.d.ts
5075
- //#region src/platforma.d.ts
5076
4966
  /** Defines all methods to interact with the platform environment from within a block UI. @deprecated */
5077
4967
  interface PlatformaV1<Args = unknown, Outputs extends Record<string, OutputWithStatus<unknown>> = Record<string, OutputWithStatus<unknown>>, UiState = unknown, Href extends `/${string}` = `/${string}`> extends BlockApiV1<Args, Outputs, UiState, Href>, DriverKit {
5078
4968
  /** Information about SDK version current platforma environment was compiled with. */
@@ -5111,9 +5001,6 @@ type BlockModelInfo = {
5111
5001
  type InferOutputsType<Pl extends Platforma> = Pl extends Platforma<unknown, infer Outputs> ? Outputs : never;
5112
5002
  type InferDataType<Pl extends Platforma> = Pl extends Platforma<unknown, Record<string, OutputWithStatus<unknown>>, infer Data> ? Data : never;
5113
5003
  type InferHrefType<Pl extends Platforma> = Pl extends Platforma<unknown, BlockOutputsBase, unknown, infer Href> ? Href : never;
5114
- //#endregion
5115
- //#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.10/node_modules/@platforma-sdk/model/dist/components/PlDataTable/typesV8.d.ts
5116
- //#region src/components/PlDataTable/typesV8.d.ts
5117
5004
  type PlTableColumnIdJson$1 = CanonicalizedJson<PTableColumnId>;
5118
5005
  type PlDataTableGridStateCore$1 = {
5119
5006
  /** Includes column ordering */
@@ -5181,16 +5068,13 @@ type PTableParamsV2$1 = {
5181
5068
  defaultFilters: null | PlDataTableFilters$1;
5182
5069
  };
5183
5070
  type PlDataTableStateV2Normalized$1 = {
5184
- /** Version for upgrades */
5185
- version: 8;
5071
+ /** Version for upgrades. v9 has the v8 shape; it marks column ids rewritten to the current form. */
5072
+ version: 9;
5186
5073
  /** Internal states, LRU cache for 5 sourceId-s */
5187
5074
  stateCache: PlDataTableStateV2CacheEntry$1[];
5188
5075
  /** PTable params derived from the cache state for the current sourceId */
5189
5076
  pTableParams: PTableParamsV2$1;
5190
5077
  };
5191
- //#endregion
5192
- //#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.10/node_modules/@platforma-sdk/model/dist/components/PlDataTable/typesV4.d.ts
5193
- //#region src/components/PlDataTable/typesV4.d.ts
5194
5078
  type PlDataTableFilterState = {
5195
5079
  id: PTableColumnId;
5196
5080
  alphabetic: boolean;
@@ -5340,10 +5224,6 @@ type PlTableFilterStringContainsFuzzyMatch = {
5340
5224
  type PlTableFilterString = PlTableFilterCommon | PlTableFilterStringEquals | PlTableFilterStringNotEquals | PlTableFilterStringContains | PlTableFilterStringDoesNotContain | PlTableFilterStringMatches | PlTableFilterStringDoesNotMatch | PlTableFilterStringContainsFuzzyMatch;
5341
5225
  /** All PlTableFilters filter entries */
5342
5226
  type PlTableFilter = PlTableFilterNumber | PlTableFilterString;
5343
- //#endregion
5344
- //#endregion
5345
- //#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.10/node_modules/@platforma-sdk/model/dist/components/PlDataTable/typesV7.d.ts
5346
- //#region src/components/PlDataTable/typesV7.d.ts
5347
5227
  type PlTableColumnIdJson = CanonicalizedJson<PTableColumnId>;
5348
5228
  type PlDataTableGridStateCore = {
5349
5229
  /** Includes column ordering */
@@ -5418,10 +5298,6 @@ type PlDataTableStateV2Normalized = {
5418
5298
  /** PTable params derived from the cache state for the current sourceId */
5419
5299
  pTableParams: PTableParamsV2;
5420
5300
  };
5421
- //#endregion
5422
- //#endregion
5423
- //#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.10/node_modules/@platforma-sdk/model/dist/components/PlDataTable/typesV6.d.ts
5424
- //#region src/components/PlDataTable/typesV6.d.ts
5425
5301
  /**
5426
5302
  * v6 colId scheme: bare canonicalized `PTableColumnSpec` (full spec including
5427
5303
  * all annotations and `pl7.app/trace`). v7 dropped the spec body and now uses
@@ -5455,10 +5331,6 @@ type PlDataTableStateV2V6 = {
5455
5331
  stateCache: PlDataTableStateV2V6CacheEntry[];
5456
5332
  pTableParams: PTableParamsV2;
5457
5333
  };
5458
- //#endregion
5459
- //#endregion
5460
- //#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.10/node_modules/@platforma-sdk/model/dist/components/PlDataTable/typesV5.d.ts
5461
- //#region src/components/PlDataTable/typesV5.d.ts
5462
5334
  /**
5463
5335
  * v5 colId wrapper. v5 stored every grid colId as `{ source, labeled }` —
5464
5336
  * `source` was the original column spec, `labeled` was the spec with
@@ -5484,10 +5356,6 @@ type PlDataTableGridStateV5 = {
5484
5356
  hiddenColIds: PlDataTableV5ColIdJson[];
5485
5357
  };
5486
5358
  };
5487
- //#endregion
5488
- //#endregion
5489
- //#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.10/node_modules/@platforma-sdk/model/dist/components/PlDataTable/state-migration.d.ts
5490
- //#region src/components/PlDataTable/state-migration.d.ts
5491
5359
  /**
5492
5360
  * PlDataTableV2 persisted state
5493
5361
  */
@@ -5584,9 +5452,11 @@ type PlDataTableStateV2 = {
5584
5452
  searchString?: string;
5585
5453
  }[];
5586
5454
  pTableParams: PTableParamsV2;
5587
- } | PlDataTableStateV2V6 | PlDataTableStateV2Normalized | PlDataTableStateV2Normalized$1;
5588
- //#endregion
5589
- //#region ../model/dist/args.d.ts
5455
+ } | PlDataTableStateV2V6 | PlDataTableStateV2Normalized | PlDataTableStateV2V8 | PlDataTableStateV2Normalized$1;
5456
+ /** v8 state: the current shape, column ids not yet checked for the pre-rework form. */
5457
+ type PlDataTableStateV2V8 = Omit<PlDataTableStateV2Normalized$1, "version"> & {
5458
+ version: 8;
5459
+ };
5590
5460
  declare const BlockArgs: ZodObject<{
5591
5461
  assembleClonesBy: ZodOptional<ZodString>;
5592
5462
  assembleContigsBy: ZodOptional<ZodString>;
@@ -5594,39 +5464,38 @@ declare const BlockArgs: ZodObject<{
5594
5464
  cloneClusteringMode: ZodOptional<ZodEnum<["relaxed", "default", "off"]>>;
5595
5465
  customBlockLabel: ZodOptional<ZodOptional<ZodString>>;
5596
5466
  customSpecies: ZodOptional<ZodString>;
5597
- defaultBlockLabel: ZodOptional<ZodOptional<ZodString>>;
5598
5467
  exportMinQuality: ZodOptional<ZodBoolean>;
5599
5468
  imputeGermline: ZodOptional<ZodBoolean>;
5600
5469
  input: ZodOptional<ZodReadonly<ZodObject<{
5601
- __isRef: ZodLiteral<true>;
5602
5470
  blockId: ZodString;
5603
5471
  name: ZodString;
5472
+ __isRef: ZodLiteral<true>;
5604
5473
  requireEnrichments: ZodOptional<ZodLiteral<true>>;
5605
5474
  }, "strip", ZodTypeAny, {
5606
- __isRef: true;
5607
5475
  blockId: string;
5608
5476
  name: string;
5477
+ __isRef: true;
5609
5478
  requireEnrichments?: true | undefined;
5610
5479
  }, {
5611
- __isRef: true;
5612
5480
  blockId: string;
5613
5481
  name: string;
5482
+ __isRef: true;
5614
5483
  requireEnrichments?: true | undefined;
5615
5484
  }>>>;
5616
5485
  inputLibrary: ZodOptional<ZodReadonly<ZodObject<{
5617
- __isRef: ZodLiteral<true>;
5618
5486
  blockId: ZodString;
5619
5487
  name: ZodString;
5488
+ __isRef: ZodLiteral<true>;
5620
5489
  requireEnrichments: ZodOptional<ZodLiteral<true>>;
5621
5490
  }, "strip", ZodTypeAny, {
5622
- __isRef: true;
5623
5491
  blockId: string;
5624
5492
  name: string;
5493
+ __isRef: true;
5625
5494
  requireEnrichments?: true | undefined;
5626
5495
  }, {
5627
- __isRef: true;
5628
5496
  blockId: string;
5629
5497
  name: string;
5498
+ __isRef: true;
5630
5499
  requireEnrichments?: true | undefined;
5631
5500
  }>>>;
5632
5501
  isGenericPreset: ZodOptional<ZodBoolean>;
@@ -5719,19 +5588,18 @@ declare const BlockArgs: ZodObject<{
5719
5588
  cloneClusteringMode?: "default" | "off" | "relaxed" | undefined;
5720
5589
  customBlockLabel?: string | undefined;
5721
5590
  customSpecies?: string | undefined;
5722
- defaultBlockLabel?: string | undefined;
5723
5591
  exportMinQuality?: boolean | undefined;
5724
5592
  imputeGermline?: boolean | undefined;
5725
5593
  input?: Readonly<{
5726
- __isRef: true;
5727
5594
  blockId: string;
5728
5595
  name: string;
5596
+ __isRef: true;
5729
5597
  requireEnrichments?: true | undefined;
5730
5598
  }> | undefined;
5731
5599
  inputLibrary?: Readonly<{
5732
- __isRef: true;
5733
5600
  blockId: string;
5734
5601
  name: string;
5602
+ __isRef: true;
5735
5603
  requireEnrichments?: true | undefined;
5736
5604
  }> | undefined;
5737
5605
  isGenericPreset?: boolean | undefined;
@@ -5776,19 +5644,18 @@ declare const BlockArgs: ZodObject<{
5776
5644
  cloneClusteringMode?: "default" | "off" | "relaxed" | undefined;
5777
5645
  customBlockLabel?: string | undefined;
5778
5646
  customSpecies?: string | undefined;
5779
- defaultBlockLabel?: string | undefined;
5780
5647
  exportMinQuality?: boolean | undefined;
5781
5648
  imputeGermline?: boolean | undefined;
5782
5649
  input?: Readonly<{
5783
- __isRef: true;
5784
5650
  blockId: string;
5785
5651
  name: string;
5652
+ __isRef: true;
5786
5653
  requireEnrichments?: true | undefined;
5787
5654
  }> | undefined;
5788
5655
  inputLibrary?: Readonly<{
5789
- __isRef: true;
5790
5656
  blockId: string;
5791
5657
  name: string;
5658
+ __isRef: true;
5792
5659
  requireEnrichments?: true | undefined;
5793
5660
  }> | undefined;
5794
5661
  isGenericPreset?: boolean | undefined;
@@ -5828,10 +5695,6 @@ declare const BlockArgs: ZodObject<{
5828
5695
  title?: string | undefined;
5829
5696
  }>;
5830
5697
  type BlockArgs = TypeOf<typeof BlockArgs>;
5831
- //#endregion
5832
- //#endregion
5833
- //#region ../model/dist/index.d.ts
5834
- //#region src/index.d.ts
5835
5698
  type ListStepsParams = Pick<BlockArgs, "tagPattern" | "assembleClonesBy" | "assembleContigsBy" | "cloneClusteringMode">;
5836
5699
  type BlockData$1 = BlockArgs & {
5837
5700
  tableState: PlDataTableStateV2;
@@ -5842,12 +5705,11 @@ type BlockData$1 = BlockArgs & {
5842
5705
  listStepsParams?: ListStepsParams;
5843
5706
  };
5844
5707
  declare const platforma: PlatformaExtended<PlatformaV3<BlockData$1, {
5845
- defaultBlockLabel: string;
5846
5708
  customBlockLabel: string;
5847
5709
  input: Readonly<{
5848
- __isRef: true;
5849
5710
  blockId: string;
5850
5711
  name: string;
5712
+ __isRef: true;
5851
5713
  requireEnrichments?: true | undefined;
5852
5714
  }>;
5853
5715
  preset: {
@@ -5860,9 +5722,9 @@ declare const platforma: PlatformaExtended<PlatformaV3<BlockData$1, {
5860
5722
  chains: string[];
5861
5723
  scHeavyOnly: boolean | undefined;
5862
5724
  inputLibrary: Readonly<{
5863
- __isRef: true;
5864
5725
  blockId: string;
5865
5726
  name: string;
5727
+ __isRef: true;
5866
5728
  requireEnrichments?: true | undefined;
5867
5729
  }> | undefined;
5868
5730
  libraryFile: `index://index/${string}` | `upload://upload/${string}` | undefined;
@@ -5922,6 +5784,7 @@ declare const platforma: PlatformaExtended<PlatformaV3<BlockData$1, {
5922
5784
  cpuIntercept: number;
5923
5785
  cpuSlope?: number;
5924
5786
  };
5787
+ cloneFloor?: number;
5925
5788
  }[];
5926
5789
  error?: undefined;
5927
5790
  } | {
@@ -5931,9 +5794,9 @@ declare const platforma: PlatformaExtended<PlatformaV3<BlockData$1, {
5931
5794
  } & {
5932
5795
  libraryOptions: ConfigRenderLambda<{
5933
5796
  readonly ref: {
5934
- readonly __isRef: true;
5935
5797
  readonly blockId: string;
5936
5798
  readonly name: string;
5799
+ readonly __isRef: true;
5937
5800
  readonly requireEnrichments?: true | undefined;
5938
5801
  };
5939
5802
  readonly label: string;
@@ -6011,9 +5874,9 @@ declare const platforma: PlatformaExtended<PlatformaV3<BlockData$1, {
6011
5874
  } & {
6012
5875
  inputOptions: ConfigRenderLambda<{
6013
5876
  readonly ref: {
6014
- readonly __isRef: true;
6015
5877
  readonly blockId: string;
6016
5878
  readonly name: string;
5879
+ readonly __isRef: true;
6017
5880
  readonly requireEnrichments?: true | undefined;
6018
5881
  };
6019
5882
  readonly label: string;
@@ -6042,6 +5905,7 @@ declare const platforma: PlatformaExtended<PlatformaV3<BlockData$1, {
6042
5905
  visibility?: "default" | "optional" | "hidden";
6043
5906
  order?: number;
6044
5907
  status?: AnnotationDataStatus;
5908
+ linkHint?: string;
6045
5909
  };
6046
5910
  [x: string & {
6047
5911
  __json_canonicalized: ColumnFilteredKey;
@@ -6052,6 +5916,7 @@ declare const platforma: PlatformaExtended<PlatformaV3<BlockData$1, {
6052
5916
  visibility?: "default" | "optional" | "hidden";
6053
5917
  order?: number;
6054
5918
  status?: AnnotationDataStatus;
5919
+ linkHint?: string;
6055
5920
  };
6056
5921
  [x: string & {
6057
5922
  __json_canonicalized: ColumnOverriddenKey;
@@ -6062,6 +5927,7 @@ declare const platforma: PlatformaExtended<PlatformaV3<BlockData$1, {
6062
5927
  visibility?: "default" | "optional" | "hidden";
6063
5928
  order?: number;
6064
5929
  status?: AnnotationDataStatus;
5930
+ linkHint?: string;
6065
5931
  };
6066
5932
  [x: string & {
6067
5933
  __json_canonicalized: LocalPObjectKey;
@@ -6072,12 +5938,13 @@ declare const platforma: PlatformaExtended<PlatformaV3<BlockData$1, {
6072
5938
  visibility?: "default" | "optional" | "hidden";
6073
5939
  order?: number;
6074
5940
  status?: AnnotationDataStatus;
5941
+ linkHint?: string;
6075
5942
  };
6076
5943
  [x: string & {
6077
5944
  __json_canonicalized: Readonly<{
6078
- __isRef: true;
6079
5945
  blockId: string;
6080
5946
  name: string;
5947
+ __isRef: true;
6081
5948
  requireEnrichments?: true | undefined;
6082
5949
  }>;
6083
5950
  } & {
@@ -6087,6 +5954,7 @@ declare const platforma: PlatformaExtended<PlatformaV3<BlockData$1, {
6087
5954
  visibility?: "default" | "optional" | "hidden";
6088
5955
  order?: number;
6089
5956
  status?: AnnotationDataStatus;
5957
+ linkHint?: string;
6090
5958
  };
6091
5959
  };
6092
5960
  axes: {
@@ -6115,8 +5983,6 @@ declare const platforma: PlatformaExtended<PlatformaV3<BlockData$1, {
6115
5983
  } & {
6116
5984
  libraryUploadProgress: ConfigRenderLambda<ImportProgress | undefined>;
6117
5985
  }>, "/" | "/qc-report-table", {}, BlockDefaultUiServices>>;
6118
- //#endregion
6119
- //#region src/index.d.ts
6120
5986
  type BlockContract = {
6121
5987
  outputs: InferOutputsType<typeof platforma>;
6122
5988
  data: InferDataType<typeof platforma>;
@@ -6124,6 +5990,5 @@ type BlockContract = {
6124
5990
  };
6125
5991
  type BlockOutputs = BlockContract["outputs"];
6126
5992
  type BlockData = BlockContract["data"];
6127
- //#endregion
6128
5993
  export type { BlockContract, BlockData, BlockOutputs };
6129
5994
  //# sourceMappingURL=AGENTS.d.ts.map