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