@platforma-open/milaboratories.sequence-embeddings 1.4.1 → 1.4.2
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/block-pack/main.plj.gz +0 -0
- package/block-pack/manifest.json +1 -1
- package/block-pack/model.json +1 -1
- package/block-pack/published.json +1 -1
- package/block-pack/ui.tgz +0 -0
- package/dist/AGENTS.d.ts +607 -269
- package/dist/AGENTS.d.ts.map +1 -1
- package/dist/index.d.ts +615 -279
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7027 -6169
- package/dist/index.js.map +1 -1
- package/dist/rolldown-runtime-B-1-B7_t.js +33 -0
- package/package.json +8 -7
package/dist/AGENTS.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
//#
|
|
1
|
+
//#endregion
|
|
2
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/author_marker.d.ts
|
|
2
3
|
//#region src/author_marker.d.ts
|
|
3
4
|
/** Structure to help resolve conflicts if multiple participants writes to
|
|
4
5
|
* the same state */
|
|
@@ -8,10 +9,11 @@ interface AuthorMarker {
|
|
|
8
9
|
authorId: string;
|
|
9
10
|
/** Sequential version of the state local to the author */
|
|
10
11
|
localVersion: number;
|
|
11
|
-
}
|
|
12
|
+
}
|
|
12
13
|
//#endregion
|
|
13
14
|
//#region ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/typeAliases.d.cts
|
|
14
15
|
type Primitive = string | number | symbol | bigint | boolean | null | undefined;
|
|
16
|
+
type Scalars = Primitive | Primitive[];
|
|
15
17
|
//#endregion
|
|
16
18
|
//#region ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/util.d.cts
|
|
17
19
|
declare namespace util {
|
|
@@ -24,8 +26,8 @@ declare namespace util {
|
|
|
24
26
|
export type OmitKeys<T, K extends string> = Pick<T, Exclude<keyof T, K>>;
|
|
25
27
|
export type MakePartial<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
|
26
28
|
export type Exactly<T, X> = T & Record<Exclude<keyof X, keyof T>, never>;
|
|
27
|
-
export type InexactPartial<T> = { [k in keyof T]?: T[k] | undefined };
|
|
28
|
-
export const arrayToEnum: <T extends string, U extends [T, ...T[]]>(items: U) => { [k in U[number]]: k };
|
|
29
|
+
export type InexactPartial<T> = { [k in keyof T]?: T[k] | undefined; };
|
|
30
|
+
export const arrayToEnum: <T extends string, U extends [T, ...T[]]>(items: U) => { [k in U[number]]: k; };
|
|
29
31
|
export const getValidEnumValues: (obj: any) => any[];
|
|
30
32
|
export const objectValues: (obj: any) => any[];
|
|
31
33
|
export const objectKeys: ObjectConstructor["keys"];
|
|
@@ -39,16 +41,16 @@ declare namespace util {
|
|
|
39
41
|
export {};
|
|
40
42
|
}
|
|
41
43
|
declare namespace objectUtil {
|
|
42
|
-
export type MergeShapes<U, V> = keyof U & keyof V extends never ? U & V : { [k in Exclude<keyof U, keyof V>]: U[k] } & V;
|
|
43
|
-
type optionalKeys<T extends object> = { [k in keyof T]: undefined extends T[k] ? k : never }[keyof T];
|
|
44
|
-
type requiredKeys<T extends object> = { [k in keyof T]: undefined extends T[k] ? never : k }[keyof T];
|
|
45
|
-
export type addQuestionMarks<T extends object, _O = any> = { [K in requiredKeys<T>]: T[K] } & { [K in optionalKeys<T>]?: T[K] } & { [k in keyof T]?: unknown };
|
|
44
|
+
export type MergeShapes<U, V> = keyof U & keyof V extends never ? U & V : { [k in Exclude<keyof U, keyof V>]: U[k]; } & V;
|
|
45
|
+
type optionalKeys<T extends object> = { [k in keyof T]: undefined extends T[k] ? k : never; }[keyof T];
|
|
46
|
+
type requiredKeys<T extends object> = { [k in keyof T]: undefined extends T[k] ? never : k; }[keyof T];
|
|
47
|
+
export type addQuestionMarks<T extends object, _O = any> = { [K in requiredKeys<T>]: T[K]; } & { [K in optionalKeys<T>]?: T[K]; } & { [k in keyof T]?: unknown; };
|
|
46
48
|
export type identity<T> = T;
|
|
47
|
-
export type flatten<T> = identity<{ [k in keyof T]: T[k] }>;
|
|
48
|
-
export type noNeverKeys<T> = { [k in keyof T]: [T[k]] extends [never] ? never : k }[keyof T];
|
|
49
|
-
export type noNever<T> = identity<{ [k in noNeverKeys<T>]: k extends keyof T ? T[k] : never }>;
|
|
49
|
+
export type flatten<T> = identity<{ [k in keyof T]: T[k]; }>;
|
|
50
|
+
export type noNeverKeys<T> = { [k in keyof T]: [T[k]] extends [never] ? never : k; }[keyof T];
|
|
51
|
+
export type noNever<T> = identity<{ [k in noNeverKeys<T>]: k extends keyof T ? T[k] : never; }>;
|
|
50
52
|
export const mergeShapes: <U, T>(first: U, second: T) => T & U;
|
|
51
|
-
export type extendShape<A extends object, B extends object> = keyof A & keyof B extends never ? A & B : { [K in keyof A as K extends keyof B ? never : K]: A[K] } & { [K in keyof B]: B[K] };
|
|
53
|
+
export type extendShape<A extends object, B extends object> = keyof A & keyof B extends never ? A & B : { [K in keyof A as K extends keyof B ? never : K]: A[K]; } & { [K in keyof B]: B[K]; };
|
|
52
54
|
export {};
|
|
53
55
|
}
|
|
54
56
|
declare const ZodParsedType: {
|
|
@@ -74,12 +76,14 @@ declare const ZodParsedType: {
|
|
|
74
76
|
set: "set";
|
|
75
77
|
};
|
|
76
78
|
type ZodParsedType = keyof typeof ZodParsedType;
|
|
79
|
+
declare const getParsedType: (data: any) => ZodParsedType;
|
|
77
80
|
//#endregion
|
|
78
81
|
//#region ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/ZodError.d.cts
|
|
79
82
|
type allKeys<T> = T extends any ? keyof T : never;
|
|
83
|
+
type inferFlattenedErrors<T extends ZodType<any, any, any>, U = string> = typeToFlattenedError<TypeOf<T>, U>;
|
|
80
84
|
type typeToFlattenedError<T, U = string> = {
|
|
81
85
|
formErrors: U[];
|
|
82
|
-
fieldErrors: { [P in allKeys<T>]?: U[] };
|
|
86
|
+
fieldErrors: { [P in allKeys<T>]?: U[]; };
|
|
83
87
|
};
|
|
84
88
|
declare const ZodIssueCode: {
|
|
85
89
|
invalid_type: "invalid_type";
|
|
@@ -184,17 +188,22 @@ interface ZodCustomIssue extends ZodIssueBase {
|
|
|
184
188
|
[k: string]: any;
|
|
185
189
|
};
|
|
186
190
|
}
|
|
191
|
+
type DenormalizedError = {
|
|
192
|
+
[k: string]: DenormalizedError | string[];
|
|
193
|
+
};
|
|
187
194
|
type ZodIssueOptionalMessage = ZodInvalidTypeIssue | ZodInvalidLiteralIssue | ZodUnrecognizedKeysIssue | ZodInvalidUnionIssue | ZodInvalidUnionDiscriminatorIssue | ZodInvalidEnumValueIssue | ZodInvalidArgumentsIssue | ZodInvalidReturnTypeIssue | ZodInvalidDateIssue | ZodInvalidStringIssue | ZodTooSmallIssue | ZodTooBigIssue | ZodInvalidIntersectionTypesIssue | ZodNotMultipleOfIssue | ZodNotFiniteIssue | ZodCustomIssue;
|
|
188
195
|
type ZodIssue = ZodIssueOptionalMessage & {
|
|
189
196
|
fatal?: boolean | undefined;
|
|
190
197
|
message: string;
|
|
191
198
|
};
|
|
192
|
-
|
|
199
|
+
declare const quotelessJson: (obj: any) => string;
|
|
200
|
+
type recursiveZodFormattedError<T> = T extends [any, ...any[]] ? { [K in keyof T]?: ZodFormattedError<T[K]>; } : T extends any[] ? {
|
|
193
201
|
[k: number]: ZodFormattedError<T[number]>;
|
|
194
|
-
} : T extends object ? { [K in keyof T]?: ZodFormattedError<T[K]
|
|
202
|
+
} : T extends object ? { [K in keyof T]?: ZodFormattedError<T[K]>; } : unknown;
|
|
195
203
|
type ZodFormattedError<T, U = string> = {
|
|
196
204
|
_errors: U[];
|
|
197
205
|
} & recursiveZodFormattedError<NonNullable<T>>;
|
|
206
|
+
type inferFormattedError<T extends ZodType<any, any, any>, U = string> = ZodFormattedError<TypeOf<T>, U>;
|
|
198
207
|
declare class ZodError<T = any> extends Error {
|
|
199
208
|
issues: ZodIssue[];
|
|
200
209
|
get errors(): ZodIssue[];
|
|
@@ -225,7 +234,20 @@ type ZodErrorMap = (issue: ZodIssueOptionalMessage, _ctx: ErrorMapCtx) => {
|
|
|
225
234
|
message: string;
|
|
226
235
|
};
|
|
227
236
|
//#endregion
|
|
237
|
+
//#region ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/locales/en.d.cts
|
|
238
|
+
declare const errorMap: ZodErrorMap;
|
|
239
|
+
//#endregion
|
|
240
|
+
//#region ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/errors.d.cts
|
|
241
|
+
declare function setErrorMap(map: ZodErrorMap): void;
|
|
242
|
+
declare function getErrorMap(): ZodErrorMap;
|
|
243
|
+
//#endregion
|
|
228
244
|
//#region ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/parseUtil.d.cts
|
|
245
|
+
declare const makeIssue: (params: {
|
|
246
|
+
data: any;
|
|
247
|
+
path: (string | number)[];
|
|
248
|
+
errorMaps: ZodErrorMap[];
|
|
249
|
+
issueData: IssueData;
|
|
250
|
+
}) => ZodIssue;
|
|
229
251
|
type ParseParams = {
|
|
230
252
|
path: (string | number)[];
|
|
231
253
|
errorMap: ZodErrorMap;
|
|
@@ -233,6 +255,7 @@ type ParseParams = {
|
|
|
233
255
|
};
|
|
234
256
|
type ParsePathComponent = string | number;
|
|
235
257
|
type ParsePath = ParsePathComponent[];
|
|
258
|
+
declare const EMPTY_PATH: ParsePath;
|
|
236
259
|
interface ParseContext {
|
|
237
260
|
readonly common: {
|
|
238
261
|
readonly issues: ZodIssue[];
|
|
@@ -250,6 +273,11 @@ type ParseInput = {
|
|
|
250
273
|
path: (string | number)[];
|
|
251
274
|
parent: ParseContext;
|
|
252
275
|
};
|
|
276
|
+
declare function addIssueToContext(ctx: ParseContext, issueData: IssueData): void;
|
|
277
|
+
type ObjectPair = {
|
|
278
|
+
key: SyncParseReturnType<any>;
|
|
279
|
+
value: SyncParseReturnType<any>;
|
|
280
|
+
};
|
|
253
281
|
declare class ParseStatus {
|
|
254
282
|
value: "aborted" | "dirty" | "valid";
|
|
255
283
|
dirty(): void;
|
|
@@ -265,6 +293,10 @@ declare class ParseStatus {
|
|
|
265
293
|
alwaysSet?: boolean;
|
|
266
294
|
}[]): SyncParseReturnType;
|
|
267
295
|
}
|
|
296
|
+
interface ParseResult {
|
|
297
|
+
status: "aborted" | "dirty" | "valid";
|
|
298
|
+
data: any;
|
|
299
|
+
}
|
|
268
300
|
type INVALID = {
|
|
269
301
|
status: "aborted";
|
|
270
302
|
};
|
|
@@ -282,6 +314,10 @@ declare const OK: <T>(value: T) => OK<T>;
|
|
|
282
314
|
type SyncParseReturnType<T = any> = OK<T> | DIRTY<T> | INVALID;
|
|
283
315
|
type AsyncParseReturnType<T> = Promise<SyncParseReturnType<T>>;
|
|
284
316
|
type ParseReturnType<T> = SyncParseReturnType<T> | AsyncParseReturnType<T>;
|
|
317
|
+
declare const isAborted: (x: ParseReturnType<any>) => x is INVALID;
|
|
318
|
+
declare const isDirty: <T>(x: ParseReturnType<T>) => x is OK<T> | DIRTY<T>;
|
|
319
|
+
declare const isValid: <T>(x: ParseReturnType<T>) => x is OK<T>;
|
|
320
|
+
declare const isAsync: <T>(x: ParseReturnType<T>) => x is AsyncParseReturnType<T>;
|
|
285
321
|
//#endregion
|
|
286
322
|
//#region ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/enumUtil.d.cts
|
|
287
323
|
declare namespace enumUtil {
|
|
@@ -306,7 +342,7 @@ declare namespace errorUtil {
|
|
|
306
342
|
//#endregion
|
|
307
343
|
//#region ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/partialUtil.d.cts
|
|
308
344
|
declare namespace partialUtil {
|
|
309
|
-
type DeepPartial<T extends ZodTypeAny> = T extends ZodObject<ZodRawShape> ? ZodObject<{ [k in keyof T["shape"]]: ZodOptional<DeepPartial<T["shape"][k]
|
|
345
|
+
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;
|
|
310
346
|
}
|
|
311
347
|
//#endregion
|
|
312
348
|
//#region ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/standard-schema.d.cts
|
|
@@ -437,6 +473,10 @@ type RawCreateParams = {
|
|
|
437
473
|
message?: string | undefined;
|
|
438
474
|
description?: string | undefined;
|
|
439
475
|
} | undefined;
|
|
476
|
+
type ProcessedCreateParams = {
|
|
477
|
+
errorMap?: ZodErrorMap | undefined;
|
|
478
|
+
description?: string | undefined;
|
|
479
|
+
};
|
|
440
480
|
type SafeParseSuccess<Output> = {
|
|
441
481
|
success: true;
|
|
442
482
|
data: Output;
|
|
@@ -605,6 +645,11 @@ interface ZodStringDef extends ZodTypeDef {
|
|
|
605
645
|
typeName: ZodFirstPartyTypeKind.ZodString;
|
|
606
646
|
coerce: boolean;
|
|
607
647
|
}
|
|
648
|
+
declare function datetimeRegex(args: {
|
|
649
|
+
precision?: number | null;
|
|
650
|
+
offset?: boolean;
|
|
651
|
+
local?: boolean;
|
|
652
|
+
}): RegExp;
|
|
608
653
|
declare class ZodString extends ZodType<string, ZodStringDef, string> {
|
|
609
654
|
_parse(input: ParseInput): ParseReturnType<string>;
|
|
610
655
|
protected _regex(regex: RegExp, validation: StringValidation, message?: errorUtil.ErrMessage): ZodEffects<this, string, string>;
|
|
@@ -735,6 +780,135 @@ declare class ZodNumber extends ZodType<number, ZodNumberDef, number> {
|
|
|
735
780
|
get isInt(): boolean;
|
|
736
781
|
get isFinite(): boolean;
|
|
737
782
|
}
|
|
783
|
+
type ZodBigIntCheck = {
|
|
784
|
+
kind: "min";
|
|
785
|
+
value: bigint;
|
|
786
|
+
inclusive: boolean;
|
|
787
|
+
message?: string | undefined;
|
|
788
|
+
} | {
|
|
789
|
+
kind: "max";
|
|
790
|
+
value: bigint;
|
|
791
|
+
inclusive: boolean;
|
|
792
|
+
message?: string | undefined;
|
|
793
|
+
} | {
|
|
794
|
+
kind: "multipleOf";
|
|
795
|
+
value: bigint;
|
|
796
|
+
message?: string | undefined;
|
|
797
|
+
};
|
|
798
|
+
interface ZodBigIntDef extends ZodTypeDef {
|
|
799
|
+
checks: ZodBigIntCheck[];
|
|
800
|
+
typeName: ZodFirstPartyTypeKind.ZodBigInt;
|
|
801
|
+
coerce: boolean;
|
|
802
|
+
}
|
|
803
|
+
declare class ZodBigInt extends ZodType<bigint, ZodBigIntDef, bigint> {
|
|
804
|
+
_parse(input: ParseInput): ParseReturnType<bigint>;
|
|
805
|
+
_getInvalidInput(input: ParseInput): INVALID;
|
|
806
|
+
static create: (params?: RawCreateParams & {
|
|
807
|
+
coerce?: boolean;
|
|
808
|
+
}) => ZodBigInt;
|
|
809
|
+
gte(value: bigint, message?: errorUtil.ErrMessage): ZodBigInt;
|
|
810
|
+
min: (value: bigint, message?: errorUtil.ErrMessage) => ZodBigInt;
|
|
811
|
+
gt(value: bigint, message?: errorUtil.ErrMessage): ZodBigInt;
|
|
812
|
+
lte(value: bigint, message?: errorUtil.ErrMessage): ZodBigInt;
|
|
813
|
+
max: (value: bigint, message?: errorUtil.ErrMessage) => ZodBigInt;
|
|
814
|
+
lt(value: bigint, message?: errorUtil.ErrMessage): ZodBigInt;
|
|
815
|
+
protected setLimit(kind: "min" | "max", value: bigint, inclusive: boolean, message?: string): ZodBigInt;
|
|
816
|
+
_addCheck(check: ZodBigIntCheck): ZodBigInt;
|
|
817
|
+
positive(message?: errorUtil.ErrMessage): ZodBigInt;
|
|
818
|
+
negative(message?: errorUtil.ErrMessage): ZodBigInt;
|
|
819
|
+
nonpositive(message?: errorUtil.ErrMessage): ZodBigInt;
|
|
820
|
+
nonnegative(message?: errorUtil.ErrMessage): ZodBigInt;
|
|
821
|
+
multipleOf(value: bigint, message?: errorUtil.ErrMessage): ZodBigInt;
|
|
822
|
+
get minValue(): bigint | null;
|
|
823
|
+
get maxValue(): bigint | null;
|
|
824
|
+
}
|
|
825
|
+
interface ZodBooleanDef extends ZodTypeDef {
|
|
826
|
+
typeName: ZodFirstPartyTypeKind.ZodBoolean;
|
|
827
|
+
coerce: boolean;
|
|
828
|
+
}
|
|
829
|
+
declare class ZodBoolean extends ZodType<boolean, ZodBooleanDef, boolean> {
|
|
830
|
+
_parse(input: ParseInput): ParseReturnType<boolean>;
|
|
831
|
+
static create: (params?: RawCreateParams & {
|
|
832
|
+
coerce?: boolean;
|
|
833
|
+
}) => ZodBoolean;
|
|
834
|
+
}
|
|
835
|
+
type ZodDateCheck = {
|
|
836
|
+
kind: "min";
|
|
837
|
+
value: number;
|
|
838
|
+
message?: string | undefined;
|
|
839
|
+
} | {
|
|
840
|
+
kind: "max";
|
|
841
|
+
value: number;
|
|
842
|
+
message?: string | undefined;
|
|
843
|
+
};
|
|
844
|
+
interface ZodDateDef extends ZodTypeDef {
|
|
845
|
+
checks: ZodDateCheck[];
|
|
846
|
+
coerce: boolean;
|
|
847
|
+
typeName: ZodFirstPartyTypeKind.ZodDate;
|
|
848
|
+
}
|
|
849
|
+
declare class ZodDate extends ZodType<Date, ZodDateDef, Date> {
|
|
850
|
+
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
|
|
851
|
+
_addCheck(check: ZodDateCheck): ZodDate;
|
|
852
|
+
min(minDate: Date, message?: errorUtil.ErrMessage): ZodDate;
|
|
853
|
+
max(maxDate: Date, message?: errorUtil.ErrMessage): ZodDate;
|
|
854
|
+
get minDate(): Date | null;
|
|
855
|
+
get maxDate(): Date | null;
|
|
856
|
+
static create: (params?: RawCreateParams & {
|
|
857
|
+
coerce?: boolean;
|
|
858
|
+
}) => ZodDate;
|
|
859
|
+
}
|
|
860
|
+
interface ZodSymbolDef extends ZodTypeDef {
|
|
861
|
+
typeName: ZodFirstPartyTypeKind.ZodSymbol;
|
|
862
|
+
}
|
|
863
|
+
declare class ZodSymbol extends ZodType<symbol, ZodSymbolDef, symbol> {
|
|
864
|
+
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
|
|
865
|
+
static create: (params?: RawCreateParams) => ZodSymbol;
|
|
866
|
+
}
|
|
867
|
+
interface ZodUndefinedDef extends ZodTypeDef {
|
|
868
|
+
typeName: ZodFirstPartyTypeKind.ZodUndefined;
|
|
869
|
+
}
|
|
870
|
+
declare class ZodUndefined extends ZodType<undefined, ZodUndefinedDef, undefined> {
|
|
871
|
+
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
|
|
872
|
+
params?: RawCreateParams;
|
|
873
|
+
static create: (params?: RawCreateParams) => ZodUndefined;
|
|
874
|
+
}
|
|
875
|
+
interface ZodNullDef extends ZodTypeDef {
|
|
876
|
+
typeName: ZodFirstPartyTypeKind.ZodNull;
|
|
877
|
+
}
|
|
878
|
+
declare class ZodNull extends ZodType<null, ZodNullDef, null> {
|
|
879
|
+
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
|
|
880
|
+
static create: (params?: RawCreateParams) => ZodNull;
|
|
881
|
+
}
|
|
882
|
+
interface ZodAnyDef extends ZodTypeDef {
|
|
883
|
+
typeName: ZodFirstPartyTypeKind.ZodAny;
|
|
884
|
+
}
|
|
885
|
+
declare class ZodAny extends ZodType<any, ZodAnyDef, any> {
|
|
886
|
+
_any: true;
|
|
887
|
+
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
|
|
888
|
+
static create: (params?: RawCreateParams) => ZodAny;
|
|
889
|
+
}
|
|
890
|
+
interface ZodUnknownDef extends ZodTypeDef {
|
|
891
|
+
typeName: ZodFirstPartyTypeKind.ZodUnknown;
|
|
892
|
+
}
|
|
893
|
+
declare class ZodUnknown extends ZodType<unknown, ZodUnknownDef, unknown> {
|
|
894
|
+
_unknown: true;
|
|
895
|
+
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
|
|
896
|
+
static create: (params?: RawCreateParams) => ZodUnknown;
|
|
897
|
+
}
|
|
898
|
+
interface ZodNeverDef extends ZodTypeDef {
|
|
899
|
+
typeName: ZodFirstPartyTypeKind.ZodNever;
|
|
900
|
+
}
|
|
901
|
+
declare class ZodNever extends ZodType<never, ZodNeverDef, never> {
|
|
902
|
+
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
|
|
903
|
+
static create: (params?: RawCreateParams) => ZodNever;
|
|
904
|
+
}
|
|
905
|
+
interface ZodVoidDef extends ZodTypeDef {
|
|
906
|
+
typeName: ZodFirstPartyTypeKind.ZodVoid;
|
|
907
|
+
}
|
|
908
|
+
declare class ZodVoid extends ZodType<void, ZodVoidDef, void> {
|
|
909
|
+
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
|
|
910
|
+
static create: (params?: RawCreateParams) => ZodVoid;
|
|
911
|
+
}
|
|
738
912
|
interface ZodArrayDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
|
|
739
913
|
type: T;
|
|
740
914
|
typeName: ZodFirstPartyTypeKind.ZodArray;
|
|
@@ -762,6 +936,7 @@ declare class ZodArray<T extends ZodTypeAny, Cardinality extends ArrayCardinalit
|
|
|
762
936
|
nonempty(message?: errorUtil.ErrMessage): ZodArray<T, "atleastone">;
|
|
763
937
|
static create: <El extends ZodTypeAny>(schema: El, params?: RawCreateParams) => ZodArray<El>;
|
|
764
938
|
}
|
|
939
|
+
type ZodNonEmptyArray<T extends ZodTypeAny> = ZodArray<T, "atleastone">;
|
|
765
940
|
type UnknownKeysParam = "passthrough" | "strict" | "strip";
|
|
766
941
|
interface ZodObjectDef<T extends ZodRawShape = ZodRawShape, UnknownKeys extends UnknownKeysParam = UnknownKeysParam, Catchall extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
|
|
767
942
|
typeName: ZodFirstPartyTypeKind.ZodObject;
|
|
@@ -769,10 +944,11 @@ interface ZodObjectDef<T extends ZodRawShape = ZodRawShape, UnknownKeys extends
|
|
|
769
944
|
catchall: Catchall;
|
|
770
945
|
unknownKeys: UnknownKeys;
|
|
771
946
|
}
|
|
947
|
+
type mergeTypes<A, B> = { [k in keyof A | keyof B]: k extends keyof B ? B[k] : k extends keyof A ? A[k] : never; };
|
|
772
948
|
type objectOutputType<Shape extends ZodRawShape, Catchall extends ZodTypeAny, UnknownKeys extends UnknownKeysParam = UnknownKeysParam> = objectUtil.flatten<objectUtil.addQuestionMarks<baseObjectOutputType<Shape>>> & CatchallOutput<Catchall> & PassthroughType<UnknownKeys>;
|
|
773
|
-
type baseObjectOutputType<Shape extends ZodRawShape> = { [k in keyof Shape]: Shape[k]["_output"] };
|
|
949
|
+
type baseObjectOutputType<Shape extends ZodRawShape> = { [k in keyof Shape]: Shape[k]["_output"]; };
|
|
774
950
|
type objectInputType<Shape extends ZodRawShape, Catchall extends ZodTypeAny, UnknownKeys extends UnknownKeysParam = UnknownKeysParam> = objectUtil.flatten<baseObjectInputType<Shape>> & CatchallInput<Catchall> & PassthroughType<UnknownKeys>;
|
|
775
|
-
type baseObjectInputType<Shape extends ZodRawShape> = objectUtil.addQuestionMarks<{ [k in keyof Shape]: Shape[k]["_input"] }>;
|
|
951
|
+
type baseObjectInputType<Shape extends ZodRawShape> = objectUtil.addQuestionMarks<{ [k in keyof Shape]: Shape[k]["_input"]; }>;
|
|
776
952
|
type CatchallOutput<T extends ZodType> = ZodType extends T ? unknown : {
|
|
777
953
|
[k: string]: T["_output"];
|
|
778
954
|
};
|
|
@@ -783,6 +959,8 @@ type PassthroughType<T extends UnknownKeysParam> = T extends "passthrough" ? {
|
|
|
783
959
|
[k: string]: unknown;
|
|
784
960
|
} : unknown;
|
|
785
961
|
type deoptional<T extends ZodTypeAny> = T extends ZodOptional<infer U> ? deoptional<U> : T extends ZodNullable<infer U> ? ZodNullable<deoptional<U>> : T;
|
|
962
|
+
type SomeZodObject = ZodObject<ZodRawShape, UnknownKeysParam, ZodTypeAny>;
|
|
963
|
+
type noUnrecognized<Obj extends object, Shape extends object> = { [k in keyof Obj]: k extends keyof Shape ? Obj[k] : never; };
|
|
786
964
|
declare class ZodObject<T extends ZodRawShape, UnknownKeys extends UnknownKeysParam = UnknownKeysParam, Catchall extends ZodTypeAny = ZodTypeAny, Output = objectOutputType<T, Catchall, UnknownKeys>, Input = objectInputType<T, Catchall, UnknownKeys>> extends ZodType<Output, ZodObjectDef<T, UnknownKeys, Catchall>, Input> {
|
|
787
965
|
private _cached;
|
|
788
966
|
_getCached(): {
|
|
@@ -810,18 +988,18 @@ declare class ZodObject<T extends ZodRawShape, UnknownKeys extends UnknownKeysPa
|
|
|
810
988
|
* upgrade if you are experiencing issues.
|
|
811
989
|
*/
|
|
812
990
|
merge<Incoming extends AnyZodObject, Augmentation extends Incoming["shape"]>(merging: Incoming): ZodObject<objectUtil.extendShape<T, Augmentation>, Incoming["_def"]["unknownKeys"], Incoming["_def"]["catchall"]>;
|
|
813
|
-
setKey<Key extends string, Schema extends ZodTypeAny>(key: Key, schema: Schema): ZodObject<T & { [k in Key]: Schema }, UnknownKeys, Catchall>;
|
|
991
|
+
setKey<Key extends string, Schema extends ZodTypeAny>(key: Key, schema: Schema): ZodObject<T & { [k in Key]: Schema; }, UnknownKeys, Catchall>;
|
|
814
992
|
catchall<Index extends ZodTypeAny>(index: Index): ZodObject<T, UnknownKeys, Index>;
|
|
815
|
-
pick<Mask extends util.Exactly<{ [k in keyof T]?: true }, Mask>>(mask: Mask): ZodObject<Pick<T, Extract<keyof T, keyof Mask>>, UnknownKeys, Catchall>;
|
|
816
|
-
omit<Mask extends util.Exactly<{ [k in keyof T]?: true }, Mask>>(mask: Mask): ZodObject<Omit<T, keyof Mask>, UnknownKeys, Catchall>;
|
|
993
|
+
pick<Mask extends util.Exactly<{ [k in keyof T]?: true; }, Mask>>(mask: Mask): ZodObject<Pick<T, Extract<keyof T, keyof Mask>>, UnknownKeys, Catchall>;
|
|
994
|
+
omit<Mask extends util.Exactly<{ [k in keyof T]?: true; }, Mask>>(mask: Mask): ZodObject<Omit<T, keyof Mask>, UnknownKeys, Catchall>;
|
|
817
995
|
/**
|
|
818
996
|
* @deprecated
|
|
819
997
|
*/
|
|
820
998
|
deepPartial(): partialUtil.DeepPartial<this>;
|
|
821
|
-
partial(): ZodObject<{ [k in keyof T]: ZodOptional<T[k]
|
|
822
|
-
partial<Mask extends util.Exactly<{ [k in keyof T]?: true }, Mask>>(mask: Mask): ZodObject<objectUtil.noNever<{ [k in keyof T]: k extends keyof Mask ? ZodOptional<T[k]> : T[k] }>, UnknownKeys, Catchall>;
|
|
823
|
-
required(): ZodObject<{ [k in keyof T]: deoptional<T[k]
|
|
824
|
-
required<Mask extends util.Exactly<{ [k in keyof T]?: true }, Mask>>(mask: Mask): ZodObject<objectUtil.noNever<{ [k in keyof T]: k extends keyof Mask ? deoptional<T[k]> : T[k] }>, UnknownKeys, Catchall>;
|
|
999
|
+
partial(): ZodObject<{ [k in keyof T]: ZodOptional<T[k]>; }, UnknownKeys, Catchall>;
|
|
1000
|
+
partial<Mask extends util.Exactly<{ [k in keyof T]?: true; }, Mask>>(mask: Mask): ZodObject<objectUtil.noNever<{ [k in keyof T]: k extends keyof Mask ? ZodOptional<T[k]> : T[k]; }>, UnknownKeys, Catchall>;
|
|
1001
|
+
required(): ZodObject<{ [k in keyof T]: deoptional<T[k]>; }, UnknownKeys, Catchall>;
|
|
1002
|
+
required<Mask extends util.Exactly<{ [k in keyof T]?: true; }, Mask>>(mask: Mask): ZodObject<objectUtil.noNever<{ [k in keyof T]: k extends keyof Mask ? deoptional<T[k]> : T[k]; }>, UnknownKeys, Catchall>;
|
|
825
1003
|
keyof(): ZodEnum<enumUtil.UnionToTupleString<keyof T>>;
|
|
826
1004
|
static create: <Shape extends ZodRawShape>(shape: Shape, params?: RawCreateParams) => ZodObject<Shape, "strip", ZodTypeAny, objectOutputType<Shape, ZodTypeAny, "strip">, objectInputType<Shape, ZodTypeAny, "strip">>;
|
|
827
1005
|
static strictCreate: <Shape extends ZodRawShape>(shape: Shape, params?: RawCreateParams) => ZodObject<Shape, "strict">;
|
|
@@ -838,6 +1016,28 @@ declare class ZodUnion<T extends ZodUnionOptions> extends ZodType<T[number]["_ou
|
|
|
838
1016
|
get options(): T;
|
|
839
1017
|
static create: <Options extends Readonly<[ZodTypeAny, ZodTypeAny, ...ZodTypeAny[]]>>(types: Options, params?: RawCreateParams) => ZodUnion<Options>;
|
|
840
1018
|
}
|
|
1019
|
+
type ZodDiscriminatedUnionOption<Discriminator extends string> = ZodObject<{ [key in Discriminator]: ZodTypeAny; } & ZodRawShape, UnknownKeysParam, ZodTypeAny>;
|
|
1020
|
+
interface ZodDiscriminatedUnionDef<Discriminator extends string, Options extends readonly ZodDiscriminatedUnionOption<string>[] = ZodDiscriminatedUnionOption<string>[]> extends ZodTypeDef {
|
|
1021
|
+
discriminator: Discriminator;
|
|
1022
|
+
options: Options;
|
|
1023
|
+
optionsMap: Map<Primitive, ZodDiscriminatedUnionOption<any>>;
|
|
1024
|
+
typeName: ZodFirstPartyTypeKind.ZodDiscriminatedUnion;
|
|
1025
|
+
}
|
|
1026
|
+
declare class ZodDiscriminatedUnion<Discriminator extends string, Options extends readonly ZodDiscriminatedUnionOption<Discriminator>[]> extends ZodType<output<Options[number]>, ZodDiscriminatedUnionDef<Discriminator, Options>, input<Options[number]>> {
|
|
1027
|
+
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
|
|
1028
|
+
get discriminator(): Discriminator;
|
|
1029
|
+
get options(): Options;
|
|
1030
|
+
get optionsMap(): Map<Primitive, ZodDiscriminatedUnionOption<any>>;
|
|
1031
|
+
/**
|
|
1032
|
+
* The constructor of the discriminated union schema. Its behaviour is very similar to that of the normal z.union() constructor.
|
|
1033
|
+
* However, it only allows a union of objects, all of which need to share a discriminator property. This property must
|
|
1034
|
+
* have a different value for each object in the union.
|
|
1035
|
+
* @param discriminator the name of the discriminator property
|
|
1036
|
+
* @param types an array of object schemas
|
|
1037
|
+
* @param params
|
|
1038
|
+
*/
|
|
1039
|
+
static create<Discriminator extends string, Types extends readonly [ZodDiscriminatedUnionOption<Discriminator>, ...ZodDiscriminatedUnionOption<Discriminator>[]]>(discriminator: Discriminator, options: Types, params?: RawCreateParams): ZodDiscriminatedUnion<Discriminator, Types>;
|
|
1040
|
+
}
|
|
841
1041
|
interface ZodIntersectionDef<T extends ZodTypeAny = ZodTypeAny, U extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
|
|
842
1042
|
left: T;
|
|
843
1043
|
right: U;
|
|
@@ -849,21 +1049,98 @@ declare class ZodIntersection<T extends ZodTypeAny, U extends ZodTypeAny> extend
|
|
|
849
1049
|
}
|
|
850
1050
|
type ZodTupleItems = [ZodTypeAny, ...ZodTypeAny[]];
|
|
851
1051
|
type AssertArray<T> = T extends any[] ? T : never;
|
|
852
|
-
type OutputTypeOfTuple<T extends ZodTupleItems | []> = AssertArray<{ [k in keyof T]: T[k] extends ZodType<any, any, any> ? T[k]["_output"] : never }>;
|
|
1052
|
+
type OutputTypeOfTuple<T extends ZodTupleItems | []> = AssertArray<{ [k in keyof T]: T[k] extends ZodType<any, any, any> ? T[k]["_output"] : never; }>;
|
|
853
1053
|
type OutputTypeOfTupleWithRest<T extends ZodTupleItems | [], Rest extends ZodTypeAny | null = null> = Rest extends ZodTypeAny ? [...OutputTypeOfTuple<T>, ...Rest["_output"][]] : OutputTypeOfTuple<T>;
|
|
854
|
-
type InputTypeOfTuple<T extends ZodTupleItems | []> = AssertArray<{ [k in keyof T]: T[k] extends ZodType<any, any, any> ? T[k]["_input"] : never }>;
|
|
1054
|
+
type InputTypeOfTuple<T extends ZodTupleItems | []> = AssertArray<{ [k in keyof T]: T[k] extends ZodType<any, any, any> ? T[k]["_input"] : never; }>;
|
|
855
1055
|
type InputTypeOfTupleWithRest<T extends ZodTupleItems | [], Rest extends ZodTypeAny | null = null> = Rest extends ZodTypeAny ? [...InputTypeOfTuple<T>, ...Rest["_input"][]] : InputTypeOfTuple<T>;
|
|
856
1056
|
interface ZodTupleDef<T extends ZodTupleItems | [] = ZodTupleItems, Rest extends ZodTypeAny | null = null> extends ZodTypeDef {
|
|
857
1057
|
items: T;
|
|
858
1058
|
rest: Rest;
|
|
859
1059
|
typeName: ZodFirstPartyTypeKind.ZodTuple;
|
|
860
1060
|
}
|
|
1061
|
+
type AnyZodTuple = ZodTuple<[ZodTypeAny, ...ZodTypeAny[]] | [], ZodTypeAny | null>;
|
|
861
1062
|
declare class ZodTuple<T extends ZodTupleItems | [] = ZodTupleItems, Rest extends ZodTypeAny | null = null> extends ZodType<OutputTypeOfTupleWithRest<T, Rest>, ZodTupleDef<T, Rest>, InputTypeOfTupleWithRest<T, Rest>> {
|
|
862
1063
|
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
|
|
863
1064
|
get items(): T;
|
|
864
1065
|
rest<RestSchema extends ZodTypeAny>(rest: RestSchema): ZodTuple<T, RestSchema>;
|
|
865
1066
|
static create: <Items extends [ZodTypeAny, ...ZodTypeAny[]] | []>(schemas: Items, params?: RawCreateParams) => ZodTuple<Items, null>;
|
|
866
1067
|
}
|
|
1068
|
+
interface ZodRecordDef<Key extends KeySchema = ZodString, Value extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
|
|
1069
|
+
valueType: Value;
|
|
1070
|
+
keyType: Key;
|
|
1071
|
+
typeName: ZodFirstPartyTypeKind.ZodRecord;
|
|
1072
|
+
}
|
|
1073
|
+
type KeySchema = ZodType<string | number | symbol, any, any>;
|
|
1074
|
+
type RecordType<K extends string | number | symbol, V> = [string] extends [K] ? Record<K, V> : [number] extends [K] ? Record<K, V> : [symbol] extends [K] ? Record<K, V> : [BRAND<string | number | symbol>] extends [K] ? Record<K, V> : Partial<Record<K, V>>;
|
|
1075
|
+
declare class ZodRecord<Key extends KeySchema = ZodString, Value extends ZodTypeAny = ZodTypeAny> extends ZodType<RecordType<Key["_output"], Value["_output"]>, ZodRecordDef<Key, Value>, RecordType<Key["_input"], Value["_input"]>> {
|
|
1076
|
+
get keySchema(): Key;
|
|
1077
|
+
get valueSchema(): Value;
|
|
1078
|
+
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
|
|
1079
|
+
get element(): Value;
|
|
1080
|
+
static create<Value extends ZodTypeAny>(valueType: Value, params?: RawCreateParams): ZodRecord<ZodString, Value>;
|
|
1081
|
+
static create<Keys extends KeySchema, Value extends ZodTypeAny>(keySchema: Keys, valueType: Value, params?: RawCreateParams): ZodRecord<Keys, Value>;
|
|
1082
|
+
}
|
|
1083
|
+
interface ZodMapDef<Key extends ZodTypeAny = ZodTypeAny, Value extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
|
|
1084
|
+
valueType: Value;
|
|
1085
|
+
keyType: Key;
|
|
1086
|
+
typeName: ZodFirstPartyTypeKind.ZodMap;
|
|
1087
|
+
}
|
|
1088
|
+
declare class ZodMap<Key extends ZodTypeAny = ZodTypeAny, Value extends ZodTypeAny = ZodTypeAny> extends ZodType<Map<Key["_output"], Value["_output"]>, ZodMapDef<Key, Value>, Map<Key["_input"], Value["_input"]>> {
|
|
1089
|
+
get keySchema(): Key;
|
|
1090
|
+
get valueSchema(): Value;
|
|
1091
|
+
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
|
|
1092
|
+
static create: <KeySchema extends ZodTypeAny = ZodTypeAny, ValueSchema extends ZodTypeAny = ZodTypeAny>(keyType: KeySchema, valueType: ValueSchema, params?: RawCreateParams) => ZodMap<KeySchema, ValueSchema>;
|
|
1093
|
+
}
|
|
1094
|
+
interface ZodSetDef<Value extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
|
|
1095
|
+
valueType: Value;
|
|
1096
|
+
typeName: ZodFirstPartyTypeKind.ZodSet;
|
|
1097
|
+
minSize: {
|
|
1098
|
+
value: number;
|
|
1099
|
+
message?: string | undefined;
|
|
1100
|
+
} | null;
|
|
1101
|
+
maxSize: {
|
|
1102
|
+
value: number;
|
|
1103
|
+
message?: string | undefined;
|
|
1104
|
+
} | null;
|
|
1105
|
+
}
|
|
1106
|
+
declare class ZodSet<Value extends ZodTypeAny = ZodTypeAny> extends ZodType<Set<Value["_output"]>, ZodSetDef<Value>, Set<Value["_input"]>> {
|
|
1107
|
+
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
|
|
1108
|
+
min(minSize: number, message?: errorUtil.ErrMessage): this;
|
|
1109
|
+
max(maxSize: number, message?: errorUtil.ErrMessage): this;
|
|
1110
|
+
size(size: number, message?: errorUtil.ErrMessage): this;
|
|
1111
|
+
nonempty(message?: errorUtil.ErrMessage): ZodSet<Value>;
|
|
1112
|
+
static create: <ValueSchema extends ZodTypeAny = ZodTypeAny>(valueType: ValueSchema, params?: RawCreateParams) => ZodSet<ValueSchema>;
|
|
1113
|
+
}
|
|
1114
|
+
interface ZodFunctionDef<Args extends ZodTuple<any, any> = ZodTuple<any, any>, Returns extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
|
|
1115
|
+
args: Args;
|
|
1116
|
+
returns: Returns;
|
|
1117
|
+
typeName: ZodFirstPartyTypeKind.ZodFunction;
|
|
1118
|
+
}
|
|
1119
|
+
type OuterTypeOfFunction<Args extends ZodTuple<any, any>, Returns extends ZodTypeAny> = Args["_input"] extends Array<any> ? (...args: Args["_input"]) => Returns["_output"] : never;
|
|
1120
|
+
type InnerTypeOfFunction<Args extends ZodTuple<any, any>, Returns extends ZodTypeAny> = Args["_output"] extends Array<any> ? (...args: Args["_output"]) => Returns["_input"] : never;
|
|
1121
|
+
declare class ZodFunction<Args extends ZodTuple<any, any>, Returns extends ZodTypeAny> extends ZodType<OuterTypeOfFunction<Args, Returns>, ZodFunctionDef<Args, Returns>, InnerTypeOfFunction<Args, Returns>> {
|
|
1122
|
+
_parse(input: ParseInput): ParseReturnType<any>;
|
|
1123
|
+
parameters(): Args;
|
|
1124
|
+
returnType(): Returns;
|
|
1125
|
+
args<Items extends Parameters<(typeof ZodTuple)["create"]>[0]>(...items: Items): ZodFunction<ZodTuple<Items, ZodUnknown>, Returns>;
|
|
1126
|
+
returns<NewReturnType extends ZodType<any, any, any>>(returnType: NewReturnType): ZodFunction<Args, NewReturnType>;
|
|
1127
|
+
implement<F extends InnerTypeOfFunction<Args, Returns>>(func: F): ReturnType<F> extends Returns["_output"] ? (...args: Args["_input"]) => ReturnType<F> : OuterTypeOfFunction<Args, Returns>;
|
|
1128
|
+
strictImplement(func: InnerTypeOfFunction<Args, Returns>): InnerTypeOfFunction<Args, Returns>;
|
|
1129
|
+
validate: <F extends InnerTypeOfFunction<Args, Returns>>(func: F) => ReturnType<F> extends Returns["_output"] ? (...args: Args["_input"]) => ReturnType<F> : OuterTypeOfFunction<Args, Returns>;
|
|
1130
|
+
static create(): ZodFunction<ZodTuple<[], ZodUnknown>, ZodUnknown>;
|
|
1131
|
+
static create<T extends AnyZodTuple = ZodTuple<[], ZodUnknown>>(args: T): ZodFunction<T, ZodUnknown>;
|
|
1132
|
+
static create<T extends AnyZodTuple, U extends ZodTypeAny>(args: T, returns: U): ZodFunction<T, U>;
|
|
1133
|
+
static create<T extends AnyZodTuple = ZodTuple<[], ZodUnknown>, U extends ZodTypeAny = ZodUnknown>(args: T, returns: U, params?: RawCreateParams): ZodFunction<T, U>;
|
|
1134
|
+
}
|
|
1135
|
+
interface ZodLazyDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
|
|
1136
|
+
getter: () => T;
|
|
1137
|
+
typeName: ZodFirstPartyTypeKind.ZodLazy;
|
|
1138
|
+
}
|
|
1139
|
+
declare class ZodLazy<T extends ZodTypeAny> extends ZodType<output<T>, ZodLazyDef<T>, input<T>> {
|
|
1140
|
+
get schema(): T;
|
|
1141
|
+
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
|
|
1142
|
+
static create: <Inner extends ZodTypeAny>(getter: () => Inner, params?: RawCreateParams) => ZodLazy<Inner>;
|
|
1143
|
+
}
|
|
867
1144
|
interface ZodLiteralDef<T = any> extends ZodTypeDef {
|
|
868
1145
|
value: T;
|
|
869
1146
|
typeName: ZodFirstPartyTypeKind.ZodLiteral;
|
|
@@ -873,13 +1150,15 @@ declare class ZodLiteral<T> extends ZodType<T, ZodLiteralDef<T>, T> {
|
|
|
873
1150
|
get value(): T;
|
|
874
1151
|
static create: <Value extends Primitive>(value: Value, params?: RawCreateParams) => ZodLiteral<Value>;
|
|
875
1152
|
}
|
|
1153
|
+
type ArrayKeys = keyof any[];
|
|
1154
|
+
type Indices<T> = Exclude<keyof T, ArrayKeys>;
|
|
876
1155
|
type EnumValues<T extends string = string> = readonly [T, ...T[]];
|
|
877
|
-
type Values<T extends EnumValues> = { [k in T[number]]: k };
|
|
1156
|
+
type Values<T extends EnumValues> = { [k in T[number]]: k; };
|
|
878
1157
|
interface ZodEnumDef<T extends EnumValues = EnumValues> extends ZodTypeDef {
|
|
879
1158
|
values: T;
|
|
880
1159
|
typeName: ZodFirstPartyTypeKind.ZodEnum;
|
|
881
1160
|
}
|
|
882
|
-
type Writeable<T> = { -readonly [P in keyof T]: T[P] };
|
|
1161
|
+
type Writeable<T> = { -readonly [P in keyof T]: T[P]; };
|
|
883
1162
|
type FilterEnum<Values, ToExclude> = Values extends [] ? [] : Values extends [infer Head, ...infer Rest] ? Head extends ToExclude ? FilterEnum<Rest, ToExclude> : [Head, ...FilterEnum<Rest, ToExclude>] : never;
|
|
884
1163
|
type typecast<A, T> = A extends T ? A : never;
|
|
885
1164
|
declare function createZodEnum<U extends string, T extends Readonly<[U, ...U[]]>>(values: T, params?: RawCreateParams): ZodEnum<Writeable<T>>;
|
|
@@ -895,6 +1174,20 @@ declare class ZodEnum<T extends [string, ...string[]]> extends ZodType<T[number]
|
|
|
895
1174
|
exclude<ToExclude extends readonly [T[number], ...T[number][]]>(values: ToExclude, newDef?: RawCreateParams): ZodEnum<typecast<Writeable<FilterEnum<T, ToExclude[number]>>, [string, ...string[]]>>;
|
|
896
1175
|
static create: typeof createZodEnum;
|
|
897
1176
|
}
|
|
1177
|
+
interface ZodNativeEnumDef<T extends EnumLike = EnumLike> extends ZodTypeDef {
|
|
1178
|
+
values: T;
|
|
1179
|
+
typeName: ZodFirstPartyTypeKind.ZodNativeEnum;
|
|
1180
|
+
}
|
|
1181
|
+
type EnumLike = {
|
|
1182
|
+
[k: string]: string | number;
|
|
1183
|
+
[nu: number]: string;
|
|
1184
|
+
};
|
|
1185
|
+
declare class ZodNativeEnum<T extends EnumLike> extends ZodType<T[keyof T], ZodNativeEnumDef<T>, T[keyof T]> {
|
|
1186
|
+
_cache: Set<T[keyof T]> | undefined;
|
|
1187
|
+
_parse(input: ParseInput): ParseReturnType<T[keyof T]>;
|
|
1188
|
+
get enum(): T;
|
|
1189
|
+
static create: <Elements extends EnumLike>(values: Elements, params?: RawCreateParams) => ZodNativeEnum<Elements>;
|
|
1190
|
+
}
|
|
898
1191
|
interface ZodPromiseDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
|
|
899
1192
|
type: T;
|
|
900
1193
|
typeName: ZodFirstPartyTypeKind.ZodPromise;
|
|
@@ -904,6 +1197,8 @@ declare class ZodPromise<T extends ZodTypeAny> extends ZodType<Promise<T["_outpu
|
|
|
904
1197
|
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
|
|
905
1198
|
static create: <Inner extends ZodTypeAny>(schema: Inner, params?: RawCreateParams) => ZodPromise<Inner>;
|
|
906
1199
|
}
|
|
1200
|
+
type Refinement<T> = (arg: T, ctx: RefinementCtx) => any;
|
|
1201
|
+
type SuperRefinement<T> = (arg: T, ctx: RefinementCtx) => void | Promise<void>;
|
|
907
1202
|
type RefinementEffect<T> = {
|
|
908
1203
|
type: "refinement";
|
|
909
1204
|
refinement: (arg: T, ctx: RefinementCtx) => any;
|
|
@@ -933,6 +1228,7 @@ interface ZodOptionalDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
|
|
|
933
1228
|
innerType: T;
|
|
934
1229
|
typeName: ZodFirstPartyTypeKind.ZodOptional;
|
|
935
1230
|
}
|
|
1231
|
+
type ZodOptionalType<T extends ZodTypeAny> = ZodOptional<T>;
|
|
936
1232
|
declare class ZodOptional<T extends ZodTypeAny> extends ZodType<T["_output"] | undefined, ZodOptionalDef<T>, T["_input"] | undefined> {
|
|
937
1233
|
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
|
|
938
1234
|
unwrap(): T;
|
|
@@ -942,6 +1238,7 @@ interface ZodNullableDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
|
|
|
942
1238
|
innerType: T;
|
|
943
1239
|
typeName: ZodFirstPartyTypeKind.ZodNullable;
|
|
944
1240
|
}
|
|
1241
|
+
type ZodNullableType<T extends ZodTypeAny> = ZodNullable<T>;
|
|
945
1242
|
declare class ZodNullable<T extends ZodTypeAny> extends ZodType<T["_output"] | null, ZodNullableDef<T>, T["_input"] | null> {
|
|
946
1243
|
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
|
|
947
1244
|
unwrap(): T;
|
|
@@ -974,13 +1271,20 @@ declare class ZodCatch<T extends ZodTypeAny> extends ZodType<T["_output"], ZodCa
|
|
|
974
1271
|
catch: Inner["_output"] | (() => Inner["_output"]);
|
|
975
1272
|
}) => ZodCatch<Inner>;
|
|
976
1273
|
}
|
|
1274
|
+
interface ZodNaNDef extends ZodTypeDef {
|
|
1275
|
+
typeName: ZodFirstPartyTypeKind.ZodNaN;
|
|
1276
|
+
}
|
|
1277
|
+
declare class ZodNaN extends ZodType<number, ZodNaNDef, number> {
|
|
1278
|
+
_parse(input: ParseInput): ParseReturnType<any>;
|
|
1279
|
+
static create: (params?: RawCreateParams) => ZodNaN;
|
|
1280
|
+
}
|
|
977
1281
|
interface ZodBrandedDef<T extends ZodTypeAny> extends ZodTypeDef {
|
|
978
1282
|
type: T;
|
|
979
1283
|
typeName: ZodFirstPartyTypeKind.ZodBranded;
|
|
980
1284
|
}
|
|
981
1285
|
declare const BRAND: unique symbol;
|
|
982
1286
|
type BRAND<T extends string | number | symbol> = {
|
|
983
|
-
[BRAND]: { [k in T]: true };
|
|
1287
|
+
[BRAND]: { [k in T]: true; };
|
|
984
1288
|
};
|
|
985
1289
|
declare class ZodBranded<T extends ZodTypeAny, B extends string | number | symbol> extends ZodType<T["_output"] & BRAND<B>, ZodBrandedDef<T>, T["_input"]> {
|
|
986
1290
|
_parse(input: ParseInput): ParseReturnType<any>;
|
|
@@ -1008,6 +1312,24 @@ declare class ZodReadonly<T extends ZodTypeAny> extends ZodType<MakeReadonly<T["
|
|
|
1008
1312
|
static create: <Inner extends ZodTypeAny>(type: Inner, params?: RawCreateParams) => ZodReadonly<Inner>;
|
|
1009
1313
|
unwrap(): T;
|
|
1010
1314
|
}
|
|
1315
|
+
type CustomParams = CustomErrorParams & {
|
|
1316
|
+
fatal?: boolean;
|
|
1317
|
+
};
|
|
1318
|
+
declare function custom<T>(check?: (data: any) => any, _params?: string | CustomParams | ((input: any) => CustomParams),
|
|
1319
|
+
/**
|
|
1320
|
+
* @deprecated
|
|
1321
|
+
*
|
|
1322
|
+
* Pass `fatal` into the params object instead:
|
|
1323
|
+
*
|
|
1324
|
+
* ```ts
|
|
1325
|
+
* z.string().custom((val) => val.length > 5, { fatal: false })
|
|
1326
|
+
* ```
|
|
1327
|
+
*
|
|
1328
|
+
*/
|
|
1329
|
+
fatal?: boolean): ZodType<T, ZodTypeDef, T>;
|
|
1330
|
+
declare const late: {
|
|
1331
|
+
object: <Shape extends ZodRawShape>(shape: () => Shape, params?: RawCreateParams) => ZodObject<Shape, "strip">;
|
|
1332
|
+
};
|
|
1011
1333
|
declare enum ZodFirstPartyTypeKind {
|
|
1012
1334
|
ZodString = "ZodString",
|
|
1013
1335
|
ZodNumber = "ZodNumber",
|
|
@@ -1046,6 +1368,69 @@ declare enum ZodFirstPartyTypeKind {
|
|
|
1046
1368
|
ZodPipeline = "ZodPipeline",
|
|
1047
1369
|
ZodReadonly = "ZodReadonly"
|
|
1048
1370
|
}
|
|
1371
|
+
type ZodFirstPartySchemaTypes = ZodString | ZodNumber | ZodNaN | ZodBigInt | ZodBoolean | ZodDate | ZodUndefined | ZodNull | ZodAny | ZodUnknown | ZodNever | ZodVoid | ZodArray<any, any> | ZodObject<any, any, any> | ZodUnion<any> | ZodDiscriminatedUnion<any, any> | ZodIntersection<any, any> | ZodTuple<any, any> | ZodRecord<any, any> | ZodMap<any> | ZodSet<any> | ZodFunction<any, any> | ZodLazy<any> | ZodLiteral<any> | ZodEnum<any> | ZodEffects<any, any, any> | ZodNativeEnum<any> | ZodOptional<any> | ZodNullable<any> | ZodDefault<any> | ZodCatch<any> | ZodPromise<any> | ZodBranded<any, any> | ZodPipeline<any, any> | ZodReadonly<any> | ZodSymbol;
|
|
1372
|
+
declare abstract class Class {
|
|
1373
|
+
constructor(..._: any[]);
|
|
1374
|
+
}
|
|
1375
|
+
declare const instanceOfType: <T extends typeof Class>(cls: T, params?: CustomParams) => ZodType<InstanceType<T>, ZodTypeDef, InstanceType<T>>;
|
|
1376
|
+
declare const stringType: (params?: RawCreateParams & {
|
|
1377
|
+
coerce?: true;
|
|
1378
|
+
}) => ZodString;
|
|
1379
|
+
declare const numberType: (params?: RawCreateParams & {
|
|
1380
|
+
coerce?: boolean;
|
|
1381
|
+
}) => ZodNumber;
|
|
1382
|
+
declare const nanType: (params?: RawCreateParams) => ZodNaN;
|
|
1383
|
+
declare const bigIntType: (params?: RawCreateParams & {
|
|
1384
|
+
coerce?: boolean;
|
|
1385
|
+
}) => ZodBigInt;
|
|
1386
|
+
declare const booleanType: (params?: RawCreateParams & {
|
|
1387
|
+
coerce?: boolean;
|
|
1388
|
+
}) => ZodBoolean;
|
|
1389
|
+
declare const dateType: (params?: RawCreateParams & {
|
|
1390
|
+
coerce?: boolean;
|
|
1391
|
+
}) => ZodDate;
|
|
1392
|
+
declare const symbolType: (params?: RawCreateParams) => ZodSymbol;
|
|
1393
|
+
declare const undefinedType: (params?: RawCreateParams) => ZodUndefined;
|
|
1394
|
+
declare const nullType: (params?: RawCreateParams) => ZodNull;
|
|
1395
|
+
declare const anyType: (params?: RawCreateParams) => ZodAny;
|
|
1396
|
+
declare const unknownType: (params?: RawCreateParams) => ZodUnknown;
|
|
1397
|
+
declare const neverType: (params?: RawCreateParams) => ZodNever;
|
|
1398
|
+
declare const voidType: (params?: RawCreateParams) => ZodVoid;
|
|
1399
|
+
declare const arrayType: <El extends ZodTypeAny>(schema: El, params?: RawCreateParams) => ZodArray<El>;
|
|
1400
|
+
declare const objectType: <Shape extends ZodRawShape>(shape: Shape, params?: RawCreateParams) => ZodObject<Shape, "strip", ZodTypeAny, objectOutputType<Shape, ZodTypeAny, "strip">, objectInputType<Shape, ZodTypeAny, "strip">>;
|
|
1401
|
+
declare const strictObjectType: <Shape extends ZodRawShape>(shape: Shape, params?: RawCreateParams) => ZodObject<Shape, "strict">;
|
|
1402
|
+
declare const unionType: <Options extends Readonly<[ZodTypeAny, ZodTypeAny, ...ZodTypeAny[]]>>(types: Options, params?: RawCreateParams) => ZodUnion<Options>;
|
|
1403
|
+
declare const discriminatedUnionType: typeof ZodDiscriminatedUnion.create;
|
|
1404
|
+
declare const intersectionType: <TSchema extends ZodTypeAny, USchema extends ZodTypeAny>(left: TSchema, right: USchema, params?: RawCreateParams) => ZodIntersection<TSchema, USchema>;
|
|
1405
|
+
declare const tupleType: <Items extends [ZodTypeAny, ...ZodTypeAny[]] | []>(schemas: Items, params?: RawCreateParams) => ZodTuple<Items, null>;
|
|
1406
|
+
declare const recordType: typeof ZodRecord.create;
|
|
1407
|
+
declare const mapType: <KeySchema extends ZodTypeAny = ZodTypeAny, ValueSchema extends ZodTypeAny = ZodTypeAny>(keyType: KeySchema, valueType: ValueSchema, params?: RawCreateParams) => ZodMap<KeySchema, ValueSchema>;
|
|
1408
|
+
declare const setType: <ValueSchema extends ZodTypeAny = ZodTypeAny>(valueType: ValueSchema, params?: RawCreateParams) => ZodSet<ValueSchema>;
|
|
1409
|
+
declare const functionType: typeof ZodFunction.create;
|
|
1410
|
+
declare const lazyType: <Inner extends ZodTypeAny>(getter: () => Inner, params?: RawCreateParams) => ZodLazy<Inner>;
|
|
1411
|
+
declare const literalType: <Value extends Primitive>(value: Value, params?: RawCreateParams) => ZodLiteral<Value>;
|
|
1412
|
+
declare const enumType: typeof createZodEnum;
|
|
1413
|
+
declare const nativeEnumType: <Elements extends EnumLike>(values: Elements, params?: RawCreateParams) => ZodNativeEnum<Elements>;
|
|
1414
|
+
declare const promiseType: <Inner extends ZodTypeAny>(schema: Inner, params?: RawCreateParams) => ZodPromise<Inner>;
|
|
1415
|
+
declare const effectsType: <I extends ZodTypeAny>(schema: I, effect: Effect<I["_output"]>, params?: RawCreateParams) => ZodEffects<I, I["_output"]>;
|
|
1416
|
+
declare const optionalType: <Inner extends ZodTypeAny>(type: Inner, params?: RawCreateParams) => ZodOptional<Inner>;
|
|
1417
|
+
declare const nullableType: <Inner extends ZodTypeAny>(type: Inner, params?: RawCreateParams) => ZodNullable<Inner>;
|
|
1418
|
+
declare const preprocessType: <I extends ZodTypeAny>(preprocess: (arg: unknown, ctx: RefinementCtx) => unknown, schema: I, params?: RawCreateParams) => ZodEffects<I, I["_output"], unknown>;
|
|
1419
|
+
declare const pipelineType: typeof ZodPipeline.create;
|
|
1420
|
+
declare const ostring: () => ZodOptional<ZodString>;
|
|
1421
|
+
declare const onumber: () => ZodOptional<ZodNumber>;
|
|
1422
|
+
declare const oboolean: () => ZodOptional<ZodBoolean>;
|
|
1423
|
+
declare const coerce: {
|
|
1424
|
+
string: (typeof ZodString)["create"];
|
|
1425
|
+
number: (typeof ZodNumber)["create"];
|
|
1426
|
+
boolean: (typeof ZodBoolean)["create"];
|
|
1427
|
+
bigint: (typeof ZodBigInt)["create"];
|
|
1428
|
+
date: (typeof ZodDate)["create"];
|
|
1429
|
+
};
|
|
1430
|
+
declare const NEVER: never;
|
|
1431
|
+
declare namespace external_d_exports {
|
|
1432
|
+
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 };
|
|
1433
|
+
}
|
|
1049
1434
|
//#endregion
|
|
1050
1435
|
//#region ../node_modules/.pnpm/@milaboratories+pl-error-like@1.12.10/node_modules/@milaboratories/pl-error-like/dist/error_like_shape.d.ts
|
|
1051
1436
|
//#region src/error_like_shape.d.ts
|
|
@@ -1098,9 +1483,8 @@ type StandardErrorLike = TypeOf<typeof BaseStandardErrorLike> & {
|
|
|
1098
1483
|
declare const StandardErrorLike: ZodType<StandardErrorLike>;
|
|
1099
1484
|
declare const ErrorLike: ZodUnion<[ZodType<StandardErrorLike, ZodTypeDef, StandardErrorLike>, ZodType<PlErrorLike, ZodTypeDef, PlErrorLike>]>;
|
|
1100
1485
|
type ErrorLike = TypeOf<typeof ErrorLike>;
|
|
1101
|
-
/** Converts everything into ErrorLike. */
|
|
1102
1486
|
//#endregion
|
|
1103
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
1487
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/common_types.d.ts
|
|
1104
1488
|
type OutputWithStatus<T> = {
|
|
1105
1489
|
ok: true;
|
|
1106
1490
|
value: T;
|
|
@@ -1113,7 +1497,7 @@ type OutputWithStatus<T> = {
|
|
|
1113
1497
|
/** Base type for block outputs */
|
|
1114
1498
|
type BlockOutputsBase = Record<string, OutputWithStatus<unknown>>;
|
|
1115
1499
|
//#endregion
|
|
1116
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
1500
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/navigation.d.ts
|
|
1117
1501
|
/**
|
|
1118
1502
|
* Part of the block state, representing current navigation information
|
|
1119
1503
|
* (i.e. currently selected section)
|
|
@@ -1122,14 +1506,14 @@ type NavigationState<Href extends `/${string}` = `/${string}`> = {
|
|
|
1122
1506
|
readonly href: Href;
|
|
1123
1507
|
};
|
|
1124
1508
|
//#endregion
|
|
1125
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
1509
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/json.d.ts
|
|
1126
1510
|
//#region src/json.d.ts
|
|
1127
1511
|
type JsonPrimitive = string | number | boolean | null;
|
|
1128
1512
|
type JsonValue = JsonPrimitive | JsonValue[] | {
|
|
1129
1513
|
[key: string]: JsonValue;
|
|
1130
1514
|
};
|
|
1131
1515
|
type NotAssignableToJson = bigint | symbol | Function;
|
|
1132
|
-
type JsonCompatible<T> = unknown extends T ? unknown : [T] extends [JsonValue] ? T : [T] extends [NotAssignableToJson] ? never : { [P in keyof T]: [Exclude<T[P], undefined>] extends [JsonValue] ? T[P] : [Exclude<T[P], undefined>] extends [NotAssignableToJson] ? never : JsonCompatible<T[P]
|
|
1516
|
+
type JsonCompatible<T> = unknown extends T ? unknown : [T] extends [JsonValue] ? T : [T] extends [NotAssignableToJson] ? never : { [P in keyof T]: [Exclude<T[P], undefined>] extends [JsonValue] ? T[P] : [Exclude<T[P], undefined>] extends [NotAssignableToJson] ? never : JsonCompatible<T[P]>; };
|
|
1133
1517
|
type StringifiedJson<T = unknown> = JsonCompatible<T> extends never ? never : string & {
|
|
1134
1518
|
__json_stringified: T;
|
|
1135
1519
|
};
|
|
@@ -1137,7 +1521,7 @@ type CanonicalizedJson<T = unknown> = JsonCompatible<T> extends never ? never :
|
|
|
1137
1521
|
__json_canonicalized: T;
|
|
1138
1522
|
};
|
|
1139
1523
|
//#endregion
|
|
1140
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
1524
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/block_state.d.ts
|
|
1141
1525
|
//#region src/block_state.d.ts
|
|
1142
1526
|
/**
|
|
1143
1527
|
* @template Args sets type of block arguments passed to the workflow
|
|
@@ -1148,7 +1532,7 @@ type CanonicalizedJson<T = unknown> = JsonCompatible<T> extends never ? never :
|
|
|
1148
1532
|
* @template Href typed href to represent navigation state
|
|
1149
1533
|
*/
|
|
1150
1534
|
type BlockState<Args = unknown, Outputs extends BlockOutputsBase = BlockOutputsBase, UiState = unknown, Href extends `/${string}` = `/${string}`> = {
|
|
1151
|
-
/** Block arguments passed to the workflow */args: Args;
|
|
1535
|
+
/** Block arguments passed to the workflow */ args: Args;
|
|
1152
1536
|
/** UI State persisted in the block state but not passed to the backend
|
|
1153
1537
|
* template */
|
|
1154
1538
|
ui: UiState; /** Outputs rendered with block config */
|
|
@@ -1157,18 +1541,18 @@ type BlockState<Args = unknown, Outputs extends BlockOutputsBase = BlockOutputsB
|
|
|
1157
1541
|
readonly author: AuthorMarker | undefined;
|
|
1158
1542
|
};
|
|
1159
1543
|
type BlockStateV3<_Data = unknown, Outputs extends BlockOutputsBase = BlockOutputsBase, Href extends `/${string}` = `/${string}`> = {
|
|
1160
|
-
/** Block storage persisted in the block state */blockStorage: StringifiedJson; /** Outputs rendered with block config */
|
|
1544
|
+
/** Block storage persisted in the block state */ blockStorage: StringifiedJson; /** Outputs rendered with block config */
|
|
1161
1545
|
outputs: Outputs; /** Current navigation state */
|
|
1162
1546
|
navigationState: NavigationState<Href>;
|
|
1163
1547
|
readonly author: AuthorMarker | undefined;
|
|
1164
|
-
};
|
|
1548
|
+
};
|
|
1165
1549
|
//#endregion
|
|
1166
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
1550
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/branding.d.ts
|
|
1167
1551
|
//#region src/branding.d.ts
|
|
1168
|
-
type Brand<B, K extends string = "__pl_model_brand__"> = { [key in K]: B };
|
|
1169
|
-
type Branded$1<T, B, K extends string = "__pl_model_brand__"> = T & Brand<B, K>;
|
|
1552
|
+
type Brand<B, K extends string = "__pl_model_brand__"> = { [key in K]: B; };
|
|
1553
|
+
type Branded$1<T, B, K extends string = "__pl_model_brand__"> = T & Brand<B, K>;
|
|
1170
1554
|
//#endregion
|
|
1171
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
1555
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/dialog/index.d.ts
|
|
1172
1556
|
//#region src/dialog/index.d.ts
|
|
1173
1557
|
/**
|
|
1174
1558
|
* File filter passed to the native save dialog. Matches Electron's
|
|
@@ -1199,9 +1583,9 @@ interface ShowSaveDialogResult {
|
|
|
1199
1583
|
*/
|
|
1200
1584
|
interface DialogService {
|
|
1201
1585
|
showSaveDialog(options: ShowSaveDialogOptions): Promise<ShowSaveDialogResult>;
|
|
1202
|
-
}
|
|
1586
|
+
}
|
|
1203
1587
|
//#endregion
|
|
1204
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
1588
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/pool_entry.d.ts
|
|
1205
1589
|
//#region src/pool_entry.d.ts
|
|
1206
1590
|
interface PoolEntry<K extends string = string, R extends {} = {}> extends Disposable {
|
|
1207
1591
|
/** Resource key, calculated using provided `calculateParamsKey` function */
|
|
@@ -1215,12 +1599,8 @@ interface PoolEntry<K extends string = string, R extends {} = {}> extends Dispos
|
|
|
1215
1599
|
*/
|
|
1216
1600
|
readonly unref: () => void;
|
|
1217
1601
|
}
|
|
1218
|
-
/**
|
|
1219
|
-
* Wraps a PoolEntry for use with `using`. Auto-calls `unref()` at end of scope
|
|
1220
|
-
* unless `keep()` is called to transfer ownership to the caller.
|
|
1221
|
-
*/
|
|
1222
1602
|
//#endregion
|
|
1223
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
1603
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/table_common.d.ts
|
|
1224
1604
|
//#region src/drivers/pframe/table_common.d.ts
|
|
1225
1605
|
type PTableColumnSpecAxis = {
|
|
1226
1606
|
type: "axis";
|
|
@@ -1251,7 +1631,7 @@ type PTableColumnIdColumn = {
|
|
|
1251
1631
|
/** Unified PTable column identifier */
|
|
1252
1632
|
type PTableColumnId = PTableColumnIdAxis | PTableColumnIdColumn;
|
|
1253
1633
|
//#endregion
|
|
1254
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
1634
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/data_types.d.ts
|
|
1255
1635
|
//#region src/drivers/pframe/data_types.d.ts
|
|
1256
1636
|
type PVectorDataInt = Int32Array;
|
|
1257
1637
|
type PVectorDataLong = BigInt64Array;
|
|
@@ -1261,7 +1641,7 @@ type PVectorDataString = (null | string)[];
|
|
|
1261
1641
|
type PVectorDataBytes = (null | Uint8Array)[];
|
|
1262
1642
|
type PVectorDataTyped<DataType extends ValueType> = DataType extends typeof ValueType.Int ? PVectorDataInt : DataType extends typeof ValueType.Long ? PVectorDataLong : DataType extends typeof ValueType.Float ? PVectorDataFloat : DataType extends typeof ValueType.Double ? PVectorDataDouble : DataType extends typeof ValueType.String ? PVectorDataString : DataType extends typeof ValueType.Bytes ? PVectorDataBytes : never;
|
|
1263
1643
|
type PTableVectorTyped<DataType extends ValueType> = {
|
|
1264
|
-
/** Stored data type */readonly type: DataType; /** Values for present positions */
|
|
1644
|
+
/** Stored data type */ readonly type: DataType; /** Values for present positions */
|
|
1265
1645
|
readonly data: PVectorDataTyped<DataType>;
|
|
1266
1646
|
/**
|
|
1267
1647
|
* Encoded bit array marking some elements of this vector as NA,
|
|
@@ -1275,17 +1655,16 @@ type PTableVectorTyped<DataType extends ValueType> = {
|
|
|
1275
1655
|
type PTableVector = PTableVectorTyped<ValueType>;
|
|
1276
1656
|
/** Used in requests to partially retrieve table's data */
|
|
1277
1657
|
type TableRange = {
|
|
1278
|
-
/** Index of the first record to retrieve */readonly offset: number; /** Block length */
|
|
1658
|
+
/** Index of the first record to retrieve */ readonly offset: number; /** Block length */
|
|
1279
1659
|
readonly length: number;
|
|
1280
1660
|
};
|
|
1281
1661
|
/** Unified information about table shape */
|
|
1282
1662
|
type PTableShape = {
|
|
1283
|
-
/** Number of unified table columns, including all axes and PColumn values */columns: number; /** Number of rows */
|
|
1663
|
+
/** Number of unified table columns, including all axes and PColumn values */ columns: number; /** Number of rows */
|
|
1284
1664
|
rows: number;
|
|
1285
1665
|
};
|
|
1286
1666
|
/** Supported formats for PTable file download. */
|
|
1287
1667
|
type PTableDownloadFormat = "csv" | "tsv";
|
|
1288
|
-
/** Compression applied to the written file. */
|
|
1289
1668
|
/** Options for downloading PTable data to a file. */
|
|
1290
1669
|
interface WritePTableToFsOptions {
|
|
1291
1670
|
path: string;
|
|
@@ -1319,11 +1698,6 @@ interface WritePTableToFsResult {
|
|
|
1319
1698
|
rowsWritten: number;
|
|
1320
1699
|
bytesWritten: number;
|
|
1321
1700
|
}
|
|
1322
|
-
/**
|
|
1323
|
-
* Maximum number of data rows allowed per sheet in an `xlsx` export, kept below
|
|
1324
|
-
* Excel's hard limit of 1,048,576. The driver rejects oversized `xlsx` exports
|
|
1325
|
-
* (see {@link PFrameDriver.exportPTable}); UIs use it to gate the `xlsx` option.
|
|
1326
|
-
*/
|
|
1327
1701
|
/** Options for {@link PFrameDriver.exportPTable}. */
|
|
1328
1702
|
interface ExportPTableOptions {
|
|
1329
1703
|
/** Destination file path; its extension selects the output format
|
|
@@ -1344,9 +1718,9 @@ interface ExportPTableOptions {
|
|
|
1344
1718
|
* read. Older runtimes ignore this field and use {@link columnIndices} alone.
|
|
1345
1719
|
*/
|
|
1346
1720
|
headerNames?: string[];
|
|
1347
|
-
}
|
|
1721
|
+
}
|
|
1348
1722
|
//#endregion
|
|
1349
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
1723
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/data_info.d.ts
|
|
1350
1724
|
//#region src/drivers/pframe/data_info.d.ts
|
|
1351
1725
|
/**
|
|
1352
1726
|
* Represents a JavaScript representation of a value in a PColumn. Can be null, a number, or a string.
|
|
@@ -1361,16 +1735,12 @@ type PColumnValue = null | number | string;
|
|
|
1361
1735
|
* Can be an array of strings or numbers.
|
|
1362
1736
|
*/
|
|
1363
1737
|
type PColumnKey = (number | string)[];
|
|
1364
|
-
/**
|
|
1365
|
-
* Represents a single entry in a PColumn's data structure.
|
|
1366
|
-
* Contains a key and a value.
|
|
1367
|
-
*/
|
|
1368
1738
|
/**
|
|
1369
1739
|
* Represents column data stored as a simple JSON structure.
|
|
1370
1740
|
* Used for small datasets that can be efficiently stored directly in memory.
|
|
1371
1741
|
*/
|
|
1372
1742
|
type JsonDataInfo = {
|
|
1373
|
-
/** Identifier for this data format ('Json') */type: "Json"; /** Number of axes that make up the complete key (tuple length) */
|
|
1743
|
+
/** Identifier for this data format ('Json') */ type: "Json"; /** Number of axes that make up the complete key (tuple length) */
|
|
1374
1744
|
keyLength: number;
|
|
1375
1745
|
/**
|
|
1376
1746
|
* Key-value pairs where keys are stringified tuples of axis values
|
|
@@ -1383,7 +1753,7 @@ type JsonDataInfo = {
|
|
|
1383
1753
|
* Used for larger datasets that need to be split into manageable chunks.
|
|
1384
1754
|
*/
|
|
1385
1755
|
type JsonPartitionedDataInfo<Blob> = {
|
|
1386
|
-
/** Identifier for this data format ('JsonPartitioned') */type: "JsonPartitioned"; /** Number of leading axes used for partitioning */
|
|
1756
|
+
/** Identifier for this data format ('JsonPartitioned') */ type: "JsonPartitioned"; /** Number of leading axes used for partitioning */
|
|
1387
1757
|
partitionKeyLength: number; /** Map of stringified partition keys to blob references */
|
|
1388
1758
|
parts: Record<string, Blob>;
|
|
1389
1759
|
};
|
|
@@ -1392,7 +1762,7 @@ type JsonPartitionedDataInfo<Blob> = {
|
|
|
1392
1762
|
* Used for efficient storage and retrieval of column data in binary format.
|
|
1393
1763
|
*/
|
|
1394
1764
|
type BinaryChunk<Blob> = {
|
|
1395
|
-
/** Binary blob containing structured index information */index: Blob; /** Binary blob containing the actual values */
|
|
1765
|
+
/** Binary blob containing structured index information */ index: Blob; /** Binary blob containing the actual values */
|
|
1396
1766
|
values: Blob;
|
|
1397
1767
|
};
|
|
1398
1768
|
/**
|
|
@@ -1400,12 +1770,12 @@ type BinaryChunk<Blob> = {
|
|
|
1400
1770
|
* Optimized for efficient storage and retrieval of large datasets.
|
|
1401
1771
|
*/
|
|
1402
1772
|
type BinaryPartitionedDataInfo<Blob> = {
|
|
1403
|
-
/** Identifier for this data format ('BinaryPartitioned') */type: "BinaryPartitioned"; /** Number of leading axes used for partitioning */
|
|
1773
|
+
/** Identifier for this data format ('BinaryPartitioned') */ type: "BinaryPartitioned"; /** Number of leading axes used for partitioning */
|
|
1404
1774
|
partitionKeyLength: number; /** Map of stringified partition keys to binary chunks */
|
|
1405
1775
|
parts: Record<string, BinaryChunk<Blob>>;
|
|
1406
1776
|
};
|
|
1407
1777
|
type ParquetPartitionedDataInfo<Blob> = {
|
|
1408
|
-
/** Identifier for this data format ('ParquetPartitioned') */type: "ParquetPartitioned"; /** Number of leading axes used for partitioning */
|
|
1778
|
+
/** Identifier for this data format ('ParquetPartitioned') */ type: "ParquetPartitioned"; /** Number of leading axes used for partitioning */
|
|
1409
1779
|
partitionKeyLength: number; /** Map of stringified partition keys to parquet files */
|
|
1410
1780
|
parts: Record<string, Blob>;
|
|
1411
1781
|
};
|
|
@@ -1416,12 +1786,6 @@ type ParquetPartitionedDataInfo<Blob> = {
|
|
|
1416
1786
|
* @template Blob - Type parameter representing the storage reference type (could be ResourceInfo, PFrameBlobId, etc.)
|
|
1417
1787
|
*/
|
|
1418
1788
|
type DataInfo<Blob> = JsonDataInfo | JsonPartitionedDataInfo<Blob> | BinaryPartitionedDataInfo<Blob> | ParquetPartitionedDataInfo<Blob>;
|
|
1419
|
-
/**
|
|
1420
|
-
* Type guard function that checks if the given value is a valid DataInfo.
|
|
1421
|
-
*
|
|
1422
|
-
* @param value - The value to check
|
|
1423
|
-
* @returns True if the value is a valid DataInfo, false otherwise
|
|
1424
|
-
*/
|
|
1425
1789
|
/**
|
|
1426
1790
|
* Represents a single key-value entry in a column's explicit data structure.
|
|
1427
1791
|
* Used when directly instantiating PColumns with explicit data.
|
|
@@ -1435,9 +1799,6 @@ type PColumnValuesEntry = {
|
|
|
1435
1799
|
* Used for lightweight explicit instantiation of PColumns.
|
|
1436
1800
|
*/
|
|
1437
1801
|
type PColumnValues = PColumnValuesEntry[];
|
|
1438
|
-
/**
|
|
1439
|
-
* Entry-based representation of JsonDataInfo
|
|
1440
|
-
*/
|
|
1441
1802
|
//#endregion
|
|
1442
1803
|
//#region ../node_modules/.pnpm/@milaboratories+helpers@1.14.5/node_modules/@milaboratories/helpers/dist/types/brand.d.ts
|
|
1443
1804
|
//#region src/types/brand.d.ts
|
|
@@ -1461,7 +1822,7 @@ type Branded<T, B> = T & {
|
|
|
1461
1822
|
readonly __brand: B;
|
|
1462
1823
|
};
|
|
1463
1824
|
//#endregion
|
|
1464
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
1825
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec/overridden.d.ts
|
|
1465
1826
|
//#region src/drivers/pframe/spec/overridden.d.ts
|
|
1466
1827
|
type SpecOverrides = Pick<PColumnSpec, "domain" | "contextDomain" | "annotations"> & {
|
|
1467
1828
|
axesSpec?: AxisPatches;
|
|
@@ -1478,7 +1839,7 @@ interface ColumnOverriddenKey {
|
|
|
1478
1839
|
}
|
|
1479
1840
|
type ColumnOverriddenId = Branded<CanonicalizedJson<ColumnOverriddenKey>, "ColumnOverriddenId">;
|
|
1480
1841
|
//#endregion
|
|
1481
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
1842
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/query/query_common.d.ts
|
|
1482
1843
|
//#region src/drivers/pframe/query/query_common.d.ts
|
|
1483
1844
|
/**
|
|
1484
1845
|
* Structural type information for a single column: the axis value types (in
|
|
@@ -1486,7 +1847,7 @@ type ColumnOverriddenId = Branded<CanonicalizedJson<ColumnOverriddenKey>, "Colum
|
|
|
1486
1847
|
* `typeSpec` shape carried by the data layer (`{ axes, column }`).
|
|
1487
1848
|
*/
|
|
1488
1849
|
type ColumnTypeSpec = {
|
|
1489
|
-
/** List of axis value types defining the dimensions of the data */axes: AxisValueType[]; /** The single column value type */
|
|
1850
|
+
/** List of axis value types defining the dimensions of the data */ axes: AxisValueType[]; /** The single column value type */
|
|
1490
1851
|
column: ColumnValueType;
|
|
1491
1852
|
};
|
|
1492
1853
|
/**
|
|
@@ -2173,7 +2534,7 @@ interface QuerySliceAxes<Q, A> {
|
|
|
2173
2534
|
input: Q;
|
|
2174
2535
|
/** List of axis filters to apply (at least one required) */
|
|
2175
2536
|
axisFilters: {
|
|
2176
|
-
/** Axis to filter. `SingleAxisSelector` at the spec layer; axis index at the data layer. */axisSelector: A; /** The constant value to filter the axis to */
|
|
2537
|
+
/** Axis to filter. `SingleAxisSelector` at the spec layer; axis index at the data layer. */ axisSelector: A; /** The constant value to filter the axis to */
|
|
2177
2538
|
constant: string | number;
|
|
2178
2539
|
}[];
|
|
2179
2540
|
}
|
|
@@ -2523,9 +2884,9 @@ interface QuerySpecOverride<Q, SO> {
|
|
|
2523
2884
|
input: Q;
|
|
2524
2885
|
/** Spec override patch to overlay on the inner spec. */
|
|
2525
2886
|
override: SO;
|
|
2526
|
-
}
|
|
2887
|
+
}
|
|
2527
2888
|
//#endregion
|
|
2528
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
2889
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/query/query_data.d.ts
|
|
2529
2890
|
//#region src/drivers/pframe/query/query_data.d.ts
|
|
2530
2891
|
/**
|
|
2531
2892
|
* Column identifier with type specification.
|
|
@@ -2534,7 +2895,7 @@ interface QuerySpecOverride<Q, SO> {
|
|
|
2534
2895
|
* Used in data layer to carry type information alongside column references.
|
|
2535
2896
|
*/
|
|
2536
2897
|
type ColumnIdAndTypeSpec = {
|
|
2537
|
-
/** Unique identifier of the column */id: PObjectId; /** Type specification defining the axes and the single column value type */
|
|
2898
|
+
/** Unique identifier of the column */ id: PObjectId; /** Type specification defining the axes and the single column value type */
|
|
2538
2899
|
spec: ColumnTypeSpec;
|
|
2539
2900
|
};
|
|
2540
2901
|
/**
|
|
@@ -2572,7 +2933,7 @@ type DataQueryOuterJoin = QueryOuterJoin<DataQueryJoinEntry>;
|
|
|
2572
2933
|
* - `oneSideAxesIndices` — which axis indices in the joined result to project out
|
|
2573
2934
|
*/
|
|
2574
2935
|
type DataQueryLinkerJoinLinker = {
|
|
2575
|
-
/** Linker column reference. */column: PObjectId; /** Linker's axes mapped into the joined result. */
|
|
2936
|
+
/** Linker column reference. */ column: PObjectId; /** Linker's axes mapped into the joined result. */
|
|
2576
2937
|
axesMapping: number[]; /** Axis indices (in the joined result) to project out — the linker's one-side axes. */
|
|
2577
2938
|
oneSideAxesIndices: number[];
|
|
2578
2939
|
};
|
|
@@ -2603,9 +2964,9 @@ type DataExprAxisRef = ExprAxisRef<number>;
|
|
|
2603
2964
|
/** @see ExprColumnRef */
|
|
2604
2965
|
type DataExprColumnRef = ExprColumnRef<number>;
|
|
2605
2966
|
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>;
|
|
2606
|
-
type DataQueryBooleanExpression = InferBooleanExpressionUnion<DataQueryExpression>;
|
|
2967
|
+
type DataQueryBooleanExpression = InferBooleanExpressionUnion<DataQueryExpression>;
|
|
2607
2968
|
//#endregion
|
|
2608
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
2969
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec_driver.d.ts
|
|
2609
2970
|
//#region src/drivers/pframe/spec_driver.d.ts
|
|
2610
2971
|
/** Matches a string value either exactly or by regex pattern */
|
|
2611
2972
|
type StringMatcher = {
|
|
@@ -2716,7 +3077,7 @@ type DiscoverColumnsStepInfo = DiscoverColumnsLinkerStep | DiscoverColumnsFilter
|
|
|
2716
3077
|
* propagate into the inner query.
|
|
2717
3078
|
*/
|
|
2718
3079
|
type BuildQueryInput = {
|
|
2719
|
-
/** Shape version marker — bumped only on breaking structural changes. */readonly version: "v1"; /** Terminal column id — the column actually returning data. */
|
|
3080
|
+
/** Shape version marker — bumped only on breaking structural changes. */ readonly version: "v1"; /** Terminal column id — the column actually returning data. */
|
|
2720
3081
|
readonly column: PObjectId; /** Ordered path from source integration to `column`. Outermost first. */
|
|
2721
3082
|
readonly path?: DiscoverColumnsStepInfo[]; /** Axis qualifications attached to the resulting join entry. */
|
|
2722
3083
|
readonly qualifications?: AxisQualification[];
|
|
@@ -2818,9 +3179,9 @@ interface PFrameSpecDriver {
|
|
|
2818
3179
|
tableSpec: PTableColumnSpec[];
|
|
2819
3180
|
filters: PTableRecordFilter[];
|
|
2820
3181
|
}): DataQueryBooleanExpression[];
|
|
2821
|
-
}
|
|
3182
|
+
}
|
|
2822
3183
|
//#endregion
|
|
2823
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
3184
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec/selectors.d.ts
|
|
2824
3185
|
/** Single axis selector */
|
|
2825
3186
|
interface SingleAxisSelector {
|
|
2826
3187
|
/** Axis name (required) */
|
|
@@ -2841,12 +3202,8 @@ interface AxisQualification {
|
|
|
2841
3202
|
/** Additional context domain entries applied to the axis. */
|
|
2842
3203
|
readonly contextDomain: Record<string, string>;
|
|
2843
3204
|
}
|
|
2844
|
-
/**
|
|
2845
|
-
* Reference to an axis by its numerical index within the anchor column's axes array
|
|
2846
|
-
* Format: [anchorId, axisIndex]
|
|
2847
|
-
*/
|
|
2848
3205
|
//#endregion
|
|
2849
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
3206
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/query/query_spec.d.ts
|
|
2850
3207
|
//#region src/drivers/pframe/query/query_spec.d.ts
|
|
2851
3208
|
/**
|
|
2852
3209
|
* Join entry for spec-layer queries — the base join entry extended with
|
|
@@ -2860,7 +3217,7 @@ interface AxisQualification {
|
|
|
2860
3217
|
*/
|
|
2861
3218
|
type SpecQueryJoinEntry<C = ColumnUniversalId> = QueryJoinEntry<SpecQuery<C>> & {
|
|
2862
3219
|
qualifications?: readonly {
|
|
2863
|
-
/** Axis to qualify. */axis: SingleAxisSelector; /** Additional domain constraints for this axis. */
|
|
3220
|
+
/** Axis to qualify. */ axis: SingleAxisSelector; /** Additional domain constraints for this axis. */
|
|
2864
3221
|
contextDomain: Domain;
|
|
2865
3222
|
}[];
|
|
2866
3223
|
};
|
|
@@ -2913,9 +3270,9 @@ type SpecExprAxisRef = ExprAxisRef<SingleAxisSelector>;
|
|
|
2913
3270
|
/** @see ExprColumnRef */
|
|
2914
3271
|
type SpecExprColumnRef = ExprColumnRef<ColumnUniversalId>;
|
|
2915
3272
|
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>;
|
|
2916
|
-
type SpecQueryBooleanExpression = InferBooleanExpressionUnion<SpecQueryExpression>;
|
|
3273
|
+
type SpecQueryBooleanExpression = InferBooleanExpressionUnion<SpecQueryExpression>;
|
|
2917
3274
|
//#endregion
|
|
2918
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
3275
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/table_calculate.d.ts
|
|
2919
3276
|
//#region src/drivers/pframe/table_calculate.d.ts
|
|
2920
3277
|
/** Defines a terminal column node in the join request tree */
|
|
2921
3278
|
interface ColumnJoinEntry<Col> {
|
|
@@ -3169,7 +3526,7 @@ interface PTableRecordSingleValueFilterV2 {
|
|
|
3169
3526
|
type PTableRecordFilter = PTableRecordSingleValueFilterV2;
|
|
3170
3527
|
/** Sorting parameters for a PTable. */
|
|
3171
3528
|
type PTableSorting = {
|
|
3172
|
-
/** Unified column identifier */readonly column: PTableColumnId; /** Sorting order */
|
|
3529
|
+
/** Unified column identifier */ readonly column: PTableColumnId; /** Sorting order */
|
|
3173
3530
|
readonly ascending: boolean; /** Sorting in respect to NA and absent values */
|
|
3174
3531
|
readonly naAndAbsentAreLeastValues: boolean;
|
|
3175
3532
|
};
|
|
@@ -3191,14 +3548,14 @@ interface PTableDefV2<Col> {
|
|
|
3191
3548
|
}
|
|
3192
3549
|
/** Request to create and retrieve entirety of data of PTable. */
|
|
3193
3550
|
type CalculateTableDataRequest<Col> = {
|
|
3194
|
-
/** Join tree to populate the PTable */readonly src: JoinEntry<Col>; /** Record filters */
|
|
3551
|
+
/** Join tree to populate the PTable */ readonly src: JoinEntry<Col>; /** Record filters */
|
|
3195
3552
|
readonly filters: PTableRecordFilter[]; /** Table sorting */
|
|
3196
3553
|
readonly sorting: PTableSorting[];
|
|
3197
3554
|
};
|
|
3198
3555
|
/** Response for {@link CalculateTableDataRequest} */
|
|
3199
3556
|
type CalculateTableDataResponse = FullPTableColumnData[];
|
|
3200
3557
|
//#endregion
|
|
3201
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
3558
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/ref.d.ts
|
|
3202
3559
|
//#region src/ref.d.ts
|
|
3203
3560
|
declare const PlRef: ZodReadonly<ZodObject<{
|
|
3204
3561
|
__isRef: ZodLiteral<true>;
|
|
@@ -3217,13 +3574,12 @@ declare const PlRef: ZodReadonly<ZodObject<{
|
|
|
3217
3574
|
requireEnrichments?: true | undefined;
|
|
3218
3575
|
}>>;
|
|
3219
3576
|
type PlRef = TypeOf<typeof PlRef>;
|
|
3220
|
-
/** @deprecated use {@link PlRef} */
|
|
3221
3577
|
//#endregion
|
|
3222
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
3578
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/pool/spec.d.ts
|
|
3223
3579
|
//#region src/pool/spec.d.ts
|
|
3224
3580
|
/** Any object exported into the result pool by the block always have spec attached to it */
|
|
3225
3581
|
type PObjectSpec = {
|
|
3226
|
-
/** PObject kind discriminator */readonly kind: string; /** Name is common part of PObject identity */
|
|
3582
|
+
/** PObject kind discriminator */ readonly kind: string; /** Name is common part of PObject identity */
|
|
3227
3583
|
readonly name: string; /** Domain is a set of key-value pairs that can be used to identify the object */
|
|
3228
3584
|
readonly domain?: Record<string, string>;
|
|
3229
3585
|
/** Context domain provides additional axis/column identity that is matched
|
|
@@ -3254,7 +3610,7 @@ interface PObject<Data> {
|
|
|
3254
3610
|
readonly data: Data;
|
|
3255
3611
|
}
|
|
3256
3612
|
//#endregion
|
|
3257
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
3613
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec/spec.d.ts
|
|
3258
3614
|
//#region src/drivers/pframe/spec/spec.d.ts
|
|
3259
3615
|
declare const ValueType: {
|
|
3260
3616
|
readonly Int: "Int";
|
|
@@ -3295,7 +3651,7 @@ type Domain = Metadata & Partial<{
|
|
|
3295
3651
|
* all the axes specified in the column spec.
|
|
3296
3652
|
*/
|
|
3297
3653
|
type AxisSpec = {
|
|
3298
|
-
/** Type of the axis value. Should not use non-key types like float or double. */readonly type: AxisValueType; /** Name of the axis */
|
|
3654
|
+
/** Type of the axis value. Should not use non-key types like float or double. */ readonly type: AxisValueType; /** Name of the axis */
|
|
3299
3655
|
readonly name: string;
|
|
3300
3656
|
/** Adds auxiliary information to the axis name, type and parents to form a
|
|
3301
3657
|
* unique identifier */
|
|
@@ -3326,7 +3682,6 @@ type AxisSpec = {
|
|
|
3326
3682
|
*/
|
|
3327
3683
|
readonly parentAxes?: number[];
|
|
3328
3684
|
};
|
|
3329
|
-
/** Parents are specs, not indexes; normalized axis can be used considering its parents independently from column */
|
|
3330
3685
|
/** Common type representing spec for all the axes in a column */
|
|
3331
3686
|
type AxesSpec = AxisSpec[];
|
|
3332
3687
|
/**
|
|
@@ -3367,10 +3722,9 @@ type PUniversalColumnSpec = PObjectSpec & {
|
|
|
3367
3722
|
* basic tabular data.
|
|
3368
3723
|
*/
|
|
3369
3724
|
type PDataColumnSpec = PUniversalColumnSpec & {
|
|
3370
|
-
/** Type of column values */readonly valueType: ValueType;
|
|
3725
|
+
/** Type of column values */ readonly valueType: ValueType;
|
|
3371
3726
|
};
|
|
3372
3727
|
type PColumnSpec = PDataColumnSpec;
|
|
3373
|
-
/** Unique PColumnSpec identifier */
|
|
3374
3728
|
interface PColumn<Data> extends PObject<Data> {
|
|
3375
3729
|
/** PColumn spec, allowing it to be found among other PObjects */
|
|
3376
3730
|
readonly spec: PColumnSpec;
|
|
@@ -3383,7 +3737,6 @@ interface PColumnIdAndSpec {
|
|
|
3383
3737
|
/** Column spec */
|
|
3384
3738
|
readonly spec: PColumnSpec;
|
|
3385
3739
|
}
|
|
3386
|
-
/** Get column id and spec from a column */
|
|
3387
3740
|
interface AxisId {
|
|
3388
3741
|
/** Type of the axis or column value. For an axis should not use non-key
|
|
3389
3742
|
* types like float or double. */
|
|
@@ -3399,15 +3752,13 @@ interface AxisId {
|
|
|
3399
3752
|
}
|
|
3400
3753
|
/** Array of axis ids */
|
|
3401
3754
|
type AxesId = AxisId[];
|
|
3402
|
-
/** Extracts axis ids from axis spec */
|
|
3403
3755
|
//#endregion
|
|
3404
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
3756
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec/filtered_column.d.ts
|
|
3405
3757
|
//#region src/drivers/pframe/spec/filtered_column.d.ts
|
|
3406
3758
|
/** Value of an axis filter */
|
|
3407
3759
|
type AxisFilterValue = number | string;
|
|
3408
3760
|
/** Axis filter by index */
|
|
3409
3761
|
type AxisFilterByIdx = [number, AxisFilterValue];
|
|
3410
|
-
/** Axis filter by name */
|
|
3411
3762
|
/**
|
|
3412
3763
|
* `source` is either a leaf {@link PObjectId} or a {@link ColumnDiscoveredId}.
|
|
3413
3764
|
* Filtered never nests inside Filtered (flat-merge invariant), and Filtered is
|
|
@@ -3420,7 +3771,7 @@ interface ColumnFilteredKey {
|
|
|
3420
3771
|
}
|
|
3421
3772
|
type ColumnFilteredId = Branded<CanonicalizedJson<ColumnFilteredKey>, "ColumnFilteredId">;
|
|
3422
3773
|
//#endregion
|
|
3423
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
3774
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec/ids.d.ts
|
|
3424
3775
|
//#region src/drivers/pframe/spec/ids.d.ts
|
|
3425
3776
|
/**
|
|
3426
3777
|
* Per-axis patches keyed by positional index in the base spec's `axesSpec`.
|
|
@@ -3432,23 +3783,14 @@ type ColumnFilteredId = Branded<CanonicalizedJson<ColumnFilteredKey>, "ColumnFil
|
|
|
3432
3783
|
* A patch at index `>= base.axesSpec.length` appends a new axis at that slot.
|
|
3433
3784
|
*/
|
|
3434
3785
|
type AxisPatches = Record<number, Partial<AxisSpec>>;
|
|
3435
|
-
/**
|
|
3436
|
-
* Universal column identifier optionally anchored and optionally filtered.
|
|
3437
|
-
* @deprecated use {@link ColumnUniversalKey}
|
|
3438
|
-
*/
|
|
3439
3786
|
/**
|
|
3440
3787
|
* Canonically serialized {@link UniversalPColumnId}.
|
|
3441
3788
|
* @deprecated use {@link ColumnUniversalId}
|
|
3442
3789
|
*/
|
|
3443
3790
|
type SUniversalPColumnId = ColumnUniversalId;
|
|
3444
3791
|
type ColumnUniversalId = LocalPObjectId | GlobalPObjectId | ColumnFilteredId | ColumnDiscoveredId | ColumnOverriddenId;
|
|
3445
|
-
/**
|
|
3446
|
-
* Canonically serializes a column key to a branded string id. Accepts both
|
|
3447
|
-
* the new {@link ColumnUniversalKey} and the deprecated {@link UniversalPColumnId}
|
|
3448
|
-
* (anchored / old filtered object form).
|
|
3449
|
-
*/
|
|
3450
3792
|
//#endregion
|
|
3451
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
3793
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec/discovered_column.d.ts
|
|
3452
3794
|
//#region src/drivers/pframe/spec/discovered_column.d.ts
|
|
3453
3795
|
interface ColumnDiscoveredKey {
|
|
3454
3796
|
__isDiscovered: true;
|
|
@@ -3463,7 +3805,7 @@ type PathItem = {
|
|
|
3463
3805
|
column: ColumnUniversalId;
|
|
3464
3806
|
};
|
|
3465
3807
|
//#endregion
|
|
3466
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
3808
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/drivers/interfaces.d.ts
|
|
3467
3809
|
//#region src/drivers/interfaces.d.ts
|
|
3468
3810
|
/**
|
|
3469
3811
|
* Intended to match web.Blob, node.Blob, node-fetch.Blob, etc.
|
|
@@ -3486,9 +3828,9 @@ interface FileLike extends BlobLike {
|
|
|
3486
3828
|
readonly lastModified: number;
|
|
3487
3829
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/name) */
|
|
3488
3830
|
readonly name: string;
|
|
3489
|
-
}
|
|
3831
|
+
}
|
|
3490
3832
|
//#endregion
|
|
3491
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
3833
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/drivers/blob.d.ts
|
|
3492
3834
|
//#region src/drivers/blob.d.ts
|
|
3493
3835
|
/** Handle of locally downloaded blob. This handle is issued only after the
|
|
3494
3836
|
* blob's content is downloaded locally, and ready for quick access. */
|
|
@@ -3496,11 +3838,9 @@ type LocalBlobHandle = Branded$1<string, "LocalBlobHandle">;
|
|
|
3496
3838
|
/** Handle of remote blob. This handle is issued as soon as the data becomes
|
|
3497
3839
|
* available on the remote server. */
|
|
3498
3840
|
type RemoteBlobHandle = Branded$1<string, "RemoteBlobHandle">;
|
|
3499
|
-
/** Being configured inside the output structure provides information about
|
|
3500
|
-
* blob's content and means to retrieve it when needed. */
|
|
3501
3841
|
/** Range in bytes, from should be less than to. */
|
|
3502
3842
|
declare const RangeBytes: ZodObject<{
|
|
3503
|
-
/** Included left border. */from: ZodNumber; /** Excluded right border. */
|
|
3843
|
+
/** Included left border. */ from: ZodNumber; /** Excluded right border. */
|
|
3504
3844
|
to: ZodNumber;
|
|
3505
3845
|
}, "strip", ZodTypeAny, {
|
|
3506
3846
|
from: number;
|
|
@@ -3519,11 +3859,8 @@ interface BlobDriver {
|
|
|
3519
3859
|
*/
|
|
3520
3860
|
getContent(handle: LocalBlobHandle | RemoteBlobHandle, range?: RangeBytes): Promise<Uint8Array>;
|
|
3521
3861
|
}
|
|
3522
|
-
/**
|
|
3523
|
-
* Operational metrics of the blob download driver.
|
|
3524
|
-
*/
|
|
3525
3862
|
//#endregion
|
|
3526
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
3863
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/drivers/log.d.ts
|
|
3527
3864
|
//#region src/drivers/log.d.ts
|
|
3528
3865
|
/** Prefix constants — single source of truth for handle format. */
|
|
3529
3866
|
declare const LIVE_LOG_PREFIX = "log+live://log/";
|
|
@@ -3537,38 +3874,29 @@ type ReadyLogHandle = Branded$1<`${typeof READY_LOG_PREFIX}${string}`, "ReadyLog
|
|
|
3537
3874
|
/** Handle of logs. This handle should be passed
|
|
3538
3875
|
* to the driver for retrieving logs. */
|
|
3539
3876
|
type AnyLogHandle = LiveLogHandle | ReadyLogHandle;
|
|
3540
|
-
/** Type guard to check if a value is any kind of log handle. */
|
|
3541
3877
|
/** Driver to retrieve logs given log handle */
|
|
3542
3878
|
interface LogsDriver {
|
|
3543
|
-
lastLines(
|
|
3544
|
-
|
|
3545
|
-
handle: AnyLogHandle
|
|
3546
|
-
|
|
3547
|
-
lineCount: number,
|
|
3879
|
+
lastLines(
|
|
3880
|
+
/** A handle that was issued previously. */
|
|
3881
|
+
handle: AnyLogHandle /** Allows client to limit total data sent from server. */, lineCount: number,
|
|
3548
3882
|
/** Makes streamer to perform seek operation to given offset before sending the contents.
|
|
3549
3883
|
* Client can just use the <new_offset> value of the last response from server to continue streaming after reconnection.
|
|
3550
3884
|
* If undefined, then starts from the end. */
|
|
3551
|
-
|
|
3552
3885
|
offsetBytes?: number,
|
|
3553
3886
|
/** Is substring for line search pattern.
|
|
3554
3887
|
* This option makes controller to send to the client only lines, that
|
|
3555
3888
|
* have given substring. */
|
|
3556
|
-
|
|
3557
3889
|
searchStr?: string): Promise<StreamingApiResponse>;
|
|
3558
|
-
readText(
|
|
3559
|
-
|
|
3560
|
-
handle: AnyLogHandle
|
|
3561
|
-
|
|
3562
|
-
lineCount: number,
|
|
3890
|
+
readText(
|
|
3891
|
+
/** A handle that was issued previously. */
|
|
3892
|
+
handle: AnyLogHandle /** Allows client to limit total data sent from server. */, lineCount: number,
|
|
3563
3893
|
/** Makes streamer to perform seek operation to given offset before sending the contents.
|
|
3564
3894
|
* Client can just use the <new_offset> value of the last response from server to continue streaming after reconnection.
|
|
3565
3895
|
* If undefined of 0, then starts from the beginning. */
|
|
3566
|
-
|
|
3567
3896
|
offsetBytes?: number,
|
|
3568
3897
|
/** Is substring for line search pattern.
|
|
3569
3898
|
* This option makes controller to send to the client only lines, that
|
|
3570
3899
|
* have given substring. */
|
|
3571
|
-
|
|
3572
3900
|
searchStr?: string): Promise<StreamingApiResponse>;
|
|
3573
3901
|
}
|
|
3574
3902
|
/** Response of the driver.
|
|
@@ -3590,7 +3918,7 @@ type StreamingApiResponseHandleOutdated = {
|
|
|
3590
3918
|
shouldUpdateHandle: true;
|
|
3591
3919
|
};
|
|
3592
3920
|
//#endregion
|
|
3593
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
3921
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/column_filter.d.ts
|
|
3594
3922
|
//#region src/drivers/pframe/column_filter.d.ts
|
|
3595
3923
|
/** Allows to search multiple columns in different contexts. */
|
|
3596
3924
|
interface ColumnFilter {
|
|
@@ -3607,9 +3935,9 @@ interface ColumnFilter {
|
|
|
3607
3935
|
/** Match requires all the annotations listed here to match corresponding regex
|
|
3608
3936
|
* pattern. */
|
|
3609
3937
|
readonly annotationPattern?: Record<string, string>;
|
|
3610
|
-
}
|
|
3938
|
+
}
|
|
3611
3939
|
//#endregion
|
|
3612
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
3940
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/find_columns.d.ts
|
|
3613
3941
|
//#region src/drivers/pframe/find_columns.d.ts
|
|
3614
3942
|
/**
|
|
3615
3943
|
* Request to search among existing columns in the PFrame. Two filtering
|
|
@@ -3634,9 +3962,9 @@ interface FindColumnsRequest {
|
|
|
3634
3962
|
interface FindColumnsResponse {
|
|
3635
3963
|
/** Array of column ids found using request criteria. */
|
|
3636
3964
|
readonly hits: PColumnIdAndSpec[];
|
|
3637
|
-
}
|
|
3965
|
+
}
|
|
3638
3966
|
//#endregion
|
|
3639
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
3967
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/unique_values.d.ts
|
|
3640
3968
|
//#region src/drivers/pframe/unique_values.d.ts
|
|
3641
3969
|
/** Calculate set of unique values for a specific axis for the filtered set of records */
|
|
3642
3970
|
interface UniqueValuesRequest {
|
|
@@ -3654,13 +3982,13 @@ interface UniqueValuesResponse {
|
|
|
3654
3982
|
readonly values: PTableVector;
|
|
3655
3983
|
/** True if limit was reached and response contain non-exhaustive list of values. */
|
|
3656
3984
|
readonly overflow: boolean;
|
|
3657
|
-
}
|
|
3985
|
+
}
|
|
3658
3986
|
//#endregion
|
|
3659
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
3987
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/pframe.d.ts
|
|
3660
3988
|
/** Information required to instantiate a PFrame. */
|
|
3661
|
-
type PFrameDef<Col> = Col[];
|
|
3989
|
+
type PFrameDef<Col> = Col[];
|
|
3662
3990
|
//#endregion
|
|
3663
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
3991
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/driver.d.ts
|
|
3664
3992
|
//#region src/drivers/pframe/driver.d.ts
|
|
3665
3993
|
/** PFrame handle */
|
|
3666
3994
|
type PFrameHandle = Branded$1<string, "PFrame">;
|
|
@@ -3726,9 +4054,9 @@ interface PFrameDriver {
|
|
|
3726
4054
|
* 1,000,000-row per-sheet limit (below Excel's hard cap of 1,048,576).
|
|
3727
4055
|
*/
|
|
3728
4056
|
exportPTable(handle: PTableHandle, options: ExportPTableOptions): Promise<void>;
|
|
3729
|
-
}
|
|
4057
|
+
}
|
|
3730
4058
|
//#endregion
|
|
3731
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
4059
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/drivers/ls.d.ts
|
|
3732
4060
|
//#region src/drivers/ls.d.ts
|
|
3733
4061
|
type ImportFileHandleUpload = `upload://upload/${string}`;
|
|
3734
4062
|
type ImportFileHandleIndex = `index://index/${string}`;
|
|
@@ -3740,7 +4068,7 @@ type StorageHandleLocal = `local://${string}`;
|
|
|
3740
4068
|
type StorageHandleRemote = `remote://${string}`;
|
|
3741
4069
|
type StorageHandle = StorageHandleLocal | StorageHandleRemote;
|
|
3742
4070
|
type StorageEntry = {
|
|
3743
|
-
/** Stable machine identifier (e.g. "library", "root", "local"). Used for filtering. */id: string; /** Human-readable display name. */
|
|
4071
|
+
/** Stable machine identifier (e.g. "library", "root", "local"). Used for filtering. */ id: string; /** Human-readable display name. */
|
|
3744
4072
|
name: string;
|
|
3745
4073
|
handle: StorageHandle;
|
|
3746
4074
|
initialFullPath: string;
|
|
@@ -3760,11 +4088,11 @@ type LsEntry = {
|
|
|
3760
4088
|
handle: ImportFileHandle;
|
|
3761
4089
|
};
|
|
3762
4090
|
type OpenDialogFilter = {
|
|
3763
|
-
/** Human-readable file type name */readonly name: string; /** File extensions */
|
|
4091
|
+
/** Human-readable file type name */ readonly name: string; /** File extensions */
|
|
3764
4092
|
readonly extensions: string[];
|
|
3765
4093
|
};
|
|
3766
4094
|
type OpenDialogOps = {
|
|
3767
|
-
/** Open dialog window title */readonly title?: string; /** Custom label for the confirmation button, when left empty the default label will be used. */
|
|
4095
|
+
/** Open dialog window title */ readonly title?: string; /** Custom label for the confirmation button, when left empty the default label will be used. */
|
|
3768
4096
|
readonly buttonLabel?: string; /** Limits of file types user can select */
|
|
3769
4097
|
readonly filters?: OpenDialogFilter[];
|
|
3770
4098
|
};
|
|
@@ -3778,7 +4106,6 @@ type OpenMultipleFilesResponse = {
|
|
|
3778
4106
|
* the dialog, field will be undefined. */
|
|
3779
4107
|
readonly files?: LocalImportFileHandle[];
|
|
3780
4108
|
};
|
|
3781
|
-
/** Can be used to limit request for local file content to a certain bytes range */
|
|
3782
4109
|
interface LsDriver {
|
|
3783
4110
|
/** remote and local storages */
|
|
3784
4111
|
getStorageList(): Promise<StorageEntry[]>;
|
|
@@ -3801,9 +4128,8 @@ interface LsDriver {
|
|
|
3801
4128
|
/** Saves currently opened block webview as a PDF. */
|
|
3802
4129
|
exportToPdf?(): Promise<void>;
|
|
3803
4130
|
}
|
|
3804
|
-
/** Gets a file path from an import handle. */
|
|
3805
4131
|
//#endregion
|
|
3806
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
4132
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/columns/column_selector.d.ts
|
|
3807
4133
|
//#region src/columns/column_selector.d.ts
|
|
3808
4134
|
/** Relaxed string matcher input: plain string, single matcher, or array of mixed. */
|
|
3809
4135
|
type RelaxedStringMatchers = string | StringMatcher | (string | StringMatcher)[];
|
|
@@ -3830,7 +4156,7 @@ interface RelaxedColumnSelector {
|
|
|
3830
4156
|
/** One or many relaxed column selectors; normalizes to MultiColumnSelector[]. */
|
|
3831
4157
|
type ColumnSelector = RelaxedColumnSelector | RelaxedColumnSelector[];
|
|
3832
4158
|
//#endregion
|
|
3833
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
4159
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/drivers/columns/discover_columns_options.d.ts
|
|
3834
4160
|
//#region src/drivers/columns/discover_columns_options.d.ts
|
|
3835
4161
|
/**
|
|
3836
4162
|
* Axis matching behaviour applied to `discover` requests.
|
|
@@ -3847,7 +4173,6 @@ type MatchingMode = "enrichment" | "related" | "exact";
|
|
|
3847
4173
|
* sandbox/host VM bridge unchanged.
|
|
3848
4174
|
*/
|
|
3849
4175
|
type AnchorEntry = PlRef | PObjectId | PColumnSpec | RelaxedColumnSelector;
|
|
3850
|
-
/** Qualifications needed for both already-integrated anchor columns and the hit column. */
|
|
3851
4176
|
/**
|
|
3852
4177
|
* Options object accepted by sandbox `discoverColumns()` and by the host
|
|
3853
4178
|
* `ColumnsCollectionDriver.discover` / `.filter` methods. Pure JSON shape —
|
|
@@ -3878,9 +4203,8 @@ type ColumnsDiscoverOptions = DiscoverColumnsOptions;
|
|
|
3878
4203
|
* of the filter surface — only `include` / `exclude` / `anchors`.
|
|
3879
4204
|
*/
|
|
3880
4205
|
type ColumnsFilterOptions = Omit<DiscoverColumnsOptions, "mode" | "maxHops">;
|
|
3881
|
-
/** Translate a {@link MatchingMode} into the boolean-flag form the spec driver consumes. */
|
|
3882
4206
|
//#endregion
|
|
3883
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
4207
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/columns/types.d.ts
|
|
3884
4208
|
//#region src/columns/types.d.ts
|
|
3885
4209
|
/**
|
|
3886
4210
|
* Opaque sandbox/host accessor handle.
|
|
@@ -3960,15 +4284,8 @@ interface AccessorLike<Self extends AccessorLike<Self>> {
|
|
|
3960
4284
|
/** Decode the data payload as JSON. Returns `undefined` if no data. */
|
|
3961
4285
|
getDataAsJson<T = unknown>(): T | undefined;
|
|
3962
4286
|
}
|
|
3963
|
-
/**
|
|
3964
|
-
* One indexed column — the canonical record produced by every traversal.
|
|
3965
|
-
* Carries everything needed to read spec/data/status under a stable id.
|
|
3966
|
-
*
|
|
3967
|
-
* Generic over the accessor flavour so the same record shape works for both
|
|
3968
|
-
* the sandbox `TreeNodeAccessor` and the host `PlTreeNodeAccessor`.
|
|
3969
|
-
*/
|
|
3970
4287
|
//#endregion
|
|
3971
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
4288
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/drivers/columns/columns_collection_driver.d.ts
|
|
3972
4289
|
//#region src/drivers/columns/columns_collection_driver.d.ts
|
|
3973
4290
|
/**
|
|
3974
4291
|
* Opaque host-owned handle for a `ColumnsCollection` instance. Issued by
|
|
@@ -4080,9 +4397,9 @@ interface ColumnsCollectionDriver {
|
|
|
4080
4397
|
addSource(handle: CollectionHandle, sources: ReadonlyArray<SerializedColumnsSource>, host: ColumnsCollectionDriverHost): PoolEntry<CollectionHandle>;
|
|
4081
4398
|
discover(handle: CollectionHandle, options: ColumnsDiscoverOptions, host: ColumnsCollectionDriverHost): PoolEntry<CollectionHandle>;
|
|
4082
4399
|
filter(handle: CollectionHandle, options: ColumnsFilterOptions, host: ColumnsCollectionDriverHost): PoolEntry<CollectionHandle>;
|
|
4083
|
-
}
|
|
4400
|
+
}
|
|
4084
4401
|
//#endregion
|
|
4085
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
4402
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/services/service_types.d.ts
|
|
4086
4403
|
//#region src/services/service_types.d.ts
|
|
4087
4404
|
type ServiceTypesLike<Model = unknown, Ui = unknown, Kind extends ServiceType = ServiceType, ModelHost = Model, UiHost = Ui> = {
|
|
4088
4405
|
readonly __types?: {
|
|
@@ -4105,24 +4422,23 @@ interface ServiceDispatch {
|
|
|
4105
4422
|
}
|
|
4106
4423
|
type TServices = typeof Services;
|
|
4107
4424
|
type ExtractServiceName<T> = T extends Branded$1<infer N extends string, any> ? N : never;
|
|
4108
|
-
/** Model-side service interfaces keyed by service name literal. */
|
|
4109
4425
|
/** UI-side service interfaces keyed by service name literal. */
|
|
4110
|
-
type UiServices$1 = { [K in keyof TServices as ExtractServiceName<TServices[K]>]: InferServiceUi<ServiceBrand<TServices[K]
|
|
4426
|
+
type UiServices$1 = { [K in keyof TServices as ExtractServiceName<TServices[K]>]: InferServiceUi<ServiceBrand<TServices[K]>>; };
|
|
4111
4427
|
/** Map from Services keys to their unbranded string name literals. */
|
|
4112
|
-
type ServiceNameLiterals = { [K in keyof TServices]: ExtractServiceName<TServices[K]
|
|
4428
|
+
type ServiceNameLiterals = { [K in keyof TServices]: ExtractServiceName<TServices[K]>; };
|
|
4113
4429
|
/** Auto-derived requires* feature flags from Services keys. */
|
|
4114
|
-
type ServiceRequireFlags = { [K in keyof TServices as `requires${K & string}`]?: boolean };
|
|
4430
|
+
type ServiceRequireFlags = { [K in keyof TServices as `requires${K & string}`]?: boolean; };
|
|
4115
4431
|
//#endregion
|
|
4116
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
4432
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/services/service_declarations.d.ts
|
|
4117
4433
|
//#region src/services/service_declarations.d.ts
|
|
4118
4434
|
declare const Services: {
|
|
4119
4435
|
PFrameSpec: Branded$1<"pframeSpec", ServiceTypesLike<PFrameSpecDriver, PFrameSpecDriver, "wasm", PFrameSpecDriver, PFrameSpecDriver>>;
|
|
4120
4436
|
PFrame: Branded$1<"pframe", ServiceTypesLike<PFrameModelDriver<PColumn<string | PColumnValues | DataInfo<string>>>, PFrameDriver, "node", PFrameModelDriver<PColumn<string | PColumnValues | DataInfo<string>>>, PFrameDriver>>;
|
|
4121
4437
|
Dialog: Branded$1<"dialog", ServiceTypesLike<Record<string, never>, DialogService, "main", Record<string, never>, DialogService>>;
|
|
4122
4438
|
ColumnsCollection: Branded$1<"columnsCollection", ServiceTypesLike<ColumnsCollectionDriverModel, ColumnsCollectionDriverModel, "wasm", ColumnsCollectionDriver, ColumnsCollectionDriver>>;
|
|
4123
|
-
};
|
|
4439
|
+
};
|
|
4124
4440
|
//#endregion
|
|
4125
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
4441
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/flags/block_flags.d.ts
|
|
4126
4442
|
/**
|
|
4127
4443
|
* Known block flags. Flags are set during model compilation, see `BlockModel.create` for more details and for initial values.
|
|
4128
4444
|
*/
|
|
@@ -4134,13 +4450,8 @@ type BlockCodeKnownFeatureFlags = {
|
|
|
4134
4450
|
readonly requiresCreatePTable?: number;
|
|
4135
4451
|
readonly requiresPFramesVersion?: number;
|
|
4136
4452
|
} & ServiceRequireFlags;
|
|
4137
|
-
/**
|
|
4138
|
-
* Required PFrames version. Bump this in lockstep with the `@milaboratories/pframes-rs-*`
|
|
4139
|
-
* version in `pnpm-workspace.yaml` so blocks built against the new SDK refuse to load on
|
|
4140
|
-
* older desktop apps.
|
|
4141
|
-
*/
|
|
4142
4453
|
//#endregion
|
|
4143
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
4454
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/driver_kit.d.ts
|
|
4144
4455
|
//#region src/driver_kit.d.ts
|
|
4145
4456
|
/** Set of all drivers exposed in UI SDK via the platforma object. */
|
|
4146
4457
|
interface DriverKit {
|
|
@@ -4159,9 +4470,9 @@ interface DriverKit {
|
|
|
4159
4470
|
readonly lsDriver: LsDriver;
|
|
4160
4471
|
/** Driver allowing to interact with PFrames and PTables */
|
|
4161
4472
|
readonly pFrameDriver: PFrameDriver;
|
|
4162
|
-
}
|
|
4473
|
+
}
|
|
4163
4474
|
//#endregion
|
|
4164
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
4475
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/errors.d.ts
|
|
4165
4476
|
type ResultOrError<S, F = Error> = {
|
|
4166
4477
|
value: S;
|
|
4167
4478
|
error?: undefined;
|
|
@@ -4169,7 +4480,7 @@ type ResultOrError<S, F = Error> = {
|
|
|
4169
4480
|
error: F;
|
|
4170
4481
|
};
|
|
4171
4482
|
//#endregion
|
|
4172
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
4483
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/utag.d.ts
|
|
4173
4484
|
//#region src/utag.d.ts
|
|
4174
4485
|
/** Value returned for changing states supporting reactive listening for changes */
|
|
4175
4486
|
interface ValueWithUTag<V> {
|
|
@@ -4186,21 +4497,21 @@ interface ValueWithUTag<V> {
|
|
|
4186
4497
|
}
|
|
4187
4498
|
interface ValueWithUTagAndAuthor<V> extends ValueWithUTag<V> {
|
|
4188
4499
|
readonly author?: AuthorMarker;
|
|
4189
|
-
}
|
|
4500
|
+
}
|
|
4190
4501
|
//#endregion
|
|
4191
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
4502
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.83.0/node_modules/@platforma-sdk/model/dist/block_state_patch.d.ts
|
|
4192
4503
|
//#region src/block_state_patch.d.ts
|
|
4193
4504
|
/** Patch for the structural object */
|
|
4194
4505
|
type Patch<K, V> = {
|
|
4195
|
-
/** Field name to patch */readonly key: K; /** New value for the field */
|
|
4506
|
+
/** Field name to patch */ readonly key: K; /** New value for the field */
|
|
4196
4507
|
readonly value: V;
|
|
4197
4508
|
};
|
|
4198
4509
|
/** Creates union type of all possible shallow patches for the given structure */
|
|
4199
|
-
type Unionize<T extends Record<string, unknown>> = { [K in keyof T]: Patch<K, T[K]
|
|
4510
|
+
type Unionize<T extends Record<string, unknown>> = { [K in keyof T]: Patch<K, T[K]>; }[keyof T];
|
|
4200
4511
|
/** Patch for the BlockState, pushed by onStateUpdates method in SDK. */
|
|
4201
|
-
type BlockStatePatch<Args = unknown, Outputs extends BlockOutputsBase = BlockOutputsBase, UiState = unknown, Href extends `/${string}` = `/${string}`> = Unionize<BlockState<Args, Outputs, UiState, Href>>;
|
|
4512
|
+
type BlockStatePatch<Args = unknown, Outputs extends BlockOutputsBase = BlockOutputsBase, UiState = unknown, Href extends `/${string}` = `/${string}`> = Unionize<BlockState<Args, Outputs, UiState, Href>>;
|
|
4202
4513
|
//#endregion
|
|
4203
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
4514
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.83.0/node_modules/@platforma-sdk/model/dist/plugin_handle.d.ts
|
|
4204
4515
|
//#region src/plugin_handle.d.ts
|
|
4205
4516
|
/**
|
|
4206
4517
|
* Phantom-only base type for constraining PluginHandle's type parameter.
|
|
@@ -4220,16 +4531,14 @@ interface PluginFactoryLike<Data extends Record<string, unknown> = Record<string
|
|
|
4220
4531
|
uiServices: UiServices;
|
|
4221
4532
|
};
|
|
4222
4533
|
}
|
|
4223
|
-
/** Extract the Data type from a PluginFactoryLike phantom. */
|
|
4224
4534
|
/**
|
|
4225
4535
|
* Opaque handle for a plugin instance. Runtime value is the plugin instance ID string.
|
|
4226
4536
|
* Branded with factory phantom `F` for type-safe data/outputs extraction.
|
|
4227
4537
|
* Constrained with PluginFactoryLike (not PluginFactory) to avoid variance issues.
|
|
4228
4538
|
*/
|
|
4229
4539
|
type PluginHandle<F extends PluginFactoryLike = PluginFactoryLike> = Branded<string, F>;
|
|
4230
|
-
/** Construct the output key for a plugin output in the block outputs map. */
|
|
4231
4540
|
//#endregion
|
|
4232
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
4541
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.83.0/node_modules/@platforma-sdk/model/dist/block_storage.d.ts
|
|
4233
4542
|
/** Payload for storage mutation operations. SDK defines specific operations. */
|
|
4234
4543
|
type MutateStoragePayload<T = unknown> = {
|
|
4235
4544
|
operation: "update-block-data";
|
|
@@ -4239,15 +4548,8 @@ type MutateStoragePayload<T = unknown> = {
|
|
|
4239
4548
|
pluginId: PluginHandle;
|
|
4240
4549
|
value: unknown;
|
|
4241
4550
|
};
|
|
4242
|
-
/**
|
|
4243
|
-
* Updates the data in BlockStorage (immutable)
|
|
4244
|
-
*
|
|
4245
|
-
* @param storage - The current BlockStorage
|
|
4246
|
-
* @param payload - The update payload with operation and value
|
|
4247
|
-
* @returns A new BlockStorage with updated data
|
|
4248
|
-
*/
|
|
4249
4551
|
//#endregion
|
|
4250
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
4552
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.83.0/node_modules/@platforma-sdk/model/dist/bconfig/lambdas.d.ts
|
|
4251
4553
|
/** Additional information that may alter lambda rendering procedure. */
|
|
4252
4554
|
type ConfigRenderLambdaFlags = {
|
|
4253
4555
|
/**
|
|
@@ -4276,15 +4578,14 @@ interface ConfigRenderLambda<Return = unknown> extends ConfigRenderLambdaFlags {
|
|
|
4276
4578
|
handle: string;
|
|
4277
4579
|
}
|
|
4278
4580
|
type ExtractFunctionHandleReturn<Func extends ConfigRenderLambda> = Func extends ConfigRenderLambda<infer Return> ? Return : never;
|
|
4279
|
-
/** Infers the output type from a TypedConfig or ConfigRenderLambda */
|
|
4280
4581
|
/** Maps lambda-only outputs configuration to inferred output types (for V3 blocks) */
|
|
4281
4582
|
type InferOutputsFromLambdas<OutputsCfg extends Record<string, ConfigRenderLambda>> = { [Key in keyof OutputsCfg]: OutputWithStatus<ExtractFunctionHandleReturn<OutputsCfg[Key]>> & {
|
|
4282
4583
|
__unwrap: OutputsCfg[Key] extends {
|
|
4283
4584
|
withStatus: true;
|
|
4284
4585
|
} ? false : true;
|
|
4285
|
-
} };
|
|
4586
|
+
}; };
|
|
4286
4587
|
//#endregion
|
|
4287
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
4588
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.83.0/node_modules/@platforma-sdk/model/dist/block_api_v1.d.ts
|
|
4288
4589
|
//#region src/block_api_v1.d.ts
|
|
4289
4590
|
/** Returned by state subscription methods to be able to cancel the subscription. */
|
|
4290
4591
|
type CancelSubscription = () => void;
|
|
@@ -4344,7 +4645,7 @@ interface BlockApiV1<Args = unknown, Outputs extends BlockOutputsBase = BlockOut
|
|
|
4344
4645
|
* Sets block navigation state.
|
|
4345
4646
|
* */
|
|
4346
4647
|
setNavigationState(state: NavigationState<Href>): Promise<void>;
|
|
4347
|
-
}
|
|
4648
|
+
}
|
|
4348
4649
|
//#endregion
|
|
4349
4650
|
//#region ../node_modules/.pnpm/fast-json-patch@3.1.1/node_modules/fast-json-patch/module/core.d.ts
|
|
4350
4651
|
declare type Operation = AddOperation<any> | RemoveOperation | ReplaceOperation<any> | MoveOperation | CopyOperation | TestOperation<any> | GetOperation<any>;
|
|
@@ -4379,7 +4680,7 @@ interface GetOperation<T> extends BaseOperation {
|
|
|
4379
4680
|
value: T;
|
|
4380
4681
|
}
|
|
4381
4682
|
//#endregion
|
|
4382
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
4683
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.83.0/node_modules/@platforma-sdk/model/dist/block_api_v2.d.ts
|
|
4383
4684
|
//#region src/block_api_v2.d.ts
|
|
4384
4685
|
/** Defines methods to read and write current block data. */
|
|
4385
4686
|
interface BlockApiV2<Args = unknown, Outputs extends BlockOutputsBase = BlockOutputsBase, UiState = unknown, Href extends `/${string}` = `/${string}`> {
|
|
@@ -4427,14 +4728,14 @@ interface BlockApiV2<Args = unknown, Outputs extends BlockOutputsBase = BlockOut
|
|
|
4427
4728
|
* Disposes the block API.
|
|
4428
4729
|
* */
|
|
4429
4730
|
dispose(): Promise<ResultOrError<void>>;
|
|
4430
|
-
}
|
|
4731
|
+
}
|
|
4431
4732
|
//#endregion
|
|
4432
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
4733
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.83.0/node_modules/@platforma-sdk/model/dist/version.d.ts
|
|
4433
4734
|
type SdkInfo = {
|
|
4434
4735
|
readonly sdkVersion: string;
|
|
4435
4736
|
};
|
|
4436
4737
|
//#endregion
|
|
4437
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
4738
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.83.0/node_modules/@platforma-sdk/model/dist/services/block_services.d.ts
|
|
4438
4739
|
//#region src/services/block_services.d.ts
|
|
4439
4740
|
/**
|
|
4440
4741
|
* Services required by all V3 blocks by default.
|
|
@@ -4451,14 +4752,14 @@ declare const BLOCK_SERVICE_FLAGS: {
|
|
|
4451
4752
|
};
|
|
4452
4753
|
type BlockServiceFlags = typeof BLOCK_SERVICE_FLAGS;
|
|
4453
4754
|
//#endregion
|
|
4454
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
4755
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.83.0/node_modules/@platforma-sdk/model/dist/services/service_resolve.d.ts
|
|
4455
4756
|
//#region src/services/service_resolve.d.ts
|
|
4456
4757
|
type FlagToName<Flag extends string> = Flag extends `requires${infer K}` ? K extends keyof ServiceNameLiterals ? ServiceNameLiterals[K] : never : never;
|
|
4457
|
-
type RequiredServiceNames<Flags> = { [K in keyof Flags & `requires${string}`]: Flags[K] extends true ? FlagToName<K & string> : never }[keyof Flags & `requires${string}`];
|
|
4758
|
+
type RequiredServiceNames<Flags> = { [K in keyof Flags & `requires${string}`]: Flags[K] extends true ? FlagToName<K & string> : never; }[keyof Flags & `requires${string}`];
|
|
4458
4759
|
type ResolveUiServices<Flags> = Pick<UiServices$1, RequiredServiceNames<Flags> & keyof UiServices$1>;
|
|
4459
|
-
type BlockDefaultUiServices = ResolveUiServices<BlockServiceFlags>;
|
|
4760
|
+
type BlockDefaultUiServices = ResolveUiServices<BlockServiceFlags>;
|
|
4460
4761
|
//#endregion
|
|
4461
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
4762
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.83.0/node_modules/@platforma-sdk/model/dist/plugin_model.d.ts
|
|
4462
4763
|
/**
|
|
4463
4764
|
* Runtime definition for a single public output field.
|
|
4464
4765
|
* Stored in PluginModel and passed through BlockModelInfo to the UI layer.
|
|
@@ -4467,7 +4768,7 @@ type PublicOutputFieldDef = {
|
|
|
4467
4768
|
readonly getter: (data: unknown) => unknown;
|
|
4468
4769
|
};
|
|
4469
4770
|
//#endregion
|
|
4470
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
4771
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.83.0/node_modules/@platforma-sdk/model/dist/block_api_v3.d.ts
|
|
4471
4772
|
//#region src/block_api_v3.d.ts
|
|
4472
4773
|
/** Defines methods to read and write current block data. */
|
|
4473
4774
|
interface BlockApiV3<_Data = unknown, _Args = unknown, Outputs extends BlockOutputsBase = BlockOutputsBase, Href extends `/${string}` = `/${string}`> {
|
|
@@ -4496,9 +4797,9 @@ interface BlockApiV3<_Data = unknown, _Args = unknown, Outputs extends BlockOutp
|
|
|
4496
4797
|
* Disposes the block API.
|
|
4497
4798
|
* */
|
|
4498
4799
|
dispose(): Promise<ResultOrError<void>>;
|
|
4499
|
-
}
|
|
4800
|
+
}
|
|
4500
4801
|
//#endregion
|
|
4501
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
4802
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.83.0/node_modules/@platforma-sdk/model/dist/platforma.d.ts
|
|
4502
4803
|
//#region src/platforma.d.ts
|
|
4503
4804
|
/** Defines all methods to interact with the platform environment from within a block UI. @deprecated */
|
|
4504
4805
|
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 {
|
|
@@ -4539,29 +4840,48 @@ type InferOutputsType<Pl extends Platforma> = Pl extends Platforma<unknown, infe
|
|
|
4539
4840
|
type InferDataType<Pl extends Platforma> = Pl extends Platforma<unknown, Record<string, OutputWithStatus<unknown>>, infer Data> ? Data : never;
|
|
4540
4841
|
type InferHrefType<Pl extends Platforma> = Pl extends Platforma<unknown, BlockOutputsBase, unknown, infer Href> ? Href : never;
|
|
4541
4842
|
//#endregion
|
|
4542
|
-
//#region ../
|
|
4843
|
+
//#region ../kind/dist/types.d.ts
|
|
4543
4844
|
//#region src/types.d.ts
|
|
4845
|
+
/**
|
|
4846
|
+
* The types the block's init-params contract is built from.
|
|
4847
|
+
*
|
|
4848
|
+
* They live in the kind, not in the model, because the kind owns the contract:
|
|
4849
|
+
* `BlockParams` is what a project template serializes, and a second copy of these
|
|
4850
|
+
* shapes in the model would drift the moment one side gains a case the other
|
|
4851
|
+
* misses. The model re-exports them from here, so every existing import path
|
|
4852
|
+
* keeps working.
|
|
4853
|
+
*/
|
|
4544
4854
|
/** Receptor type. Same enum as sequence-properties to keep label conventions aligned. */
|
|
4545
4855
|
type WorkflowReceptor = "IG" | "TCRAB" | "TCRGD";
|
|
4546
4856
|
/**
|
|
4547
|
-
*
|
|
4548
|
-
*
|
|
4857
|
+
* A scope's receptor, or `"unknown"` when the producer declares VDJ data but no
|
|
4858
|
+
* receptor at all.
|
|
4859
|
+
*
|
|
4860
|
+
* `synthetic-repertoire-profiler` is the case: it declares `pl7.app/modality: vdj`
|
|
4861
|
+
* but emits neither `pl7.app/vdj/receptor` nor `pl7.app/vdj/chain` — germline
|
|
4862
|
+
* auto-detection builds a custom reference from the user's own parent sequences, so
|
|
4863
|
+
* there is no library locus to read a receptor from. Guessing `IG` there would
|
|
4864
|
+
* silently exclude the TCR specialists from a TCR dataset, so the unknown is carried
|
|
4865
|
+
* explicitly and `compat.ts` relaxes receptor/chain gating rather than filtering on
|
|
4866
|
+
* a value nobody supplied.
|
|
4867
|
+
*
|
|
4868
|
+
* Widening only — every previously persisted `WorkflowReceptor` stays valid, so
|
|
4869
|
+
* snapshotted scopes in existing projects deserialize unchanged.
|
|
4870
|
+
*/
|
|
4871
|
+
type ScopeReceptor = WorkflowReceptor | "unknown";
|
|
4872
|
+
/**
|
|
4873
|
+
* ESM-2 fidelity the user picks, projected into args. Default is `standard`.
|
|
4874
|
+
* `standard` → ESM-2 150M; `high` → ESM-2 650M. Only meaningful when the
|
|
4549
4875
|
* model is ESM-2; ignored for the single-checkpoint specialists.
|
|
4550
4876
|
*/
|
|
4551
4877
|
type Fidelity = "high" | "standard";
|
|
4552
4878
|
/**
|
|
4553
|
-
* User-facing embedding-model choice — the value of
|
|
4879
|
+
* User-facing embedding-model choice — the value of the model dropdown. A
|
|
4554
4880
|
* logical id; the workflow maps it (plus `Fidelity` for ESM-2) to a concrete
|
|
4555
|
-
* checkpoint `ModelTag`. The catalog and scope↔model compatibility live in
|
|
4556
|
-
* `compat.ts`.
|
|
4881
|
+
* checkpoint `ModelTag`. The catalog and scope↔model compatibility live in the
|
|
4882
|
+
* model package's `compat.ts`.
|
|
4557
4883
|
*/
|
|
4558
4884
|
type EmbeddingModelId = "esm2" | "ablang2" | "currab" | "vhhbert" | "h3berta" | "tcr-bert" | "peptideclm2" | "sceptr";
|
|
4559
|
-
/**
|
|
4560
|
-
* Checkpoint tag emitted on the `pl7.app/embedding/model` domain of every output
|
|
4561
|
-
* column (model provenance). ESM-2 splits by fidelity; specialists are 1:1 with
|
|
4562
|
-
* their `EmbeddingModelId`.
|
|
4563
|
-
*/
|
|
4564
|
-
type ModelTag = "esm2-650M" | "esm2-150M" | "ablang2" | "currab" | "vhhbert" | "h3berta" | "tcr-bert" | "peptideclm2" | "sceptr";
|
|
4565
4885
|
/** Embedding scope feature. `Fv` and `scFv` span/merge chains and carry no `chain`. */
|
|
4566
4886
|
type ScopeFeature = "peptide" | "CDR3" | "VDJRegion" | "Fv" | "scFv";
|
|
4567
4887
|
/**
|
|
@@ -4570,9 +4890,14 @@ type ScopeFeature = "peptide" | "CDR3" | "VDJRegion" | "Fv" | "scFv";
|
|
|
4570
4890
|
* for single-chain scopes, two (`[VH, VL]`) for the paired Fv scope. The column
|
|
4571
4891
|
* ids (and `isHeavy`/`receptor`) are snapshotted into `BlockData` on the user's
|
|
4572
4892
|
* gesture (the anchored-id storage pattern), so the args lambda stays `data`-only.
|
|
4893
|
+
*
|
|
4894
|
+
* Those ids are anchored — they resolve against the block's own `inputAnchor`.
|
|
4895
|
+
* That is why a template that carries a scope must carry the matching
|
|
4896
|
+
* `inputAnchor` too; the two params travel as a pair or not at all.
|
|
4573
4897
|
*/
|
|
4574
4898
|
type SelectedScope = {
|
|
4575
|
-
/** Stable picker key. The sequence column id for single scopes; `"Fv"` for paired Fv. */
|
|
4899
|
+
/** Stable picker key. The sequence column id for single scopes; `"Fv"` for paired Fv. */
|
|
4900
|
+
id: string;
|
|
4576
4901
|
feature: ScopeFeature;
|
|
4577
4902
|
chain: "A" | "B" | "";
|
|
4578
4903
|
columns: SUniversalPColumnId[];
|
|
@@ -4581,13 +4906,17 @@ type SelectedScope = {
|
|
|
4581
4906
|
* True when this is an IG heavy chain (single-cell chain `A`, or bulk
|
|
4582
4907
|
* `IGHeavy`). Gates the heavy-only specialists (VHHBERT, H3BERTa) and the
|
|
4583
4908
|
* VHH-vs-mAb default. Snapshotted so the args lambda stays `data`-only.
|
|
4909
|
+
*
|
|
4910
|
+
* Always `false` when `receptor` is `"unknown"` — a producer that supplies no
|
|
4911
|
+
* receptor supplies no chain either, so this carries no information there and
|
|
4912
|
+
* `compat.ts` does not gate on it.
|
|
4584
4913
|
*/
|
|
4585
4914
|
isHeavy: boolean;
|
|
4586
4915
|
/** Receptor of the input this scope came from, snapshotted for `data`-only
|
|
4587
|
-
* compatibility validation in the args lambda.
|
|
4588
|
-
receptor
|
|
4916
|
+
* compatibility validation in the args lambda. `"unknown"` when the producer
|
|
4917
|
+
* declares VDJ data without a receptor — see `ScopeReceptor`. */
|
|
4918
|
+
receptor: ScopeReceptor;
|
|
4589
4919
|
};
|
|
4590
|
-
/** A selectable scope. Alias of `SelectedScope` — the label lives on the base type. */
|
|
4591
4920
|
/**
|
|
4592
4921
|
* The single (sequence scope, model) selection the user assembles. `scope` and
|
|
4593
4922
|
* `model` are each undefined until picked — the UI fills one and bidirectionally
|
|
@@ -4597,15 +4926,20 @@ type SelectedScope = {
|
|
|
4597
4926
|
*/
|
|
4598
4927
|
type EmbeddingSelection = {
|
|
4599
4928
|
scope?: SelectedScope;
|
|
4600
|
-
model?: EmbeddingModelId;
|
|
4929
|
+
model?: EmbeddingModelId;
|
|
4930
|
+
/** ESM-2 fidelity; ignored for other models. */
|
|
4601
4931
|
fidelity?: Fidelity;
|
|
4602
4932
|
};
|
|
4933
|
+
//#endregion
|
|
4934
|
+
//#endregion
|
|
4935
|
+
//#region ../model/dist/types.d.ts
|
|
4936
|
+
//#region src/types.d.ts
|
|
4603
4937
|
/**
|
|
4604
|
-
*
|
|
4605
|
-
*
|
|
4606
|
-
*
|
|
4607
|
-
* key for V2's `PlElementList`; dropped in V3.
|
|
4938
|
+
* Checkpoint tag emitted on the `pl7.app/embedding/model` domain of every output
|
|
4939
|
+
* column (model provenance). ESM-2 splits by fidelity; specialists are 1:1 with
|
|
4940
|
+
* their `EmbeddingModelId`.
|
|
4608
4941
|
*/
|
|
4942
|
+
type ModelTag = "esm2-650M" | "esm2-150M" | "ablang2" | "currab" | "vhhbert" | "h3berta" | "tcr-bert" | "peptideclm2" | "sceptr";
|
|
4609
4943
|
/**
|
|
4610
4944
|
* V3 BlockData. The card list collapses to a single (scope, model) selection: the
|
|
4611
4945
|
* block embeds ONE combination per run. `embedding` is always present (init `{}`);
|
|
@@ -4613,26 +4947,28 @@ type EmbeddingSelection = {
|
|
|
4613
4947
|
* contract is unchanged.
|
|
4614
4948
|
*/
|
|
4615
4949
|
type BlockDataV3 = {
|
|
4616
|
-
inputAnchor?: PlRef;
|
|
4950
|
+
inputAnchor?: PlRef;
|
|
4951
|
+
/** The single (scope, model, fidelity?) selection the user assembles. */
|
|
4617
4952
|
embedding: EmbeddingSelection;
|
|
4618
4953
|
/**
|
|
4619
4954
|
* Init-guard: canonical id of the anchor whose default selection was last seeded.
|
|
4620
4955
|
* Prevents re-seeding on panel reopen / server patch; triggers a re-seed on
|
|
4621
4956
|
* input change.
|
|
4622
4957
|
*/
|
|
4623
|
-
embeddingInitializedForAnchor?: string;
|
|
4958
|
+
embeddingInitializedForAnchor?: string;
|
|
4959
|
+
/** Advanced resource overrides (GiB / cores); undefined → workflow sizes automatically from device + input. */
|
|
4624
4960
|
mem?: number;
|
|
4625
4961
|
cpu?: number;
|
|
4626
4962
|
defaultBlockLabel?: string;
|
|
4627
4963
|
};
|
|
4628
|
-
/** Current BlockData shape. */
|
|
4629
4964
|
/**
|
|
4630
4965
|
* One embedding task in the workflow input: a scope plus the model to embed it
|
|
4631
4966
|
* with (and ESM-2 fidelity, when applicable). Projected from `BlockData.embedding`.
|
|
4632
4967
|
*/
|
|
4633
4968
|
type EmbeddingTask = {
|
|
4634
4969
|
scope: SelectedScope;
|
|
4635
|
-
model: EmbeddingModelId;
|
|
4970
|
+
model: EmbeddingModelId;
|
|
4971
|
+
/** ESM-2 fidelity; undefined for other models. */
|
|
4636
4972
|
fidelity?: Fidelity;
|
|
4637
4973
|
};
|
|
4638
4974
|
/**
|
|
@@ -4642,11 +4978,13 @@ type EmbeddingTask = {
|
|
|
4642
4978
|
* `.argsValid()`).
|
|
4643
4979
|
*/
|
|
4644
4980
|
type BlockArgs = {
|
|
4645
|
-
inputAnchor: PlRef;
|
|
4646
|
-
|
|
4981
|
+
inputAnchor: PlRef;
|
|
4982
|
+
/** Tasks to emit — a 1-element list projected from `data.embedding` (validated complete + compatible). */
|
|
4983
|
+
embeddings: EmbeddingTask[];
|
|
4984
|
+
/** Advanced resource overrides for the embedding step (GiB / cores); undefined → workflow sizes automatically. */
|
|
4647
4985
|
mem?: number;
|
|
4648
4986
|
cpu?: number;
|
|
4649
|
-
};
|
|
4987
|
+
};
|
|
4650
4988
|
//#endregion
|
|
4651
4989
|
//#region ../model/dist/index.d.ts
|
|
4652
4990
|
//#region src/index.d.ts
|
|
@@ -4656,7 +4994,7 @@ declare const platforma: PlatformaExtended<PlatformaV3<BlockDataV3, BlockArgs, I
|
|
|
4656
4994
|
readonly __isRef: true;
|
|
4657
4995
|
readonly blockId: string;
|
|
4658
4996
|
readonly name: string;
|
|
4659
|
-
readonly requireEnrichments?: true | undefined
|
|
4997
|
+
readonly requireEnrichments?: true | undefined;
|
|
4660
4998
|
};
|
|
4661
4999
|
readonly label: string;
|
|
4662
5000
|
}[]>;
|
|
@@ -4669,7 +5007,7 @@ declare const platforma: PlatformaExtended<PlatformaV3<BlockDataV3, BlockArgs, I
|
|
|
4669
5007
|
columns: SUniversalPColumnId[];
|
|
4670
5008
|
label: string;
|
|
4671
5009
|
isHeavy: boolean;
|
|
4672
|
-
receptor:
|
|
5010
|
+
receptor: ScopeReceptor;
|
|
4673
5011
|
}[];
|
|
4674
5012
|
defaults: {
|
|
4675
5013
|
id: string;
|
|
@@ -4678,28 +5016,28 @@ declare const platforma: PlatformaExtended<PlatformaV3<BlockDataV3, BlockArgs, I
|
|
|
4678
5016
|
columns: SUniversalPColumnId[];
|
|
4679
5017
|
label: string;
|
|
4680
5018
|
isHeavy: boolean;
|
|
4681
|
-
receptor:
|
|
5019
|
+
receptor: ScopeReceptor;
|
|
4682
5020
|
}[];
|
|
4683
5021
|
forAnchor: string;
|
|
4684
|
-
receptor:
|
|
5022
|
+
receptor: ScopeReceptor;
|
|
4685
5023
|
paired: boolean;
|
|
4686
5024
|
} | undefined>;
|
|
4687
5025
|
} & {
|
|
4688
5026
|
stats: ConfigRenderLambda<{
|
|
4689
5027
|
device_used: "cpu" | "cuda" | "mps";
|
|
4690
|
-
device_requested?: "cpu" | "gpu"
|
|
5028
|
+
device_requested?: "cpu" | "gpu";
|
|
4691
5029
|
model: ModelTag;
|
|
4692
|
-
max_length?: number
|
|
5030
|
+
max_length?: number;
|
|
4693
5031
|
scopes: {
|
|
4694
5032
|
name: string;
|
|
4695
5033
|
feature: "peptide" | "CDR3" | "VDJRegion" | "Fv" | "scFv";
|
|
4696
5034
|
chain: "A" | "B" | "";
|
|
4697
5035
|
label: string;
|
|
4698
5036
|
model: ModelTag;
|
|
4699
|
-
max_length?: number
|
|
4700
|
-
n_entities?: number
|
|
4701
|
-
n_dropped_empty?: number
|
|
4702
|
-
n_truncated?: number | null
|
|
5037
|
+
max_length?: number;
|
|
5038
|
+
n_entities?: number;
|
|
5039
|
+
n_dropped_empty?: number;
|
|
5040
|
+
n_truncated?: number | null;
|
|
4703
5041
|
}[];
|
|
4704
5042
|
} | undefined>;
|
|
4705
5043
|
} & {
|