@platforma-open/milaboratories.sequence-embeddings 1.4.0 → 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 +632 -270
- package/dist/AGENTS.d.ts.map +1 -1
- package/dist/index.d.ts +640 -280
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5162 -4084
- package/dist/index.js.map +1 -1
- package/dist/rolldown-runtime-B-1-B7_t.js +33 -0
- package/package.json +9 -8
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,22 +1655,33 @@ 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;
|
|
1292
1671
|
format: PTableDownloadFormat;
|
|
1293
1672
|
columnIndices: number[];
|
|
1673
|
+
/**
|
|
1674
|
+
* Optional header names aligned 1:1 with {@link columnIndices}. When provided,
|
|
1675
|
+
* each is written verbatim — letting callers supply disambiguated labels the
|
|
1676
|
+
* spec's intrinsic `pl7.app/label` may not carry. When omitted (or an
|
|
1677
|
+
* individual entry is empty), the header falls back to the column's
|
|
1678
|
+
* spec-derived label.
|
|
1679
|
+
*
|
|
1680
|
+
* Additive on purpose: the UI (ui-vue) and the desktop-app runtime version
|
|
1681
|
+
* independently, so a newer UI must not send a shape an older runtime cannot
|
|
1682
|
+
* read. Older runtimes ignore this field and use {@link columnIndices} alone.
|
|
1683
|
+
*/
|
|
1684
|
+
headerNames?: string[];
|
|
1294
1685
|
range?: TableRange;
|
|
1295
1686
|
chunkSize?: number;
|
|
1296
1687
|
includeHeader?: boolean;
|
|
@@ -1307,11 +1698,6 @@ interface WritePTableToFsResult {
|
|
|
1307
1698
|
rowsWritten: number;
|
|
1308
1699
|
bytesWritten: number;
|
|
1309
1700
|
}
|
|
1310
|
-
/**
|
|
1311
|
-
* Maximum number of data rows allowed per sheet in an `xlsx` export, kept below
|
|
1312
|
-
* Excel's hard limit of 1,048,576. The driver rejects oversized `xlsx` exports
|
|
1313
|
-
* (see {@link PFrameDriver.exportPTable}); UIs use it to gate the `xlsx` option.
|
|
1314
|
-
*/
|
|
1315
1701
|
/** Options for {@link PFrameDriver.exportPTable}. */
|
|
1316
1702
|
interface ExportPTableOptions {
|
|
1317
1703
|
/** Destination file path; its extension selects the output format
|
|
@@ -1320,9 +1706,21 @@ interface ExportPTableOptions {
|
|
|
1320
1706
|
/** Unified indices of the columns to export, in output order
|
|
1321
1707
|
* (axes first, then data columns). */
|
|
1322
1708
|
columnIndices: number[];
|
|
1323
|
-
|
|
1709
|
+
/**
|
|
1710
|
+
* Optional header names aligned 1:1 with {@link columnIndices}. When provided,
|
|
1711
|
+
* each is written verbatim — letting callers supply disambiguated labels the
|
|
1712
|
+
* spec's intrinsic `pl7.app/label` may not carry. When omitted (or an
|
|
1713
|
+
* individual entry is empty), the header falls back to the column's
|
|
1714
|
+
* spec-derived label.
|
|
1715
|
+
*
|
|
1716
|
+
* Additive on purpose: the UI (ui-vue) and the desktop-app runtime version
|
|
1717
|
+
* independently, so a newer UI must not send a shape an older runtime cannot
|
|
1718
|
+
* read. Older runtimes ignore this field and use {@link columnIndices} alone.
|
|
1719
|
+
*/
|
|
1720
|
+
headerNames?: string[];
|
|
1721
|
+
}
|
|
1324
1722
|
//#endregion
|
|
1325
|
-
//#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
|
|
1326
1724
|
//#region src/drivers/pframe/data_info.d.ts
|
|
1327
1725
|
/**
|
|
1328
1726
|
* Represents a JavaScript representation of a value in a PColumn. Can be null, a number, or a string.
|
|
@@ -1337,16 +1735,12 @@ type PColumnValue = null | number | string;
|
|
|
1337
1735
|
* Can be an array of strings or numbers.
|
|
1338
1736
|
*/
|
|
1339
1737
|
type PColumnKey = (number | string)[];
|
|
1340
|
-
/**
|
|
1341
|
-
* Represents a single entry in a PColumn's data structure.
|
|
1342
|
-
* Contains a key and a value.
|
|
1343
|
-
*/
|
|
1344
1738
|
/**
|
|
1345
1739
|
* Represents column data stored as a simple JSON structure.
|
|
1346
1740
|
* Used for small datasets that can be efficiently stored directly in memory.
|
|
1347
1741
|
*/
|
|
1348
1742
|
type JsonDataInfo = {
|
|
1349
|
-
/** 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) */
|
|
1350
1744
|
keyLength: number;
|
|
1351
1745
|
/**
|
|
1352
1746
|
* Key-value pairs where keys are stringified tuples of axis values
|
|
@@ -1359,7 +1753,7 @@ type JsonDataInfo = {
|
|
|
1359
1753
|
* Used for larger datasets that need to be split into manageable chunks.
|
|
1360
1754
|
*/
|
|
1361
1755
|
type JsonPartitionedDataInfo<Blob> = {
|
|
1362
|
-
/** 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 */
|
|
1363
1757
|
partitionKeyLength: number; /** Map of stringified partition keys to blob references */
|
|
1364
1758
|
parts: Record<string, Blob>;
|
|
1365
1759
|
};
|
|
@@ -1368,7 +1762,7 @@ type JsonPartitionedDataInfo<Blob> = {
|
|
|
1368
1762
|
* Used for efficient storage and retrieval of column data in binary format.
|
|
1369
1763
|
*/
|
|
1370
1764
|
type BinaryChunk<Blob> = {
|
|
1371
|
-
/** 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 */
|
|
1372
1766
|
values: Blob;
|
|
1373
1767
|
};
|
|
1374
1768
|
/**
|
|
@@ -1376,12 +1770,12 @@ type BinaryChunk<Blob> = {
|
|
|
1376
1770
|
* Optimized for efficient storage and retrieval of large datasets.
|
|
1377
1771
|
*/
|
|
1378
1772
|
type BinaryPartitionedDataInfo<Blob> = {
|
|
1379
|
-
/** 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 */
|
|
1380
1774
|
partitionKeyLength: number; /** Map of stringified partition keys to binary chunks */
|
|
1381
1775
|
parts: Record<string, BinaryChunk<Blob>>;
|
|
1382
1776
|
};
|
|
1383
1777
|
type ParquetPartitionedDataInfo<Blob> = {
|
|
1384
|
-
/** 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 */
|
|
1385
1779
|
partitionKeyLength: number; /** Map of stringified partition keys to parquet files */
|
|
1386
1780
|
parts: Record<string, Blob>;
|
|
1387
1781
|
};
|
|
@@ -1392,12 +1786,6 @@ type ParquetPartitionedDataInfo<Blob> = {
|
|
|
1392
1786
|
* @template Blob - Type parameter representing the storage reference type (could be ResourceInfo, PFrameBlobId, etc.)
|
|
1393
1787
|
*/
|
|
1394
1788
|
type DataInfo<Blob> = JsonDataInfo | JsonPartitionedDataInfo<Blob> | BinaryPartitionedDataInfo<Blob> | ParquetPartitionedDataInfo<Blob>;
|
|
1395
|
-
/**
|
|
1396
|
-
* Type guard function that checks if the given value is a valid DataInfo.
|
|
1397
|
-
*
|
|
1398
|
-
* @param value - The value to check
|
|
1399
|
-
* @returns True if the value is a valid DataInfo, false otherwise
|
|
1400
|
-
*/
|
|
1401
1789
|
/**
|
|
1402
1790
|
* Represents a single key-value entry in a column's explicit data structure.
|
|
1403
1791
|
* Used when directly instantiating PColumns with explicit data.
|
|
@@ -1411,11 +1799,8 @@ type PColumnValuesEntry = {
|
|
|
1411
1799
|
* Used for lightweight explicit instantiation of PColumns.
|
|
1412
1800
|
*/
|
|
1413
1801
|
type PColumnValues = PColumnValuesEntry[];
|
|
1414
|
-
/**
|
|
1415
|
-
* Entry-based representation of JsonDataInfo
|
|
1416
|
-
*/
|
|
1417
1802
|
//#endregion
|
|
1418
|
-
//#region ../node_modules/.pnpm/@milaboratories+helpers@1.14.
|
|
1803
|
+
//#region ../node_modules/.pnpm/@milaboratories+helpers@1.14.5/node_modules/@milaboratories/helpers/dist/types/brand.d.ts
|
|
1419
1804
|
//#region src/types/brand.d.ts
|
|
1420
1805
|
/**
|
|
1421
1806
|
* Phantom-property brand. The key is a plain string literal rather than a
|
|
@@ -1437,7 +1822,7 @@ type Branded<T, B> = T & {
|
|
|
1437
1822
|
readonly __brand: B;
|
|
1438
1823
|
};
|
|
1439
1824
|
//#endregion
|
|
1440
|
-
//#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
|
|
1441
1826
|
//#region src/drivers/pframe/spec/overridden.d.ts
|
|
1442
1827
|
type SpecOverrides = Pick<PColumnSpec, "domain" | "contextDomain" | "annotations"> & {
|
|
1443
1828
|
axesSpec?: AxisPatches;
|
|
@@ -1454,7 +1839,7 @@ interface ColumnOverriddenKey {
|
|
|
1454
1839
|
}
|
|
1455
1840
|
type ColumnOverriddenId = Branded<CanonicalizedJson<ColumnOverriddenKey>, "ColumnOverriddenId">;
|
|
1456
1841
|
//#endregion
|
|
1457
|
-
//#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
|
|
1458
1843
|
//#region src/drivers/pframe/query/query_common.d.ts
|
|
1459
1844
|
/**
|
|
1460
1845
|
* Structural type information for a single column: the axis value types (in
|
|
@@ -1462,7 +1847,7 @@ type ColumnOverriddenId = Branded<CanonicalizedJson<ColumnOverriddenKey>, "Colum
|
|
|
1462
1847
|
* `typeSpec` shape carried by the data layer (`{ axes, column }`).
|
|
1463
1848
|
*/
|
|
1464
1849
|
type ColumnTypeSpec = {
|
|
1465
|
-
/** 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 */
|
|
1466
1851
|
column: ColumnValueType;
|
|
1467
1852
|
};
|
|
1468
1853
|
/**
|
|
@@ -2149,7 +2534,7 @@ interface QuerySliceAxes<Q, A> {
|
|
|
2149
2534
|
input: Q;
|
|
2150
2535
|
/** List of axis filters to apply (at least one required) */
|
|
2151
2536
|
axisFilters: {
|
|
2152
|
-
/** 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 */
|
|
2153
2538
|
constant: string | number;
|
|
2154
2539
|
}[];
|
|
2155
2540
|
}
|
|
@@ -2499,9 +2884,9 @@ interface QuerySpecOverride<Q, SO> {
|
|
|
2499
2884
|
input: Q;
|
|
2500
2885
|
/** Spec override patch to overlay on the inner spec. */
|
|
2501
2886
|
override: SO;
|
|
2502
|
-
}
|
|
2887
|
+
}
|
|
2503
2888
|
//#endregion
|
|
2504
|
-
//#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
|
|
2505
2890
|
//#region src/drivers/pframe/query/query_data.d.ts
|
|
2506
2891
|
/**
|
|
2507
2892
|
* Column identifier with type specification.
|
|
@@ -2510,7 +2895,7 @@ interface QuerySpecOverride<Q, SO> {
|
|
|
2510
2895
|
* Used in data layer to carry type information alongside column references.
|
|
2511
2896
|
*/
|
|
2512
2897
|
type ColumnIdAndTypeSpec = {
|
|
2513
|
-
/** 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 */
|
|
2514
2899
|
spec: ColumnTypeSpec;
|
|
2515
2900
|
};
|
|
2516
2901
|
/**
|
|
@@ -2548,7 +2933,7 @@ type DataQueryOuterJoin = QueryOuterJoin<DataQueryJoinEntry>;
|
|
|
2548
2933
|
* - `oneSideAxesIndices` — which axis indices in the joined result to project out
|
|
2549
2934
|
*/
|
|
2550
2935
|
type DataQueryLinkerJoinLinker = {
|
|
2551
|
-
/** 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. */
|
|
2552
2937
|
axesMapping: number[]; /** Axis indices (in the joined result) to project out — the linker's one-side axes. */
|
|
2553
2938
|
oneSideAxesIndices: number[];
|
|
2554
2939
|
};
|
|
@@ -2579,9 +2964,9 @@ type DataExprAxisRef = ExprAxisRef<number>;
|
|
|
2579
2964
|
/** @see ExprColumnRef */
|
|
2580
2965
|
type DataExprColumnRef = ExprColumnRef<number>;
|
|
2581
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>;
|
|
2582
|
-
type DataQueryBooleanExpression = InferBooleanExpressionUnion<DataQueryExpression>;
|
|
2967
|
+
type DataQueryBooleanExpression = InferBooleanExpressionUnion<DataQueryExpression>;
|
|
2583
2968
|
//#endregion
|
|
2584
|
-
//#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
|
|
2585
2970
|
//#region src/drivers/pframe/spec_driver.d.ts
|
|
2586
2971
|
/** Matches a string value either exactly or by regex pattern */
|
|
2587
2972
|
type StringMatcher = {
|
|
@@ -2692,7 +3077,7 @@ type DiscoverColumnsStepInfo = DiscoverColumnsLinkerStep | DiscoverColumnsFilter
|
|
|
2692
3077
|
* propagate into the inner query.
|
|
2693
3078
|
*/
|
|
2694
3079
|
type BuildQueryInput = {
|
|
2695
|
-
/** 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. */
|
|
2696
3081
|
readonly column: PObjectId; /** Ordered path from source integration to `column`. Outermost first. */
|
|
2697
3082
|
readonly path?: DiscoverColumnsStepInfo[]; /** Axis qualifications attached to the resulting join entry. */
|
|
2698
3083
|
readonly qualifications?: AxisQualification[];
|
|
@@ -2794,9 +3179,9 @@ interface PFrameSpecDriver {
|
|
|
2794
3179
|
tableSpec: PTableColumnSpec[];
|
|
2795
3180
|
filters: PTableRecordFilter[];
|
|
2796
3181
|
}): DataQueryBooleanExpression[];
|
|
2797
|
-
}
|
|
3182
|
+
}
|
|
2798
3183
|
//#endregion
|
|
2799
|
-
//#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
|
|
2800
3185
|
/** Single axis selector */
|
|
2801
3186
|
interface SingleAxisSelector {
|
|
2802
3187
|
/** Axis name (required) */
|
|
@@ -2817,12 +3202,8 @@ interface AxisQualification {
|
|
|
2817
3202
|
/** Additional context domain entries applied to the axis. */
|
|
2818
3203
|
readonly contextDomain: Record<string, string>;
|
|
2819
3204
|
}
|
|
2820
|
-
/**
|
|
2821
|
-
* Reference to an axis by its numerical index within the anchor column's axes array
|
|
2822
|
-
* Format: [anchorId, axisIndex]
|
|
2823
|
-
*/
|
|
2824
3205
|
//#endregion
|
|
2825
|
-
//#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
|
|
2826
3207
|
//#region src/drivers/pframe/query/query_spec.d.ts
|
|
2827
3208
|
/**
|
|
2828
3209
|
* Join entry for spec-layer queries — the base join entry extended with
|
|
@@ -2836,7 +3217,7 @@ interface AxisQualification {
|
|
|
2836
3217
|
*/
|
|
2837
3218
|
type SpecQueryJoinEntry<C = ColumnUniversalId> = QueryJoinEntry<SpecQuery<C>> & {
|
|
2838
3219
|
qualifications?: readonly {
|
|
2839
|
-
/** Axis to qualify. */axis: SingleAxisSelector; /** Additional domain constraints for this axis. */
|
|
3220
|
+
/** Axis to qualify. */ axis: SingleAxisSelector; /** Additional domain constraints for this axis. */
|
|
2840
3221
|
contextDomain: Domain;
|
|
2841
3222
|
}[];
|
|
2842
3223
|
};
|
|
@@ -2889,9 +3270,9 @@ type SpecExprAxisRef = ExprAxisRef<SingleAxisSelector>;
|
|
|
2889
3270
|
/** @see ExprColumnRef */
|
|
2890
3271
|
type SpecExprColumnRef = ExprColumnRef<ColumnUniversalId>;
|
|
2891
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>;
|
|
2892
|
-
type SpecQueryBooleanExpression = InferBooleanExpressionUnion<SpecQueryExpression>;
|
|
3273
|
+
type SpecQueryBooleanExpression = InferBooleanExpressionUnion<SpecQueryExpression>;
|
|
2893
3274
|
//#endregion
|
|
2894
|
-
//#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
|
|
2895
3276
|
//#region src/drivers/pframe/table_calculate.d.ts
|
|
2896
3277
|
/** Defines a terminal column node in the join request tree */
|
|
2897
3278
|
interface ColumnJoinEntry<Col> {
|
|
@@ -3145,7 +3526,7 @@ interface PTableRecordSingleValueFilterV2 {
|
|
|
3145
3526
|
type PTableRecordFilter = PTableRecordSingleValueFilterV2;
|
|
3146
3527
|
/** Sorting parameters for a PTable. */
|
|
3147
3528
|
type PTableSorting = {
|
|
3148
|
-
/** Unified column identifier */readonly column: PTableColumnId; /** Sorting order */
|
|
3529
|
+
/** Unified column identifier */ readonly column: PTableColumnId; /** Sorting order */
|
|
3149
3530
|
readonly ascending: boolean; /** Sorting in respect to NA and absent values */
|
|
3150
3531
|
readonly naAndAbsentAreLeastValues: boolean;
|
|
3151
3532
|
};
|
|
@@ -3167,14 +3548,14 @@ interface PTableDefV2<Col> {
|
|
|
3167
3548
|
}
|
|
3168
3549
|
/** Request to create and retrieve entirety of data of PTable. */
|
|
3169
3550
|
type CalculateTableDataRequest<Col> = {
|
|
3170
|
-
/** 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 */
|
|
3171
3552
|
readonly filters: PTableRecordFilter[]; /** Table sorting */
|
|
3172
3553
|
readonly sorting: PTableSorting[];
|
|
3173
3554
|
};
|
|
3174
3555
|
/** Response for {@link CalculateTableDataRequest} */
|
|
3175
3556
|
type CalculateTableDataResponse = FullPTableColumnData[];
|
|
3176
3557
|
//#endregion
|
|
3177
|
-
//#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
|
|
3178
3559
|
//#region src/ref.d.ts
|
|
3179
3560
|
declare const PlRef: ZodReadonly<ZodObject<{
|
|
3180
3561
|
__isRef: ZodLiteral<true>;
|
|
@@ -3193,13 +3574,12 @@ declare const PlRef: ZodReadonly<ZodObject<{
|
|
|
3193
3574
|
requireEnrichments?: true | undefined;
|
|
3194
3575
|
}>>;
|
|
3195
3576
|
type PlRef = TypeOf<typeof PlRef>;
|
|
3196
|
-
/** @deprecated use {@link PlRef} */
|
|
3197
3577
|
//#endregion
|
|
3198
|
-
//#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
|
|
3199
3579
|
//#region src/pool/spec.d.ts
|
|
3200
3580
|
/** Any object exported into the result pool by the block always have spec attached to it */
|
|
3201
3581
|
type PObjectSpec = {
|
|
3202
|
-
/** 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 */
|
|
3203
3583
|
readonly name: string; /** Domain is a set of key-value pairs that can be used to identify the object */
|
|
3204
3584
|
readonly domain?: Record<string, string>;
|
|
3205
3585
|
/** Context domain provides additional axis/column identity that is matched
|
|
@@ -3230,7 +3610,7 @@ interface PObject<Data> {
|
|
|
3230
3610
|
readonly data: Data;
|
|
3231
3611
|
}
|
|
3232
3612
|
//#endregion
|
|
3233
|
-
//#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
|
|
3234
3614
|
//#region src/drivers/pframe/spec/spec.d.ts
|
|
3235
3615
|
declare const ValueType: {
|
|
3236
3616
|
readonly Int: "Int";
|
|
@@ -3271,7 +3651,7 @@ type Domain = Metadata & Partial<{
|
|
|
3271
3651
|
* all the axes specified in the column spec.
|
|
3272
3652
|
*/
|
|
3273
3653
|
type AxisSpec = {
|
|
3274
|
-
/** 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 */
|
|
3275
3655
|
readonly name: string;
|
|
3276
3656
|
/** Adds auxiliary information to the axis name, type and parents to form a
|
|
3277
3657
|
* unique identifier */
|
|
@@ -3302,7 +3682,6 @@ type AxisSpec = {
|
|
|
3302
3682
|
*/
|
|
3303
3683
|
readonly parentAxes?: number[];
|
|
3304
3684
|
};
|
|
3305
|
-
/** Parents are specs, not indexes; normalized axis can be used considering its parents independently from column */
|
|
3306
3685
|
/** Common type representing spec for all the axes in a column */
|
|
3307
3686
|
type AxesSpec = AxisSpec[];
|
|
3308
3687
|
/**
|
|
@@ -3343,10 +3722,9 @@ type PUniversalColumnSpec = PObjectSpec & {
|
|
|
3343
3722
|
* basic tabular data.
|
|
3344
3723
|
*/
|
|
3345
3724
|
type PDataColumnSpec = PUniversalColumnSpec & {
|
|
3346
|
-
/** Type of column values */readonly valueType: ValueType;
|
|
3725
|
+
/** Type of column values */ readonly valueType: ValueType;
|
|
3347
3726
|
};
|
|
3348
3727
|
type PColumnSpec = PDataColumnSpec;
|
|
3349
|
-
/** Unique PColumnSpec identifier */
|
|
3350
3728
|
interface PColumn<Data> extends PObject<Data> {
|
|
3351
3729
|
/** PColumn spec, allowing it to be found among other PObjects */
|
|
3352
3730
|
readonly spec: PColumnSpec;
|
|
@@ -3359,7 +3737,6 @@ interface PColumnIdAndSpec {
|
|
|
3359
3737
|
/** Column spec */
|
|
3360
3738
|
readonly spec: PColumnSpec;
|
|
3361
3739
|
}
|
|
3362
|
-
/** Get column id and spec from a column */
|
|
3363
3740
|
interface AxisId {
|
|
3364
3741
|
/** Type of the axis or column value. For an axis should not use non-key
|
|
3365
3742
|
* types like float or double. */
|
|
@@ -3375,15 +3752,13 @@ interface AxisId {
|
|
|
3375
3752
|
}
|
|
3376
3753
|
/** Array of axis ids */
|
|
3377
3754
|
type AxesId = AxisId[];
|
|
3378
|
-
/** Extracts axis ids from axis spec */
|
|
3379
3755
|
//#endregion
|
|
3380
|
-
//#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
|
|
3381
3757
|
//#region src/drivers/pframe/spec/filtered_column.d.ts
|
|
3382
3758
|
/** Value of an axis filter */
|
|
3383
3759
|
type AxisFilterValue = number | string;
|
|
3384
3760
|
/** Axis filter by index */
|
|
3385
3761
|
type AxisFilterByIdx = [number, AxisFilterValue];
|
|
3386
|
-
/** Axis filter by name */
|
|
3387
3762
|
/**
|
|
3388
3763
|
* `source` is either a leaf {@link PObjectId} or a {@link ColumnDiscoveredId}.
|
|
3389
3764
|
* Filtered never nests inside Filtered (flat-merge invariant), and Filtered is
|
|
@@ -3396,7 +3771,7 @@ interface ColumnFilteredKey {
|
|
|
3396
3771
|
}
|
|
3397
3772
|
type ColumnFilteredId = Branded<CanonicalizedJson<ColumnFilteredKey>, "ColumnFilteredId">;
|
|
3398
3773
|
//#endregion
|
|
3399
|
-
//#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
|
|
3400
3775
|
//#region src/drivers/pframe/spec/ids.d.ts
|
|
3401
3776
|
/**
|
|
3402
3777
|
* Per-axis patches keyed by positional index in the base spec's `axesSpec`.
|
|
@@ -3408,23 +3783,14 @@ type ColumnFilteredId = Branded<CanonicalizedJson<ColumnFilteredKey>, "ColumnFil
|
|
|
3408
3783
|
* A patch at index `>= base.axesSpec.length` appends a new axis at that slot.
|
|
3409
3784
|
*/
|
|
3410
3785
|
type AxisPatches = Record<number, Partial<AxisSpec>>;
|
|
3411
|
-
/**
|
|
3412
|
-
* Universal column identifier optionally anchored and optionally filtered.
|
|
3413
|
-
* @deprecated use {@link ColumnUniversalKey}
|
|
3414
|
-
*/
|
|
3415
3786
|
/**
|
|
3416
3787
|
* Canonically serialized {@link UniversalPColumnId}.
|
|
3417
3788
|
* @deprecated use {@link ColumnUniversalId}
|
|
3418
3789
|
*/
|
|
3419
3790
|
type SUniversalPColumnId = ColumnUniversalId;
|
|
3420
3791
|
type ColumnUniversalId = LocalPObjectId | GlobalPObjectId | ColumnFilteredId | ColumnDiscoveredId | ColumnOverriddenId;
|
|
3421
|
-
/**
|
|
3422
|
-
* Canonically serializes a column key to a branded string id. Accepts both
|
|
3423
|
-
* the new {@link ColumnUniversalKey} and the deprecated {@link UniversalPColumnId}
|
|
3424
|
-
* (anchored / old filtered object form).
|
|
3425
|
-
*/
|
|
3426
3792
|
//#endregion
|
|
3427
|
-
//#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
|
|
3428
3794
|
//#region src/drivers/pframe/spec/discovered_column.d.ts
|
|
3429
3795
|
interface ColumnDiscoveredKey {
|
|
3430
3796
|
__isDiscovered: true;
|
|
@@ -3439,7 +3805,7 @@ type PathItem = {
|
|
|
3439
3805
|
column: ColumnUniversalId;
|
|
3440
3806
|
};
|
|
3441
3807
|
//#endregion
|
|
3442
|
-
//#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
|
|
3443
3809
|
//#region src/drivers/interfaces.d.ts
|
|
3444
3810
|
/**
|
|
3445
3811
|
* Intended to match web.Blob, node.Blob, node-fetch.Blob, etc.
|
|
@@ -3462,9 +3828,9 @@ interface FileLike extends BlobLike {
|
|
|
3462
3828
|
readonly lastModified: number;
|
|
3463
3829
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/name) */
|
|
3464
3830
|
readonly name: string;
|
|
3465
|
-
}
|
|
3831
|
+
}
|
|
3466
3832
|
//#endregion
|
|
3467
|
-
//#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
|
|
3468
3834
|
//#region src/drivers/blob.d.ts
|
|
3469
3835
|
/** Handle of locally downloaded blob. This handle is issued only after the
|
|
3470
3836
|
* blob's content is downloaded locally, and ready for quick access. */
|
|
@@ -3472,11 +3838,9 @@ type LocalBlobHandle = Branded$1<string, "LocalBlobHandle">;
|
|
|
3472
3838
|
/** Handle of remote blob. This handle is issued as soon as the data becomes
|
|
3473
3839
|
* available on the remote server. */
|
|
3474
3840
|
type RemoteBlobHandle = Branded$1<string, "RemoteBlobHandle">;
|
|
3475
|
-
/** Being configured inside the output structure provides information about
|
|
3476
|
-
* blob's content and means to retrieve it when needed. */
|
|
3477
3841
|
/** Range in bytes, from should be less than to. */
|
|
3478
3842
|
declare const RangeBytes: ZodObject<{
|
|
3479
|
-
/** Included left border. */from: ZodNumber; /** Excluded right border. */
|
|
3843
|
+
/** Included left border. */ from: ZodNumber; /** Excluded right border. */
|
|
3480
3844
|
to: ZodNumber;
|
|
3481
3845
|
}, "strip", ZodTypeAny, {
|
|
3482
3846
|
from: number;
|
|
@@ -3495,11 +3859,8 @@ interface BlobDriver {
|
|
|
3495
3859
|
*/
|
|
3496
3860
|
getContent(handle: LocalBlobHandle | RemoteBlobHandle, range?: RangeBytes): Promise<Uint8Array>;
|
|
3497
3861
|
}
|
|
3498
|
-
/**
|
|
3499
|
-
* Operational metrics of the blob download driver.
|
|
3500
|
-
*/
|
|
3501
3862
|
//#endregion
|
|
3502
|
-
//#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
|
|
3503
3864
|
//#region src/drivers/log.d.ts
|
|
3504
3865
|
/** Prefix constants — single source of truth for handle format. */
|
|
3505
3866
|
declare const LIVE_LOG_PREFIX = "log+live://log/";
|
|
@@ -3513,38 +3874,29 @@ type ReadyLogHandle = Branded$1<`${typeof READY_LOG_PREFIX}${string}`, "ReadyLog
|
|
|
3513
3874
|
/** Handle of logs. This handle should be passed
|
|
3514
3875
|
* to the driver for retrieving logs. */
|
|
3515
3876
|
type AnyLogHandle = LiveLogHandle | ReadyLogHandle;
|
|
3516
|
-
/** Type guard to check if a value is any kind of log handle. */
|
|
3517
3877
|
/** Driver to retrieve logs given log handle */
|
|
3518
3878
|
interface LogsDriver {
|
|
3519
|
-
lastLines(
|
|
3520
|
-
|
|
3521
|
-
handle: AnyLogHandle
|
|
3522
|
-
|
|
3523
|
-
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,
|
|
3524
3882
|
/** Makes streamer to perform seek operation to given offset before sending the contents.
|
|
3525
3883
|
* Client can just use the <new_offset> value of the last response from server to continue streaming after reconnection.
|
|
3526
3884
|
* If undefined, then starts from the end. */
|
|
3527
|
-
|
|
3528
3885
|
offsetBytes?: number,
|
|
3529
3886
|
/** Is substring for line search pattern.
|
|
3530
3887
|
* This option makes controller to send to the client only lines, that
|
|
3531
3888
|
* have given substring. */
|
|
3532
|
-
|
|
3533
3889
|
searchStr?: string): Promise<StreamingApiResponse>;
|
|
3534
|
-
readText(
|
|
3535
|
-
|
|
3536
|
-
handle: AnyLogHandle
|
|
3537
|
-
|
|
3538
|
-
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,
|
|
3539
3893
|
/** Makes streamer to perform seek operation to given offset before sending the contents.
|
|
3540
3894
|
* Client can just use the <new_offset> value of the last response from server to continue streaming after reconnection.
|
|
3541
3895
|
* If undefined of 0, then starts from the beginning. */
|
|
3542
|
-
|
|
3543
3896
|
offsetBytes?: number,
|
|
3544
3897
|
/** Is substring for line search pattern.
|
|
3545
3898
|
* This option makes controller to send to the client only lines, that
|
|
3546
3899
|
* have given substring. */
|
|
3547
|
-
|
|
3548
3900
|
searchStr?: string): Promise<StreamingApiResponse>;
|
|
3549
3901
|
}
|
|
3550
3902
|
/** Response of the driver.
|
|
@@ -3566,7 +3918,7 @@ type StreamingApiResponseHandleOutdated = {
|
|
|
3566
3918
|
shouldUpdateHandle: true;
|
|
3567
3919
|
};
|
|
3568
3920
|
//#endregion
|
|
3569
|
-
//#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
|
|
3570
3922
|
//#region src/drivers/pframe/column_filter.d.ts
|
|
3571
3923
|
/** Allows to search multiple columns in different contexts. */
|
|
3572
3924
|
interface ColumnFilter {
|
|
@@ -3583,9 +3935,9 @@ interface ColumnFilter {
|
|
|
3583
3935
|
/** Match requires all the annotations listed here to match corresponding regex
|
|
3584
3936
|
* pattern. */
|
|
3585
3937
|
readonly annotationPattern?: Record<string, string>;
|
|
3586
|
-
}
|
|
3938
|
+
}
|
|
3587
3939
|
//#endregion
|
|
3588
|
-
//#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
|
|
3589
3941
|
//#region src/drivers/pframe/find_columns.d.ts
|
|
3590
3942
|
/**
|
|
3591
3943
|
* Request to search among existing columns in the PFrame. Two filtering
|
|
@@ -3610,9 +3962,9 @@ interface FindColumnsRequest {
|
|
|
3610
3962
|
interface FindColumnsResponse {
|
|
3611
3963
|
/** Array of column ids found using request criteria. */
|
|
3612
3964
|
readonly hits: PColumnIdAndSpec[];
|
|
3613
|
-
}
|
|
3965
|
+
}
|
|
3614
3966
|
//#endregion
|
|
3615
|
-
//#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
|
|
3616
3968
|
//#region src/drivers/pframe/unique_values.d.ts
|
|
3617
3969
|
/** Calculate set of unique values for a specific axis for the filtered set of records */
|
|
3618
3970
|
interface UniqueValuesRequest {
|
|
@@ -3630,13 +3982,13 @@ interface UniqueValuesResponse {
|
|
|
3630
3982
|
readonly values: PTableVector;
|
|
3631
3983
|
/** True if limit was reached and response contain non-exhaustive list of values. */
|
|
3632
3984
|
readonly overflow: boolean;
|
|
3633
|
-
}
|
|
3985
|
+
}
|
|
3634
3986
|
//#endregion
|
|
3635
|
-
//#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
|
|
3636
3988
|
/** Information required to instantiate a PFrame. */
|
|
3637
|
-
type PFrameDef<Col> = Col[];
|
|
3989
|
+
type PFrameDef<Col> = Col[];
|
|
3638
3990
|
//#endregion
|
|
3639
|
-
//#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
|
|
3640
3992
|
//#region src/drivers/pframe/driver.d.ts
|
|
3641
3993
|
/** PFrame handle */
|
|
3642
3994
|
type PFrameHandle = Branded$1<string, "PFrame">;
|
|
@@ -3702,9 +4054,9 @@ interface PFrameDriver {
|
|
|
3702
4054
|
* 1,000,000-row per-sheet limit (below Excel's hard cap of 1,048,576).
|
|
3703
4055
|
*/
|
|
3704
4056
|
exportPTable(handle: PTableHandle, options: ExportPTableOptions): Promise<void>;
|
|
3705
|
-
}
|
|
4057
|
+
}
|
|
3706
4058
|
//#endregion
|
|
3707
|
-
//#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
|
|
3708
4060
|
//#region src/drivers/ls.d.ts
|
|
3709
4061
|
type ImportFileHandleUpload = `upload://upload/${string}`;
|
|
3710
4062
|
type ImportFileHandleIndex = `index://index/${string}`;
|
|
@@ -3716,7 +4068,7 @@ type StorageHandleLocal = `local://${string}`;
|
|
|
3716
4068
|
type StorageHandleRemote = `remote://${string}`;
|
|
3717
4069
|
type StorageHandle = StorageHandleLocal | StorageHandleRemote;
|
|
3718
4070
|
type StorageEntry = {
|
|
3719
|
-
/** 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. */
|
|
3720
4072
|
name: string;
|
|
3721
4073
|
handle: StorageHandle;
|
|
3722
4074
|
initialFullPath: string;
|
|
@@ -3736,11 +4088,11 @@ type LsEntry = {
|
|
|
3736
4088
|
handle: ImportFileHandle;
|
|
3737
4089
|
};
|
|
3738
4090
|
type OpenDialogFilter = {
|
|
3739
|
-
/** Human-readable file type name */readonly name: string; /** File extensions */
|
|
4091
|
+
/** Human-readable file type name */ readonly name: string; /** File extensions */
|
|
3740
4092
|
readonly extensions: string[];
|
|
3741
4093
|
};
|
|
3742
4094
|
type OpenDialogOps = {
|
|
3743
|
-
/** 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. */
|
|
3744
4096
|
readonly buttonLabel?: string; /** Limits of file types user can select */
|
|
3745
4097
|
readonly filters?: OpenDialogFilter[];
|
|
3746
4098
|
};
|
|
@@ -3754,7 +4106,6 @@ type OpenMultipleFilesResponse = {
|
|
|
3754
4106
|
* the dialog, field will be undefined. */
|
|
3755
4107
|
readonly files?: LocalImportFileHandle[];
|
|
3756
4108
|
};
|
|
3757
|
-
/** Can be used to limit request for local file content to a certain bytes range */
|
|
3758
4109
|
interface LsDriver {
|
|
3759
4110
|
/** remote and local storages */
|
|
3760
4111
|
getStorageList(): Promise<StorageEntry[]>;
|
|
@@ -3777,9 +4128,8 @@ interface LsDriver {
|
|
|
3777
4128
|
/** Saves currently opened block webview as a PDF. */
|
|
3778
4129
|
exportToPdf?(): Promise<void>;
|
|
3779
4130
|
}
|
|
3780
|
-
/** Gets a file path from an import handle. */
|
|
3781
4131
|
//#endregion
|
|
3782
|
-
//#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
|
|
3783
4133
|
//#region src/columns/column_selector.d.ts
|
|
3784
4134
|
/** Relaxed string matcher input: plain string, single matcher, or array of mixed. */
|
|
3785
4135
|
type RelaxedStringMatchers = string | StringMatcher | (string | StringMatcher)[];
|
|
@@ -3806,7 +4156,7 @@ interface RelaxedColumnSelector {
|
|
|
3806
4156
|
/** One or many relaxed column selectors; normalizes to MultiColumnSelector[]. */
|
|
3807
4157
|
type ColumnSelector = RelaxedColumnSelector | RelaxedColumnSelector[];
|
|
3808
4158
|
//#endregion
|
|
3809
|
-
//#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
|
|
3810
4160
|
//#region src/drivers/columns/discover_columns_options.d.ts
|
|
3811
4161
|
/**
|
|
3812
4162
|
* Axis matching behaviour applied to `discover` requests.
|
|
@@ -3823,7 +4173,6 @@ type MatchingMode = "enrichment" | "related" | "exact";
|
|
|
3823
4173
|
* sandbox/host VM bridge unchanged.
|
|
3824
4174
|
*/
|
|
3825
4175
|
type AnchorEntry = PlRef | PObjectId | PColumnSpec | RelaxedColumnSelector;
|
|
3826
|
-
/** Qualifications needed for both already-integrated anchor columns and the hit column. */
|
|
3827
4176
|
/**
|
|
3828
4177
|
* Options object accepted by sandbox `discoverColumns()` and by the host
|
|
3829
4178
|
* `ColumnsCollectionDriver.discover` / `.filter` methods. Pure JSON shape —
|
|
@@ -3854,9 +4203,8 @@ type ColumnsDiscoverOptions = DiscoverColumnsOptions;
|
|
|
3854
4203
|
* of the filter surface — only `include` / `exclude` / `anchors`.
|
|
3855
4204
|
*/
|
|
3856
4205
|
type ColumnsFilterOptions = Omit<DiscoverColumnsOptions, "mode" | "maxHops">;
|
|
3857
|
-
/** Translate a {@link MatchingMode} into the boolean-flag form the spec driver consumes. */
|
|
3858
4206
|
//#endregion
|
|
3859
|
-
//#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
|
|
3860
4208
|
//#region src/columns/types.d.ts
|
|
3861
4209
|
/**
|
|
3862
4210
|
* Opaque sandbox/host accessor handle.
|
|
@@ -3936,15 +4284,8 @@ interface AccessorLike<Self extends AccessorLike<Self>> {
|
|
|
3936
4284
|
/** Decode the data payload as JSON. Returns `undefined` if no data. */
|
|
3937
4285
|
getDataAsJson<T = unknown>(): T | undefined;
|
|
3938
4286
|
}
|
|
3939
|
-
/**
|
|
3940
|
-
* One indexed column — the canonical record produced by every traversal.
|
|
3941
|
-
* Carries everything needed to read spec/data/status under a stable id.
|
|
3942
|
-
*
|
|
3943
|
-
* Generic over the accessor flavour so the same record shape works for both
|
|
3944
|
-
* the sandbox `TreeNodeAccessor` and the host `PlTreeNodeAccessor`.
|
|
3945
|
-
*/
|
|
3946
4287
|
//#endregion
|
|
3947
|
-
//#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
|
|
3948
4289
|
//#region src/drivers/columns/columns_collection_driver.d.ts
|
|
3949
4290
|
/**
|
|
3950
4291
|
* Opaque host-owned handle for a `ColumnsCollection` instance. Issued by
|
|
@@ -4056,9 +4397,9 @@ interface ColumnsCollectionDriver {
|
|
|
4056
4397
|
addSource(handle: CollectionHandle, sources: ReadonlyArray<SerializedColumnsSource>, host: ColumnsCollectionDriverHost): PoolEntry<CollectionHandle>;
|
|
4057
4398
|
discover(handle: CollectionHandle, options: ColumnsDiscoverOptions, host: ColumnsCollectionDriverHost): PoolEntry<CollectionHandle>;
|
|
4058
4399
|
filter(handle: CollectionHandle, options: ColumnsFilterOptions, host: ColumnsCollectionDriverHost): PoolEntry<CollectionHandle>;
|
|
4059
|
-
}
|
|
4400
|
+
}
|
|
4060
4401
|
//#endregion
|
|
4061
|
-
//#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
|
|
4062
4403
|
//#region src/services/service_types.d.ts
|
|
4063
4404
|
type ServiceTypesLike<Model = unknown, Ui = unknown, Kind extends ServiceType = ServiceType, ModelHost = Model, UiHost = Ui> = {
|
|
4064
4405
|
readonly __types?: {
|
|
@@ -4081,24 +4422,23 @@ interface ServiceDispatch {
|
|
|
4081
4422
|
}
|
|
4082
4423
|
type TServices = typeof Services;
|
|
4083
4424
|
type ExtractServiceName<T> = T extends Branded$1<infer N extends string, any> ? N : never;
|
|
4084
|
-
/** Model-side service interfaces keyed by service name literal. */
|
|
4085
4425
|
/** UI-side service interfaces keyed by service name literal. */
|
|
4086
|
-
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]>>; };
|
|
4087
4427
|
/** Map from Services keys to their unbranded string name literals. */
|
|
4088
|
-
type ServiceNameLiterals = { [K in keyof TServices]: ExtractServiceName<TServices[K]
|
|
4428
|
+
type ServiceNameLiterals = { [K in keyof TServices]: ExtractServiceName<TServices[K]>; };
|
|
4089
4429
|
/** Auto-derived requires* feature flags from Services keys. */
|
|
4090
|
-
type ServiceRequireFlags = { [K in keyof TServices as `requires${K & string}`]?: boolean };
|
|
4430
|
+
type ServiceRequireFlags = { [K in keyof TServices as `requires${K & string}`]?: boolean; };
|
|
4091
4431
|
//#endregion
|
|
4092
|
-
//#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
|
|
4093
4433
|
//#region src/services/service_declarations.d.ts
|
|
4094
4434
|
declare const Services: {
|
|
4095
4435
|
PFrameSpec: Branded$1<"pframeSpec", ServiceTypesLike<PFrameSpecDriver, PFrameSpecDriver, "wasm", PFrameSpecDriver, PFrameSpecDriver>>;
|
|
4096
4436
|
PFrame: Branded$1<"pframe", ServiceTypesLike<PFrameModelDriver<PColumn<string | PColumnValues | DataInfo<string>>>, PFrameDriver, "node", PFrameModelDriver<PColumn<string | PColumnValues | DataInfo<string>>>, PFrameDriver>>;
|
|
4097
4437
|
Dialog: Branded$1<"dialog", ServiceTypesLike<Record<string, never>, DialogService, "main", Record<string, never>, DialogService>>;
|
|
4098
4438
|
ColumnsCollection: Branded$1<"columnsCollection", ServiceTypesLike<ColumnsCollectionDriverModel, ColumnsCollectionDriverModel, "wasm", ColumnsCollectionDriver, ColumnsCollectionDriver>>;
|
|
4099
|
-
};
|
|
4439
|
+
};
|
|
4100
4440
|
//#endregion
|
|
4101
|
-
//#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
|
|
4102
4442
|
/**
|
|
4103
4443
|
* Known block flags. Flags are set during model compilation, see `BlockModel.create` for more details and for initial values.
|
|
4104
4444
|
*/
|
|
@@ -4110,13 +4450,8 @@ type BlockCodeKnownFeatureFlags = {
|
|
|
4110
4450
|
readonly requiresCreatePTable?: number;
|
|
4111
4451
|
readonly requiresPFramesVersion?: number;
|
|
4112
4452
|
} & ServiceRequireFlags;
|
|
4113
|
-
/**
|
|
4114
|
-
* Required PFrames version. Bump this in lockstep with the `@milaboratories/pframes-rs-*`
|
|
4115
|
-
* version in `pnpm-workspace.yaml` so blocks built against the new SDK refuse to load on
|
|
4116
|
-
* older desktop apps.
|
|
4117
|
-
*/
|
|
4118
4453
|
//#endregion
|
|
4119
|
-
//#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
|
|
4120
4455
|
//#region src/driver_kit.d.ts
|
|
4121
4456
|
/** Set of all drivers exposed in UI SDK via the platforma object. */
|
|
4122
4457
|
interface DriverKit {
|
|
@@ -4135,9 +4470,9 @@ interface DriverKit {
|
|
|
4135
4470
|
readonly lsDriver: LsDriver;
|
|
4136
4471
|
/** Driver allowing to interact with PFrames and PTables */
|
|
4137
4472
|
readonly pFrameDriver: PFrameDriver;
|
|
4138
|
-
}
|
|
4473
|
+
}
|
|
4139
4474
|
//#endregion
|
|
4140
|
-
//#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
|
|
4141
4476
|
type ResultOrError<S, F = Error> = {
|
|
4142
4477
|
value: S;
|
|
4143
4478
|
error?: undefined;
|
|
@@ -4145,7 +4480,7 @@ type ResultOrError<S, F = Error> = {
|
|
|
4145
4480
|
error: F;
|
|
4146
4481
|
};
|
|
4147
4482
|
//#endregion
|
|
4148
|
-
//#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
|
|
4149
4484
|
//#region src/utag.d.ts
|
|
4150
4485
|
/** Value returned for changing states supporting reactive listening for changes */
|
|
4151
4486
|
interface ValueWithUTag<V> {
|
|
@@ -4162,21 +4497,21 @@ interface ValueWithUTag<V> {
|
|
|
4162
4497
|
}
|
|
4163
4498
|
interface ValueWithUTagAndAuthor<V> extends ValueWithUTag<V> {
|
|
4164
4499
|
readonly author?: AuthorMarker;
|
|
4165
|
-
}
|
|
4500
|
+
}
|
|
4166
4501
|
//#endregion
|
|
4167
|
-
//#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
|
|
4168
4503
|
//#region src/block_state_patch.d.ts
|
|
4169
4504
|
/** Patch for the structural object */
|
|
4170
4505
|
type Patch<K, V> = {
|
|
4171
|
-
/** 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 */
|
|
4172
4507
|
readonly value: V;
|
|
4173
4508
|
};
|
|
4174
4509
|
/** Creates union type of all possible shallow patches for the given structure */
|
|
4175
|
-
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];
|
|
4176
4511
|
/** Patch for the BlockState, pushed by onStateUpdates method in SDK. */
|
|
4177
|
-
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>>;
|
|
4178
4513
|
//#endregion
|
|
4179
|
-
//#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
|
|
4180
4515
|
//#region src/plugin_handle.d.ts
|
|
4181
4516
|
/**
|
|
4182
4517
|
* Phantom-only base type for constraining PluginHandle's type parameter.
|
|
@@ -4196,16 +4531,14 @@ interface PluginFactoryLike<Data extends Record<string, unknown> = Record<string
|
|
|
4196
4531
|
uiServices: UiServices;
|
|
4197
4532
|
};
|
|
4198
4533
|
}
|
|
4199
|
-
/** Extract the Data type from a PluginFactoryLike phantom. */
|
|
4200
4534
|
/**
|
|
4201
4535
|
* Opaque handle for a plugin instance. Runtime value is the plugin instance ID string.
|
|
4202
4536
|
* Branded with factory phantom `F` for type-safe data/outputs extraction.
|
|
4203
4537
|
* Constrained with PluginFactoryLike (not PluginFactory) to avoid variance issues.
|
|
4204
4538
|
*/
|
|
4205
4539
|
type PluginHandle<F extends PluginFactoryLike = PluginFactoryLike> = Branded<string, F>;
|
|
4206
|
-
/** Construct the output key for a plugin output in the block outputs map. */
|
|
4207
4540
|
//#endregion
|
|
4208
|
-
//#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
|
|
4209
4542
|
/** Payload for storage mutation operations. SDK defines specific operations. */
|
|
4210
4543
|
type MutateStoragePayload<T = unknown> = {
|
|
4211
4544
|
operation: "update-block-data";
|
|
@@ -4215,15 +4548,8 @@ type MutateStoragePayload<T = unknown> = {
|
|
|
4215
4548
|
pluginId: PluginHandle;
|
|
4216
4549
|
value: unknown;
|
|
4217
4550
|
};
|
|
4218
|
-
/**
|
|
4219
|
-
* Updates the data in BlockStorage (immutable)
|
|
4220
|
-
*
|
|
4221
|
-
* @param storage - The current BlockStorage
|
|
4222
|
-
* @param payload - The update payload with operation and value
|
|
4223
|
-
* @returns A new BlockStorage with updated data
|
|
4224
|
-
*/
|
|
4225
4551
|
//#endregion
|
|
4226
|
-
//#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
|
|
4227
4553
|
/** Additional information that may alter lambda rendering procedure. */
|
|
4228
4554
|
type ConfigRenderLambdaFlags = {
|
|
4229
4555
|
/**
|
|
@@ -4252,15 +4578,14 @@ interface ConfigRenderLambda<Return = unknown> extends ConfigRenderLambdaFlags {
|
|
|
4252
4578
|
handle: string;
|
|
4253
4579
|
}
|
|
4254
4580
|
type ExtractFunctionHandleReturn<Func extends ConfigRenderLambda> = Func extends ConfigRenderLambda<infer Return> ? Return : never;
|
|
4255
|
-
/** Infers the output type from a TypedConfig or ConfigRenderLambda */
|
|
4256
4581
|
/** Maps lambda-only outputs configuration to inferred output types (for V3 blocks) */
|
|
4257
4582
|
type InferOutputsFromLambdas<OutputsCfg extends Record<string, ConfigRenderLambda>> = { [Key in keyof OutputsCfg]: OutputWithStatus<ExtractFunctionHandleReturn<OutputsCfg[Key]>> & {
|
|
4258
4583
|
__unwrap: OutputsCfg[Key] extends {
|
|
4259
4584
|
withStatus: true;
|
|
4260
4585
|
} ? false : true;
|
|
4261
|
-
} };
|
|
4586
|
+
}; };
|
|
4262
4587
|
//#endregion
|
|
4263
|
-
//#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
|
|
4264
4589
|
//#region src/block_api_v1.d.ts
|
|
4265
4590
|
/** Returned by state subscription methods to be able to cancel the subscription. */
|
|
4266
4591
|
type CancelSubscription = () => void;
|
|
@@ -4320,7 +4645,7 @@ interface BlockApiV1<Args = unknown, Outputs extends BlockOutputsBase = BlockOut
|
|
|
4320
4645
|
* Sets block navigation state.
|
|
4321
4646
|
* */
|
|
4322
4647
|
setNavigationState(state: NavigationState<Href>): Promise<void>;
|
|
4323
|
-
}
|
|
4648
|
+
}
|
|
4324
4649
|
//#endregion
|
|
4325
4650
|
//#region ../node_modules/.pnpm/fast-json-patch@3.1.1/node_modules/fast-json-patch/module/core.d.ts
|
|
4326
4651
|
declare type Operation = AddOperation<any> | RemoveOperation | ReplaceOperation<any> | MoveOperation | CopyOperation | TestOperation<any> | GetOperation<any>;
|
|
@@ -4355,7 +4680,7 @@ interface GetOperation<T> extends BaseOperation {
|
|
|
4355
4680
|
value: T;
|
|
4356
4681
|
}
|
|
4357
4682
|
//#endregion
|
|
4358
|
-
//#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
|
|
4359
4684
|
//#region src/block_api_v2.d.ts
|
|
4360
4685
|
/** Defines methods to read and write current block data. */
|
|
4361
4686
|
interface BlockApiV2<Args = unknown, Outputs extends BlockOutputsBase = BlockOutputsBase, UiState = unknown, Href extends `/${string}` = `/${string}`> {
|
|
@@ -4403,14 +4728,14 @@ interface BlockApiV2<Args = unknown, Outputs extends BlockOutputsBase = BlockOut
|
|
|
4403
4728
|
* Disposes the block API.
|
|
4404
4729
|
* */
|
|
4405
4730
|
dispose(): Promise<ResultOrError<void>>;
|
|
4406
|
-
}
|
|
4731
|
+
}
|
|
4407
4732
|
//#endregion
|
|
4408
|
-
//#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
|
|
4409
4734
|
type SdkInfo = {
|
|
4410
4735
|
readonly sdkVersion: string;
|
|
4411
4736
|
};
|
|
4412
4737
|
//#endregion
|
|
4413
|
-
//#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
|
|
4414
4739
|
//#region src/services/block_services.d.ts
|
|
4415
4740
|
/**
|
|
4416
4741
|
* Services required by all V3 blocks by default.
|
|
@@ -4427,14 +4752,14 @@ declare const BLOCK_SERVICE_FLAGS: {
|
|
|
4427
4752
|
};
|
|
4428
4753
|
type BlockServiceFlags = typeof BLOCK_SERVICE_FLAGS;
|
|
4429
4754
|
//#endregion
|
|
4430
|
-
//#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
|
|
4431
4756
|
//#region src/services/service_resolve.d.ts
|
|
4432
4757
|
type FlagToName<Flag extends string> = Flag extends `requires${infer K}` ? K extends keyof ServiceNameLiterals ? ServiceNameLiterals[K] : never : never;
|
|
4433
|
-
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}`];
|
|
4434
4759
|
type ResolveUiServices<Flags> = Pick<UiServices$1, RequiredServiceNames<Flags> & keyof UiServices$1>;
|
|
4435
|
-
type BlockDefaultUiServices = ResolveUiServices<BlockServiceFlags>;
|
|
4760
|
+
type BlockDefaultUiServices = ResolveUiServices<BlockServiceFlags>;
|
|
4436
4761
|
//#endregion
|
|
4437
|
-
//#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
|
|
4438
4763
|
/**
|
|
4439
4764
|
* Runtime definition for a single public output field.
|
|
4440
4765
|
* Stored in PluginModel and passed through BlockModelInfo to the UI layer.
|
|
@@ -4443,7 +4768,7 @@ type PublicOutputFieldDef = {
|
|
|
4443
4768
|
readonly getter: (data: unknown) => unknown;
|
|
4444
4769
|
};
|
|
4445
4770
|
//#endregion
|
|
4446
|
-
//#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
|
|
4447
4772
|
//#region src/block_api_v3.d.ts
|
|
4448
4773
|
/** Defines methods to read and write current block data. */
|
|
4449
4774
|
interface BlockApiV3<_Data = unknown, _Args = unknown, Outputs extends BlockOutputsBase = BlockOutputsBase, Href extends `/${string}` = `/${string}`> {
|
|
@@ -4472,9 +4797,9 @@ interface BlockApiV3<_Data = unknown, _Args = unknown, Outputs extends BlockOutp
|
|
|
4472
4797
|
* Disposes the block API.
|
|
4473
4798
|
* */
|
|
4474
4799
|
dispose(): Promise<ResultOrError<void>>;
|
|
4475
|
-
}
|
|
4800
|
+
}
|
|
4476
4801
|
//#endregion
|
|
4477
|
-
//#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
|
|
4478
4803
|
//#region src/platforma.d.ts
|
|
4479
4804
|
/** Defines all methods to interact with the platform environment from within a block UI. @deprecated */
|
|
4480
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 {
|
|
@@ -4515,29 +4840,48 @@ type InferOutputsType<Pl extends Platforma> = Pl extends Platforma<unknown, infe
|
|
|
4515
4840
|
type InferDataType<Pl extends Platforma> = Pl extends Platforma<unknown, Record<string, OutputWithStatus<unknown>>, infer Data> ? Data : never;
|
|
4516
4841
|
type InferHrefType<Pl extends Platforma> = Pl extends Platforma<unknown, BlockOutputsBase, unknown, infer Href> ? Href : never;
|
|
4517
4842
|
//#endregion
|
|
4518
|
-
//#region ../
|
|
4843
|
+
//#region ../kind/dist/types.d.ts
|
|
4519
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
|
+
*/
|
|
4520
4854
|
/** Receptor type. Same enum as sequence-properties to keep label conventions aligned. */
|
|
4521
4855
|
type WorkflowReceptor = "IG" | "TCRAB" | "TCRGD";
|
|
4522
4856
|
/**
|
|
4523
|
-
*
|
|
4524
|
-
*
|
|
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
|
|
4525
4875
|
* model is ESM-2; ignored for the single-checkpoint specialists.
|
|
4526
4876
|
*/
|
|
4527
4877
|
type Fidelity = "high" | "standard";
|
|
4528
4878
|
/**
|
|
4529
|
-
* User-facing embedding-model choice — the value of
|
|
4879
|
+
* User-facing embedding-model choice — the value of the model dropdown. A
|
|
4530
4880
|
* logical id; the workflow maps it (plus `Fidelity` for ESM-2) to a concrete
|
|
4531
|
-
* checkpoint `ModelTag`. The catalog and scope↔model compatibility live in
|
|
4532
|
-
* `compat.ts`.
|
|
4881
|
+
* checkpoint `ModelTag`. The catalog and scope↔model compatibility live in the
|
|
4882
|
+
* model package's `compat.ts`.
|
|
4533
4883
|
*/
|
|
4534
4884
|
type EmbeddingModelId = "esm2" | "ablang2" | "currab" | "vhhbert" | "h3berta" | "tcr-bert" | "peptideclm2" | "sceptr";
|
|
4535
|
-
/**
|
|
4536
|
-
* Checkpoint tag emitted on the `pl7.app/embedding/model` domain of every output
|
|
4537
|
-
* column (model provenance). ESM-2 splits by fidelity; specialists are 1:1 with
|
|
4538
|
-
* their `EmbeddingModelId`.
|
|
4539
|
-
*/
|
|
4540
|
-
type ModelTag = "esm2-650M" | "esm2-150M" | "ablang2" | "currab" | "vhhbert" | "h3berta" | "tcr-bert" | "peptideclm2" | "sceptr";
|
|
4541
4885
|
/** Embedding scope feature. `Fv` and `scFv` span/merge chains and carry no `chain`. */
|
|
4542
4886
|
type ScopeFeature = "peptide" | "CDR3" | "VDJRegion" | "Fv" | "scFv";
|
|
4543
4887
|
/**
|
|
@@ -4546,9 +4890,14 @@ type ScopeFeature = "peptide" | "CDR3" | "VDJRegion" | "Fv" | "scFv";
|
|
|
4546
4890
|
* for single-chain scopes, two (`[VH, VL]`) for the paired Fv scope. The column
|
|
4547
4891
|
* ids (and `isHeavy`/`receptor`) are snapshotted into `BlockData` on the user's
|
|
4548
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.
|
|
4549
4897
|
*/
|
|
4550
4898
|
type SelectedScope = {
|
|
4551
|
-
/** 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;
|
|
4552
4901
|
feature: ScopeFeature;
|
|
4553
4902
|
chain: "A" | "B" | "";
|
|
4554
4903
|
columns: SUniversalPColumnId[];
|
|
@@ -4557,13 +4906,17 @@ type SelectedScope = {
|
|
|
4557
4906
|
* True when this is an IG heavy chain (single-cell chain `A`, or bulk
|
|
4558
4907
|
* `IGHeavy`). Gates the heavy-only specialists (VHHBERT, H3BERTa) and the
|
|
4559
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.
|
|
4560
4913
|
*/
|
|
4561
4914
|
isHeavy: boolean;
|
|
4562
4915
|
/** Receptor of the input this scope came from, snapshotted for `data`-only
|
|
4563
|
-
* compatibility validation in the args lambda.
|
|
4564
|
-
receptor
|
|
4916
|
+
* compatibility validation in the args lambda. `"unknown"` when the producer
|
|
4917
|
+
* declares VDJ data without a receptor — see `ScopeReceptor`. */
|
|
4918
|
+
receptor: ScopeReceptor;
|
|
4565
4919
|
};
|
|
4566
|
-
/** A selectable scope. Alias of `SelectedScope` — the label lives on the base type. */
|
|
4567
4920
|
/**
|
|
4568
4921
|
* The single (sequence scope, model) selection the user assembles. `scope` and
|
|
4569
4922
|
* `model` are each undefined until picked — the UI fills one and bidirectionally
|
|
@@ -4573,15 +4926,20 @@ type SelectedScope = {
|
|
|
4573
4926
|
*/
|
|
4574
4927
|
type EmbeddingSelection = {
|
|
4575
4928
|
scope?: SelectedScope;
|
|
4576
|
-
model?: EmbeddingModelId;
|
|
4929
|
+
model?: EmbeddingModelId;
|
|
4930
|
+
/** ESM-2 fidelity; ignored for other models. */
|
|
4577
4931
|
fidelity?: Fidelity;
|
|
4578
4932
|
};
|
|
4933
|
+
//#endregion
|
|
4934
|
+
//#endregion
|
|
4935
|
+
//#region ../model/dist/types.d.ts
|
|
4936
|
+
//#region src/types.d.ts
|
|
4579
4937
|
/**
|
|
4580
|
-
*
|
|
4581
|
-
*
|
|
4582
|
-
*
|
|
4583
|
-
* 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`.
|
|
4584
4941
|
*/
|
|
4942
|
+
type ModelTag = "esm2-650M" | "esm2-150M" | "ablang2" | "currab" | "vhhbert" | "h3berta" | "tcr-bert" | "peptideclm2" | "sceptr";
|
|
4585
4943
|
/**
|
|
4586
4944
|
* V3 BlockData. The card list collapses to a single (scope, model) selection: the
|
|
4587
4945
|
* block embeds ONE combination per run. `embedding` is always present (init `{}`);
|
|
@@ -4589,26 +4947,28 @@ type EmbeddingSelection = {
|
|
|
4589
4947
|
* contract is unchanged.
|
|
4590
4948
|
*/
|
|
4591
4949
|
type BlockDataV3 = {
|
|
4592
|
-
inputAnchor?: PlRef;
|
|
4950
|
+
inputAnchor?: PlRef;
|
|
4951
|
+
/** The single (scope, model, fidelity?) selection the user assembles. */
|
|
4593
4952
|
embedding: EmbeddingSelection;
|
|
4594
4953
|
/**
|
|
4595
4954
|
* Init-guard: canonical id of the anchor whose default selection was last seeded.
|
|
4596
4955
|
* Prevents re-seeding on panel reopen / server patch; triggers a re-seed on
|
|
4597
4956
|
* input change.
|
|
4598
4957
|
*/
|
|
4599
|
-
embeddingInitializedForAnchor?: string;
|
|
4958
|
+
embeddingInitializedForAnchor?: string;
|
|
4959
|
+
/** Advanced resource overrides (GiB / cores); undefined → workflow sizes automatically from device + input. */
|
|
4600
4960
|
mem?: number;
|
|
4601
4961
|
cpu?: number;
|
|
4602
4962
|
defaultBlockLabel?: string;
|
|
4603
4963
|
};
|
|
4604
|
-
/** Current BlockData shape. */
|
|
4605
4964
|
/**
|
|
4606
4965
|
* One embedding task in the workflow input: a scope plus the model to embed it
|
|
4607
4966
|
* with (and ESM-2 fidelity, when applicable). Projected from `BlockData.embedding`.
|
|
4608
4967
|
*/
|
|
4609
4968
|
type EmbeddingTask = {
|
|
4610
4969
|
scope: SelectedScope;
|
|
4611
|
-
model: EmbeddingModelId;
|
|
4970
|
+
model: EmbeddingModelId;
|
|
4971
|
+
/** ESM-2 fidelity; undefined for other models. */
|
|
4612
4972
|
fidelity?: Fidelity;
|
|
4613
4973
|
};
|
|
4614
4974
|
/**
|
|
@@ -4618,11 +4978,13 @@ type EmbeddingTask = {
|
|
|
4618
4978
|
* `.argsValid()`).
|
|
4619
4979
|
*/
|
|
4620
4980
|
type BlockArgs = {
|
|
4621
|
-
inputAnchor: PlRef;
|
|
4622
|
-
|
|
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. */
|
|
4623
4985
|
mem?: number;
|
|
4624
4986
|
cpu?: number;
|
|
4625
|
-
};
|
|
4987
|
+
};
|
|
4626
4988
|
//#endregion
|
|
4627
4989
|
//#region ../model/dist/index.d.ts
|
|
4628
4990
|
//#region src/index.d.ts
|
|
@@ -4632,7 +4994,7 @@ declare const platforma: PlatformaExtended<PlatformaV3<BlockDataV3, BlockArgs, I
|
|
|
4632
4994
|
readonly __isRef: true;
|
|
4633
4995
|
readonly blockId: string;
|
|
4634
4996
|
readonly name: string;
|
|
4635
|
-
readonly requireEnrichments?: true | undefined
|
|
4997
|
+
readonly requireEnrichments?: true | undefined;
|
|
4636
4998
|
};
|
|
4637
4999
|
readonly label: string;
|
|
4638
5000
|
}[]>;
|
|
@@ -4645,7 +5007,7 @@ declare const platforma: PlatformaExtended<PlatformaV3<BlockDataV3, BlockArgs, I
|
|
|
4645
5007
|
columns: SUniversalPColumnId[];
|
|
4646
5008
|
label: string;
|
|
4647
5009
|
isHeavy: boolean;
|
|
4648
|
-
receptor:
|
|
5010
|
+
receptor: ScopeReceptor;
|
|
4649
5011
|
}[];
|
|
4650
5012
|
defaults: {
|
|
4651
5013
|
id: string;
|
|
@@ -4654,28 +5016,28 @@ declare const platforma: PlatformaExtended<PlatformaV3<BlockDataV3, BlockArgs, I
|
|
|
4654
5016
|
columns: SUniversalPColumnId[];
|
|
4655
5017
|
label: string;
|
|
4656
5018
|
isHeavy: boolean;
|
|
4657
|
-
receptor:
|
|
5019
|
+
receptor: ScopeReceptor;
|
|
4658
5020
|
}[];
|
|
4659
5021
|
forAnchor: string;
|
|
4660
|
-
receptor:
|
|
5022
|
+
receptor: ScopeReceptor;
|
|
4661
5023
|
paired: boolean;
|
|
4662
5024
|
} | undefined>;
|
|
4663
5025
|
} & {
|
|
4664
5026
|
stats: ConfigRenderLambda<{
|
|
4665
5027
|
device_used: "cpu" | "cuda" | "mps";
|
|
4666
|
-
device_requested?: "cpu" | "gpu"
|
|
5028
|
+
device_requested?: "cpu" | "gpu";
|
|
4667
5029
|
model: ModelTag;
|
|
4668
|
-
max_length?: number
|
|
5030
|
+
max_length?: number;
|
|
4669
5031
|
scopes: {
|
|
4670
5032
|
name: string;
|
|
4671
5033
|
feature: "peptide" | "CDR3" | "VDJRegion" | "Fv" | "scFv";
|
|
4672
5034
|
chain: "A" | "B" | "";
|
|
4673
5035
|
label: string;
|
|
4674
5036
|
model: ModelTag;
|
|
4675
|
-
max_length?: number
|
|
4676
|
-
n_entities?: number
|
|
4677
|
-
n_dropped_empty?: number
|
|
4678
|
-
n_truncated?: number | null
|
|
5037
|
+
max_length?: number;
|
|
5038
|
+
n_entities?: number;
|
|
5039
|
+
n_dropped_empty?: number;
|
|
5040
|
+
n_truncated?: number | null;
|
|
4679
5041
|
}[];
|
|
4680
5042
|
} | undefined>;
|
|
4681
5043
|
} & {
|