@atproto/lex-builder 0.0.5 → 0.0.6
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/CHANGELOG.md +10 -0
- package/dist/filtered-indexer.d.ts +18 -250
- package/dist/filtered-indexer.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/polyfill.d.ts +1 -0
- package/dist/polyfill.d.ts.map +1 -0
- package/dist/polyfill.js +7 -0
- package/dist/polyfill.js.map +1 -0
- package/package.json +3 -3
- package/src/index.ts +3 -0
- package/src/polyfill.ts +7 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @atproto/lex-builder
|
|
2
2
|
|
|
3
|
+
## 0.0.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#4413](https://github.com/bluesky-social/atproto/pull/4413) [`e39ca11`](https://github.com/bluesky-social/atproto/commit/e39ca114accac65070dcdd424a181821aad6d99d) Thanks [@matthieusieben](https://github.com/matthieusieben)! - Add support for NodeJS version <18.18, 19.x, <20.4 and 21.x
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`d551b0e`](https://github.com/bluesky-social/atproto/commit/d551b0e3527714c111c3ec6e4c90ad7f46369fab)]:
|
|
10
|
+
- @atproto/lex-document@0.0.5
|
|
11
|
+
- @atproto/lex-schema@0.0.4
|
|
12
|
+
|
|
3
13
|
## 0.0.5
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
@@ -860,6 +860,15 @@ export declare class FilteredIndexer implements LexiconIndexer, AsyncDisposable
|
|
|
860
860
|
description?: string | undefined;
|
|
861
861
|
} | {
|
|
862
862
|
type: "subscription";
|
|
863
|
+
message: {
|
|
864
|
+
schema: {
|
|
865
|
+
type: "union";
|
|
866
|
+
refs: string[];
|
|
867
|
+
closed?: boolean | undefined;
|
|
868
|
+
description?: string | undefined;
|
|
869
|
+
};
|
|
870
|
+
description?: string | undefined;
|
|
871
|
+
};
|
|
863
872
|
description?: string | undefined;
|
|
864
873
|
parameters?: {
|
|
865
874
|
type: "params";
|
|
@@ -923,131 +932,6 @@ export declare class FilteredIndexer implements LexiconIndexer, AsyncDisposable
|
|
|
923
932
|
required?: string[] | undefined;
|
|
924
933
|
description?: string | undefined;
|
|
925
934
|
} | undefined;
|
|
926
|
-
message?: {
|
|
927
|
-
description?: string | undefined;
|
|
928
|
-
schema?: {
|
|
929
|
-
type: "ref";
|
|
930
|
-
ref: string;
|
|
931
|
-
description?: string | undefined;
|
|
932
|
-
} | {
|
|
933
|
-
type: "union";
|
|
934
|
-
refs: string[];
|
|
935
|
-
closed?: boolean | undefined;
|
|
936
|
-
description?: string | undefined;
|
|
937
|
-
} | {
|
|
938
|
-
type: "object";
|
|
939
|
-
properties: import("@atproto/lex-schema").DictSchemaOutput<import("@atproto/lex-schema").StringSchema<{}>, import("@atproto/lex-schema").DiscriminatedUnionSchema<"type", readonly [import("@atproto/lex-schema").ObjectSchema<{
|
|
940
|
-
readonly type: import("@atproto/lex-schema").LiteralSchema<"boolean">;
|
|
941
|
-
readonly default: import("@atproto/lex-schema").OptionalSchema<boolean>;
|
|
942
|
-
readonly const: import("@atproto/lex-schema").OptionalSchema<boolean>;
|
|
943
|
-
readonly description: import("@atproto/lex-schema").OptionalSchema<string>;
|
|
944
|
-
}>, import("@atproto/lex-schema").ObjectSchema<{
|
|
945
|
-
readonly type: import("@atproto/lex-schema").LiteralSchema<"integer">;
|
|
946
|
-
readonly default: import("@atproto/lex-schema").OptionalSchema<number>;
|
|
947
|
-
readonly minimum: import("@atproto/lex-schema").OptionalSchema<number>;
|
|
948
|
-
readonly maximum: import("@atproto/lex-schema").OptionalSchema<number>;
|
|
949
|
-
readonly enum: import("@atproto/lex-schema").OptionalSchema<number[]>;
|
|
950
|
-
readonly const: import("@atproto/lex-schema").OptionalSchema<number>;
|
|
951
|
-
readonly description: import("@atproto/lex-schema").OptionalSchema<string>;
|
|
952
|
-
}>, import("@atproto/lex-schema").ObjectSchema<{
|
|
953
|
-
readonly type: import("@atproto/lex-schema").LiteralSchema<"string">;
|
|
954
|
-
readonly format: import("@atproto/lex-schema").OptionalSchema<"datetime" | "uri" | "at-uri" | "did" | "handle" | "at-identifier" | "nsid" | "cid" | "language" | "tid" | "record-key">;
|
|
955
|
-
readonly default: import("@atproto/lex-schema").OptionalSchema<string>;
|
|
956
|
-
readonly minLength: import("@atproto/lex-schema").OptionalSchema<number>;
|
|
957
|
-
readonly maxLength: import("@atproto/lex-schema").OptionalSchema<number>;
|
|
958
|
-
readonly minGraphemes: import("@atproto/lex-schema").OptionalSchema<number>;
|
|
959
|
-
readonly maxGraphemes: import("@atproto/lex-schema").OptionalSchema<number>;
|
|
960
|
-
readonly enum: import("@atproto/lex-schema").OptionalSchema<string[]>;
|
|
961
|
-
readonly const: import("@atproto/lex-schema").OptionalSchema<string>;
|
|
962
|
-
readonly knownValues: import("@atproto/lex-schema").OptionalSchema<string[]>;
|
|
963
|
-
readonly description: import("@atproto/lex-schema").OptionalSchema<string>;
|
|
964
|
-
}>, import("@atproto/lex-schema").ObjectSchema<{
|
|
965
|
-
readonly type: import("@atproto/lex-schema").LiteralSchema<"bytes">;
|
|
966
|
-
readonly maxLength: import("@atproto/lex-schema").OptionalSchema<number>;
|
|
967
|
-
readonly minLength: import("@atproto/lex-schema").OptionalSchema<number>;
|
|
968
|
-
readonly description: import("@atproto/lex-schema").OptionalSchema<string>;
|
|
969
|
-
}>, import("@atproto/lex-schema").ObjectSchema<{
|
|
970
|
-
readonly type: import("@atproto/lex-schema").LiteralSchema<"cid-link">;
|
|
971
|
-
readonly description: import("@atproto/lex-schema").OptionalSchema<string>;
|
|
972
|
-
}>, import("@atproto/lex-schema").ObjectSchema<{
|
|
973
|
-
readonly type: import("@atproto/lex-schema").LiteralSchema<"blob">;
|
|
974
|
-
readonly accept: import("@atproto/lex-schema").OptionalSchema<string[]>;
|
|
975
|
-
readonly maxSize: import("@atproto/lex-schema").OptionalSchema<number>;
|
|
976
|
-
readonly description: import("@atproto/lex-schema").OptionalSchema<string>;
|
|
977
|
-
}>, import("@atproto/lex-schema").ObjectSchema<{
|
|
978
|
-
readonly type: import("@atproto/lex-schema").LiteralSchema<"unknown">;
|
|
979
|
-
readonly description: import("@atproto/lex-schema").OptionalSchema<string>;
|
|
980
|
-
}>, import("@atproto/lex-schema").ObjectSchema<{
|
|
981
|
-
readonly type: import("@atproto/lex-schema").LiteralSchema<"ref">;
|
|
982
|
-
readonly ref: import("@atproto/lex-schema").StringSchema<{}>;
|
|
983
|
-
readonly description: import("@atproto/lex-schema").OptionalSchema<string>;
|
|
984
|
-
}>, import("@atproto/lex-schema").ObjectSchema<{
|
|
985
|
-
readonly type: import("@atproto/lex-schema").LiteralSchema<"union">;
|
|
986
|
-
readonly refs: import("@atproto/lex-schema").ArraySchema<import("@atproto/lex-schema").StringSchema<{}>>;
|
|
987
|
-
readonly closed: import("@atproto/lex-schema").OptionalSchema<boolean>;
|
|
988
|
-
readonly description: import("@atproto/lex-schema").OptionalSchema<string>;
|
|
989
|
-
}>, import("@atproto/lex-schema").ObjectSchema<{
|
|
990
|
-
readonly type: import("@atproto/lex-schema").LiteralSchema<"array">;
|
|
991
|
-
readonly items: import("@atproto/lex-schema").DiscriminatedUnionSchema<"type", readonly [import("@atproto/lex-schema").ObjectSchema<{
|
|
992
|
-
readonly type: import("@atproto/lex-schema").LiteralSchema<"boolean">;
|
|
993
|
-
readonly default: import("@atproto/lex-schema").OptionalSchema<boolean>;
|
|
994
|
-
readonly const: import("@atproto/lex-schema").OptionalSchema<boolean>;
|
|
995
|
-
readonly description: import("@atproto/lex-schema").OptionalSchema<string>;
|
|
996
|
-
}>, import("@atproto/lex-schema").ObjectSchema<{
|
|
997
|
-
readonly type: import("@atproto/lex-schema").LiteralSchema<"integer">;
|
|
998
|
-
readonly default: import("@atproto/lex-schema").OptionalSchema<number>;
|
|
999
|
-
readonly minimum: import("@atproto/lex-schema").OptionalSchema<number>;
|
|
1000
|
-
readonly maximum: import("@atproto/lex-schema").OptionalSchema<number>;
|
|
1001
|
-
readonly enum: import("@atproto/lex-schema").OptionalSchema<number[]>;
|
|
1002
|
-
readonly const: import("@atproto/lex-schema").OptionalSchema<number>;
|
|
1003
|
-
readonly description: import("@atproto/lex-schema").OptionalSchema<string>;
|
|
1004
|
-
}>, import("@atproto/lex-schema").ObjectSchema<{
|
|
1005
|
-
readonly type: import("@atproto/lex-schema").LiteralSchema<"string">;
|
|
1006
|
-
readonly format: import("@atproto/lex-schema").OptionalSchema<"datetime" | "uri" | "at-uri" | "did" | "handle" | "at-identifier" | "nsid" | "cid" | "language" | "tid" | "record-key">;
|
|
1007
|
-
readonly default: import("@atproto/lex-schema").OptionalSchema<string>;
|
|
1008
|
-
readonly minLength: import("@atproto/lex-schema").OptionalSchema<number>;
|
|
1009
|
-
readonly maxLength: import("@atproto/lex-schema").OptionalSchema<number>;
|
|
1010
|
-
readonly minGraphemes: import("@atproto/lex-schema").OptionalSchema<number>;
|
|
1011
|
-
readonly maxGraphemes: import("@atproto/lex-schema").OptionalSchema<number>;
|
|
1012
|
-
readonly enum: import("@atproto/lex-schema").OptionalSchema<string[]>;
|
|
1013
|
-
readonly const: import("@atproto/lex-schema").OptionalSchema<string>;
|
|
1014
|
-
readonly knownValues: import("@atproto/lex-schema").OptionalSchema<string[]>;
|
|
1015
|
-
readonly description: import("@atproto/lex-schema").OptionalSchema<string>;
|
|
1016
|
-
}>, import("@atproto/lex-schema").ObjectSchema<{
|
|
1017
|
-
readonly type: import("@atproto/lex-schema").LiteralSchema<"bytes">;
|
|
1018
|
-
readonly maxLength: import("@atproto/lex-schema").OptionalSchema<number>;
|
|
1019
|
-
readonly minLength: import("@atproto/lex-schema").OptionalSchema<number>;
|
|
1020
|
-
readonly description: import("@atproto/lex-schema").OptionalSchema<string>;
|
|
1021
|
-
}>, import("@atproto/lex-schema").ObjectSchema<{
|
|
1022
|
-
readonly type: import("@atproto/lex-schema").LiteralSchema<"cid-link">;
|
|
1023
|
-
readonly description: import("@atproto/lex-schema").OptionalSchema<string>;
|
|
1024
|
-
}>, import("@atproto/lex-schema").ObjectSchema<{
|
|
1025
|
-
readonly type: import("@atproto/lex-schema").LiteralSchema<"blob">;
|
|
1026
|
-
readonly accept: import("@atproto/lex-schema").OptionalSchema<string[]>;
|
|
1027
|
-
readonly maxSize: import("@atproto/lex-schema").OptionalSchema<number>;
|
|
1028
|
-
readonly description: import("@atproto/lex-schema").OptionalSchema<string>;
|
|
1029
|
-
}>, import("@atproto/lex-schema").ObjectSchema<{
|
|
1030
|
-
readonly type: import("@atproto/lex-schema").LiteralSchema<"unknown">;
|
|
1031
|
-
readonly description: import("@atproto/lex-schema").OptionalSchema<string>;
|
|
1032
|
-
}>, import("@atproto/lex-schema").ObjectSchema<{
|
|
1033
|
-
readonly type: import("@atproto/lex-schema").LiteralSchema<"ref">;
|
|
1034
|
-
readonly ref: import("@atproto/lex-schema").StringSchema<{}>;
|
|
1035
|
-
readonly description: import("@atproto/lex-schema").OptionalSchema<string>;
|
|
1036
|
-
}>, import("@atproto/lex-schema").ObjectSchema<{
|
|
1037
|
-
readonly type: import("@atproto/lex-schema").LiteralSchema<"union">;
|
|
1038
|
-
readonly refs: import("@atproto/lex-schema").ArraySchema<import("@atproto/lex-schema").StringSchema<{}>>;
|
|
1039
|
-
readonly closed: import("@atproto/lex-schema").OptionalSchema<boolean>;
|
|
1040
|
-
readonly description: import("@atproto/lex-schema").OptionalSchema<string>;
|
|
1041
|
-
}>]>;
|
|
1042
|
-
readonly minLength: import("@atproto/lex-schema").OptionalSchema<number>;
|
|
1043
|
-
readonly maxLength: import("@atproto/lex-schema").OptionalSchema<number>;
|
|
1044
|
-
readonly description: import("@atproto/lex-schema").OptionalSchema<string>;
|
|
1045
|
-
}>]>>;
|
|
1046
|
-
required?: string[] | undefined;
|
|
1047
|
-
nullable?: string[] | undefined;
|
|
1048
|
-
description?: string | undefined;
|
|
1049
|
-
} | undefined;
|
|
1050
|
-
} | undefined;
|
|
1051
935
|
errors?: {
|
|
1052
936
|
name: string;
|
|
1053
937
|
description?: string | undefined;
|
|
@@ -2122,6 +2006,15 @@ export declare class FilteredIndexer implements LexiconIndexer, AsyncDisposable
|
|
|
2122
2006
|
description?: string | undefined;
|
|
2123
2007
|
} | {
|
|
2124
2008
|
type: "subscription";
|
|
2009
|
+
message: {
|
|
2010
|
+
schema: {
|
|
2011
|
+
type: "union";
|
|
2012
|
+
refs: string[];
|
|
2013
|
+
closed?: boolean | undefined;
|
|
2014
|
+
description?: string | undefined;
|
|
2015
|
+
};
|
|
2016
|
+
description?: string | undefined;
|
|
2017
|
+
};
|
|
2125
2018
|
description?: string | undefined;
|
|
2126
2019
|
parameters?: {
|
|
2127
2020
|
type: "params";
|
|
@@ -2185,131 +2078,6 @@ export declare class FilteredIndexer implements LexiconIndexer, AsyncDisposable
|
|
|
2185
2078
|
required?: string[] | undefined;
|
|
2186
2079
|
description?: string | undefined;
|
|
2187
2080
|
} | undefined;
|
|
2188
|
-
message?: {
|
|
2189
|
-
description?: string | undefined;
|
|
2190
|
-
schema?: {
|
|
2191
|
-
type: "ref";
|
|
2192
|
-
ref: string;
|
|
2193
|
-
description?: string | undefined;
|
|
2194
|
-
} | {
|
|
2195
|
-
type: "union";
|
|
2196
|
-
refs: string[];
|
|
2197
|
-
closed?: boolean | undefined;
|
|
2198
|
-
description?: string | undefined;
|
|
2199
|
-
} | {
|
|
2200
|
-
type: "object";
|
|
2201
|
-
properties: import("@atproto/lex-schema").DictSchemaOutput<import("@atproto/lex-schema").StringSchema<{}>, import("@atproto/lex-schema").DiscriminatedUnionSchema<"type", readonly [import("@atproto/lex-schema").ObjectSchema<{
|
|
2202
|
-
readonly type: import("@atproto/lex-schema").LiteralSchema<"boolean">;
|
|
2203
|
-
readonly default: import("@atproto/lex-schema").OptionalSchema<boolean>;
|
|
2204
|
-
readonly const: import("@atproto/lex-schema").OptionalSchema<boolean>;
|
|
2205
|
-
readonly description: import("@atproto/lex-schema").OptionalSchema<string>;
|
|
2206
|
-
}>, import("@atproto/lex-schema").ObjectSchema<{
|
|
2207
|
-
readonly type: import("@atproto/lex-schema").LiteralSchema<"integer">;
|
|
2208
|
-
readonly default: import("@atproto/lex-schema").OptionalSchema<number>;
|
|
2209
|
-
readonly minimum: import("@atproto/lex-schema").OptionalSchema<number>;
|
|
2210
|
-
readonly maximum: import("@atproto/lex-schema").OptionalSchema<number>;
|
|
2211
|
-
readonly enum: import("@atproto/lex-schema").OptionalSchema<number[]>;
|
|
2212
|
-
readonly const: import("@atproto/lex-schema").OptionalSchema<number>;
|
|
2213
|
-
readonly description: import("@atproto/lex-schema").OptionalSchema<string>;
|
|
2214
|
-
}>, import("@atproto/lex-schema").ObjectSchema<{
|
|
2215
|
-
readonly type: import("@atproto/lex-schema").LiteralSchema<"string">;
|
|
2216
|
-
readonly format: import("@atproto/lex-schema").OptionalSchema<"datetime" | "uri" | "at-uri" | "did" | "handle" | "at-identifier" | "nsid" | "cid" | "language" | "tid" | "record-key">;
|
|
2217
|
-
readonly default: import("@atproto/lex-schema").OptionalSchema<string>;
|
|
2218
|
-
readonly minLength: import("@atproto/lex-schema").OptionalSchema<number>;
|
|
2219
|
-
readonly maxLength: import("@atproto/lex-schema").OptionalSchema<number>;
|
|
2220
|
-
readonly minGraphemes: import("@atproto/lex-schema").OptionalSchema<number>;
|
|
2221
|
-
readonly maxGraphemes: import("@atproto/lex-schema").OptionalSchema<number>;
|
|
2222
|
-
readonly enum: import("@atproto/lex-schema").OptionalSchema<string[]>;
|
|
2223
|
-
readonly const: import("@atproto/lex-schema").OptionalSchema<string>;
|
|
2224
|
-
readonly knownValues: import("@atproto/lex-schema").OptionalSchema<string[]>;
|
|
2225
|
-
readonly description: import("@atproto/lex-schema").OptionalSchema<string>;
|
|
2226
|
-
}>, import("@atproto/lex-schema").ObjectSchema<{
|
|
2227
|
-
readonly type: import("@atproto/lex-schema").LiteralSchema<"bytes">;
|
|
2228
|
-
readonly maxLength: import("@atproto/lex-schema").OptionalSchema<number>;
|
|
2229
|
-
readonly minLength: import("@atproto/lex-schema").OptionalSchema<number>;
|
|
2230
|
-
readonly description: import("@atproto/lex-schema").OptionalSchema<string>;
|
|
2231
|
-
}>, import("@atproto/lex-schema").ObjectSchema<{
|
|
2232
|
-
readonly type: import("@atproto/lex-schema").LiteralSchema<"cid-link">;
|
|
2233
|
-
readonly description: import("@atproto/lex-schema").OptionalSchema<string>;
|
|
2234
|
-
}>, import("@atproto/lex-schema").ObjectSchema<{
|
|
2235
|
-
readonly type: import("@atproto/lex-schema").LiteralSchema<"blob">;
|
|
2236
|
-
readonly accept: import("@atproto/lex-schema").OptionalSchema<string[]>;
|
|
2237
|
-
readonly maxSize: import("@atproto/lex-schema").OptionalSchema<number>;
|
|
2238
|
-
readonly description: import("@atproto/lex-schema").OptionalSchema<string>;
|
|
2239
|
-
}>, import("@atproto/lex-schema").ObjectSchema<{
|
|
2240
|
-
readonly type: import("@atproto/lex-schema").LiteralSchema<"unknown">;
|
|
2241
|
-
readonly description: import("@atproto/lex-schema").OptionalSchema<string>;
|
|
2242
|
-
}>, import("@atproto/lex-schema").ObjectSchema<{
|
|
2243
|
-
readonly type: import("@atproto/lex-schema").LiteralSchema<"ref">;
|
|
2244
|
-
readonly ref: import("@atproto/lex-schema").StringSchema<{}>;
|
|
2245
|
-
readonly description: import("@atproto/lex-schema").OptionalSchema<string>;
|
|
2246
|
-
}>, import("@atproto/lex-schema").ObjectSchema<{
|
|
2247
|
-
readonly type: import("@atproto/lex-schema").LiteralSchema<"union">;
|
|
2248
|
-
readonly refs: import("@atproto/lex-schema").ArraySchema<import("@atproto/lex-schema").StringSchema<{}>>;
|
|
2249
|
-
readonly closed: import("@atproto/lex-schema").OptionalSchema<boolean>;
|
|
2250
|
-
readonly description: import("@atproto/lex-schema").OptionalSchema<string>;
|
|
2251
|
-
}>, import("@atproto/lex-schema").ObjectSchema<{
|
|
2252
|
-
readonly type: import("@atproto/lex-schema").LiteralSchema<"array">;
|
|
2253
|
-
readonly items: import("@atproto/lex-schema").DiscriminatedUnionSchema<"type", readonly [import("@atproto/lex-schema").ObjectSchema<{
|
|
2254
|
-
readonly type: import("@atproto/lex-schema").LiteralSchema<"boolean">;
|
|
2255
|
-
readonly default: import("@atproto/lex-schema").OptionalSchema<boolean>;
|
|
2256
|
-
readonly const: import("@atproto/lex-schema").OptionalSchema<boolean>;
|
|
2257
|
-
readonly description: import("@atproto/lex-schema").OptionalSchema<string>;
|
|
2258
|
-
}>, import("@atproto/lex-schema").ObjectSchema<{
|
|
2259
|
-
readonly type: import("@atproto/lex-schema").LiteralSchema<"integer">;
|
|
2260
|
-
readonly default: import("@atproto/lex-schema").OptionalSchema<number>;
|
|
2261
|
-
readonly minimum: import("@atproto/lex-schema").OptionalSchema<number>;
|
|
2262
|
-
readonly maximum: import("@atproto/lex-schema").OptionalSchema<number>;
|
|
2263
|
-
readonly enum: import("@atproto/lex-schema").OptionalSchema<number[]>;
|
|
2264
|
-
readonly const: import("@atproto/lex-schema").OptionalSchema<number>;
|
|
2265
|
-
readonly description: import("@atproto/lex-schema").OptionalSchema<string>;
|
|
2266
|
-
}>, import("@atproto/lex-schema").ObjectSchema<{
|
|
2267
|
-
readonly type: import("@atproto/lex-schema").LiteralSchema<"string">;
|
|
2268
|
-
readonly format: import("@atproto/lex-schema").OptionalSchema<"datetime" | "uri" | "at-uri" | "did" | "handle" | "at-identifier" | "nsid" | "cid" | "language" | "tid" | "record-key">;
|
|
2269
|
-
readonly default: import("@atproto/lex-schema").OptionalSchema<string>;
|
|
2270
|
-
readonly minLength: import("@atproto/lex-schema").OptionalSchema<number>;
|
|
2271
|
-
readonly maxLength: import("@atproto/lex-schema").OptionalSchema<number>;
|
|
2272
|
-
readonly minGraphemes: import("@atproto/lex-schema").OptionalSchema<number>;
|
|
2273
|
-
readonly maxGraphemes: import("@atproto/lex-schema").OptionalSchema<number>;
|
|
2274
|
-
readonly enum: import("@atproto/lex-schema").OptionalSchema<string[]>;
|
|
2275
|
-
readonly const: import("@atproto/lex-schema").OptionalSchema<string>;
|
|
2276
|
-
readonly knownValues: import("@atproto/lex-schema").OptionalSchema<string[]>;
|
|
2277
|
-
readonly description: import("@atproto/lex-schema").OptionalSchema<string>;
|
|
2278
|
-
}>, import("@atproto/lex-schema").ObjectSchema<{
|
|
2279
|
-
readonly type: import("@atproto/lex-schema").LiteralSchema<"bytes">;
|
|
2280
|
-
readonly maxLength: import("@atproto/lex-schema").OptionalSchema<number>;
|
|
2281
|
-
readonly minLength: import("@atproto/lex-schema").OptionalSchema<number>;
|
|
2282
|
-
readonly description: import("@atproto/lex-schema").OptionalSchema<string>;
|
|
2283
|
-
}>, import("@atproto/lex-schema").ObjectSchema<{
|
|
2284
|
-
readonly type: import("@atproto/lex-schema").LiteralSchema<"cid-link">;
|
|
2285
|
-
readonly description: import("@atproto/lex-schema").OptionalSchema<string>;
|
|
2286
|
-
}>, import("@atproto/lex-schema").ObjectSchema<{
|
|
2287
|
-
readonly type: import("@atproto/lex-schema").LiteralSchema<"blob">;
|
|
2288
|
-
readonly accept: import("@atproto/lex-schema").OptionalSchema<string[]>;
|
|
2289
|
-
readonly maxSize: import("@atproto/lex-schema").OptionalSchema<number>;
|
|
2290
|
-
readonly description: import("@atproto/lex-schema").OptionalSchema<string>;
|
|
2291
|
-
}>, import("@atproto/lex-schema").ObjectSchema<{
|
|
2292
|
-
readonly type: import("@atproto/lex-schema").LiteralSchema<"unknown">;
|
|
2293
|
-
readonly description: import("@atproto/lex-schema").OptionalSchema<string>;
|
|
2294
|
-
}>, import("@atproto/lex-schema").ObjectSchema<{
|
|
2295
|
-
readonly type: import("@atproto/lex-schema").LiteralSchema<"ref">;
|
|
2296
|
-
readonly ref: import("@atproto/lex-schema").StringSchema<{}>;
|
|
2297
|
-
readonly description: import("@atproto/lex-schema").OptionalSchema<string>;
|
|
2298
|
-
}>, import("@atproto/lex-schema").ObjectSchema<{
|
|
2299
|
-
readonly type: import("@atproto/lex-schema").LiteralSchema<"union">;
|
|
2300
|
-
readonly refs: import("@atproto/lex-schema").ArraySchema<import("@atproto/lex-schema").StringSchema<{}>>;
|
|
2301
|
-
readonly closed: import("@atproto/lex-schema").OptionalSchema<boolean>;
|
|
2302
|
-
readonly description: import("@atproto/lex-schema").OptionalSchema<string>;
|
|
2303
|
-
}>]>;
|
|
2304
|
-
readonly minLength: import("@atproto/lex-schema").OptionalSchema<number>;
|
|
2305
|
-
readonly maxLength: import("@atproto/lex-schema").OptionalSchema<number>;
|
|
2306
|
-
readonly description: import("@atproto/lex-schema").OptionalSchema<string>;
|
|
2307
|
-
}>]>>;
|
|
2308
|
-
required?: string[] | undefined;
|
|
2309
|
-
nullable?: string[] | undefined;
|
|
2310
|
-
description?: string | undefined;
|
|
2311
|
-
} | undefined;
|
|
2312
|
-
} | undefined;
|
|
2313
2081
|
errors?: {
|
|
2314
2082
|
name: string;
|
|
2315
2083
|
description?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filtered-indexer.d.ts","sourceRoot":"","sources":["../src/filtered-indexer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AACvE,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAEpC;;;;;GAKG;AACH,qBAAa,eAAgB,YAAW,cAAc,EAAE,eAAe;IAInE,QAAQ,CAAC,OAAO,EAAE,cAAc,GAAG,aAAa,CAAC,eAAe,CAAC;IACjE,QAAQ,CAAC,MAAM,EAAE,MAAM;IAJzB,SAAS,CAAC,QAAQ,CAAC,QAAQ,cAAoB;gBAGpC,OAAO,EAAE,cAAc,GAAG,aAAa,CAAC,eAAe,CAAC,EACxD,MAAM,EAAE,MAAM;IAGnB,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC;IAKxC,CA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAAo+H,CAAC;+BAAmD,CAAC;;;;+BAAiI,CAAC;;;;;;;;;;;;;;;;;;;;;;;IAJvplL,CAAC,MAAM,CAAC,YAAY,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC;CAG7C"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,eAAe,CAAA;AAEtB,OAAO,EAEL,qBAAqB,EACrB,iBAAiB,EACjB,qBAAqB,EACtB,MAAM,kBAAkB,CAAA;AAEzB,cAAc,kBAAkB,CAAA;AAChC,cAAc,gCAAgC,CAAA;AAE9C,MAAM,MAAM,qBAAqB,GAAG,iBAAiB,GACnD,qBAAqB,GACrB,qBAAqB,CAAA;AAEvB,wBAAsB,KAAK,CAAC,OAAO,EAAE,qBAAqB,iBAIzD"}
|
package/dist/index.js
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.build = build;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
+
// Must be first
|
|
6
|
+
require("./polyfill.js");
|
|
5
7
|
const lex_builder_js_1 = require("./lex-builder.js");
|
|
6
8
|
tslib_1.__exportStar(require("./lex-builder.js"), exports);
|
|
7
9
|
tslib_1.__exportStar(require("./lexicon-directory-indexer.js"), exports);
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AAiBA,sBAIC;;AArBD,gBAAgB;AAChB,yBAAsB;AAEtB,qDAKyB;AAEzB,2DAAgC;AAChC,yEAA8C;AAMvC,KAAK,UAAU,KAAK,CAAC,OAA8B;IACxD,MAAM,OAAO,GAAG,IAAI,2BAAU,CAAC,OAAO,CAAC,CAAA;IACvC,MAAM,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;IAC3B,MAAM,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;AAC7B,CAAC","sourcesContent":["// Must be first\nimport './polyfill.js'\n\nimport {\n LexBuilder,\n LexBuilderLoadOptions,\n LexBuilderOptions,\n LexBuilderSaveOptions,\n} from './lex-builder.js'\n\nexport * from './lex-builder.js'\nexport * from './lexicon-directory-indexer.js'\n\nexport type TsProjectBuildOptions = LexBuilderOptions &\n LexBuilderLoadOptions &\n LexBuilderSaveOptions\n\nexport async function build(options: TsProjectBuildOptions) {\n const builder = new LexBuilder(options)\n await builder.load(options)\n await builder.save(options)\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=polyfill.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"polyfill.d.ts","sourceRoot":"","sources":["../src/polyfill.ts"],"names":[],"mappings":""}
|
package/dist/polyfill.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Node <18.18, 19.x, <20.4 and 21.x do not have these symbols defined
|
|
3
|
+
// @ts-expect-error
|
|
4
|
+
Symbol.asyncDispose ??= Symbol.for('nodejs.asyncDispose');
|
|
5
|
+
// @ts-expect-error
|
|
6
|
+
Symbol.dispose ??= Symbol.for('nodejs.dispose');
|
|
7
|
+
//# sourceMappingURL=polyfill.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"polyfill.js","sourceRoot":"","sources":["../src/polyfill.ts"],"names":[],"mappings":";AAAA,sEAAsE;AAEtE,mBAAmB;AACnB,MAAM,CAAC,YAAY,KAAK,MAAM,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAA;AAEzD,mBAAmB;AACnB,MAAM,CAAC,OAAO,KAAK,MAAM,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAA","sourcesContent":["// Node <18.18, 19.x, <20.4 and 21.x do not have these symbols defined\n\n// @ts-expect-error\nSymbol.asyncDispose ??= Symbol.for('nodejs.asyncDispose')\n\n// @ts-expect-error\nSymbol.dispose ??= Symbol.for('nodejs.dispose')\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atproto/lex-builder",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "TypeScript schema builder for AT Lexicons",
|
|
6
6
|
"keywords": [
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"prettier": "^3.2.5",
|
|
40
40
|
"ts-morph": "^27.0.0",
|
|
41
41
|
"tslib": "^2.8.1",
|
|
42
|
-
"@atproto/lex-document": "0.0.
|
|
43
|
-
"@atproto/lex-schema": "0.0.
|
|
42
|
+
"@atproto/lex-document": "0.0.5",
|
|
43
|
+
"@atproto/lex-schema": "0.0.4"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@ts-morph/common": "^0.28.0",
|
package/src/index.ts
CHANGED