@askdb/core 1.0.0-beta.26 → 1.0.0-beta.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ask.d.ts +9 -0
- package/dist/ask.d.ts.map +1 -1
- package/dist/ask.js +2 -0
- package/dist/ask.js.map +1 -1
- package/dist/enrichment/types.d.ts +4 -3
- package/dist/enrichment/types.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/schema/format.d.ts +3 -63
- package/dist/schema/format.d.ts.map +1 -1
- package/dist/schema/v2/describable.d.ts +24 -163
- package/dist/schema/v2/describable.d.ts.map +1 -1
- package/dist/schema/v2/describable.js +9 -17
- package/dist/schema/v2/describable.js.map +1 -1
- package/dist/schema/v2/physical.d.ts +9 -189
- package/dist/schema/v2/physical.d.ts.map +1 -1
- package/dist/schema/v2/tenant-policy.d.ts +60 -511
- package/dist/schema/v2/tenant-policy.d.ts.map +1 -1
- package/dist/schema/v2/tenant-policy.js +20 -40
- package/dist/schema/v2/tenant-policy.js.map +1 -1
- package/dist/sql/generate.d.ts +6 -0
- package/dist/sql/generate.d.ts.map +1 -1
- package/dist/sql/generate.js +18 -4
- package/dist/sql/generate.js.map +1 -1
- package/package.json +6 -6
|
@@ -6,35 +6,14 @@ export declare const v2ColumnSchema: z.ZodObject<{
|
|
|
6
6
|
nullable: z.ZodBoolean;
|
|
7
7
|
primaryKey: z.ZodOptional<z.ZodBoolean>;
|
|
8
8
|
sensitive: z.ZodOptional<z.ZodBoolean>;
|
|
9
|
-
},
|
|
10
|
-
name: string;
|
|
11
|
-
type: string;
|
|
12
|
-
nullable: boolean;
|
|
13
|
-
id: string;
|
|
14
|
-
primaryKey?: boolean | undefined;
|
|
15
|
-
sensitive?: boolean | undefined;
|
|
16
|
-
}, {
|
|
17
|
-
name: string;
|
|
18
|
-
type: string;
|
|
19
|
-
nullable: boolean;
|
|
20
|
-
id: string;
|
|
21
|
-
primaryKey?: boolean | undefined;
|
|
22
|
-
sensitive?: boolean | undefined;
|
|
23
|
-
}>;
|
|
9
|
+
}, z.core.$strip>;
|
|
24
10
|
export declare const v2RelationshipSchema: z.ZodObject<{
|
|
25
11
|
from: z.ZodString;
|
|
26
12
|
to: z.ZodString;
|
|
27
|
-
},
|
|
28
|
-
from: string;
|
|
29
|
-
to: string;
|
|
30
|
-
}, {
|
|
31
|
-
from: string;
|
|
32
|
-
to: string;
|
|
33
|
-
}>;
|
|
13
|
+
}, z.core.$strip>;
|
|
34
14
|
export declare const v2TableSchema: z.ZodObject<{
|
|
35
15
|
id: z.ZodString;
|
|
36
16
|
name: z.ZodString;
|
|
37
|
-
/** Database schema (namespace) this table belongs to, e.g. `"public"`, `"app"`. Required. */
|
|
38
17
|
schema: z.ZodString;
|
|
39
18
|
sensitive: z.ZodOptional<z.ZodBoolean>;
|
|
40
19
|
columns: z.ZodArray<z.ZodObject<{
|
|
@@ -44,80 +23,19 @@ export declare const v2TableSchema: z.ZodObject<{
|
|
|
44
23
|
nullable: z.ZodBoolean;
|
|
45
24
|
primaryKey: z.ZodOptional<z.ZodBoolean>;
|
|
46
25
|
sensitive: z.ZodOptional<z.ZodBoolean>;
|
|
47
|
-
},
|
|
48
|
-
name: string;
|
|
49
|
-
type: string;
|
|
50
|
-
nullable: boolean;
|
|
51
|
-
id: string;
|
|
52
|
-
primaryKey?: boolean | undefined;
|
|
53
|
-
sensitive?: boolean | undefined;
|
|
54
|
-
}, {
|
|
55
|
-
name: string;
|
|
56
|
-
type: string;
|
|
57
|
-
nullable: boolean;
|
|
58
|
-
id: string;
|
|
59
|
-
primaryKey?: boolean | undefined;
|
|
60
|
-
sensitive?: boolean | undefined;
|
|
61
|
-
}>, "many">;
|
|
26
|
+
}, z.core.$strip>>;
|
|
62
27
|
relationships: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
63
28
|
from: z.ZodString;
|
|
64
29
|
to: z.ZodString;
|
|
65
|
-
},
|
|
66
|
-
|
|
67
|
-
to: string;
|
|
68
|
-
}, {
|
|
69
|
-
from: string;
|
|
70
|
-
to: string;
|
|
71
|
-
}>, "many">>;
|
|
72
|
-
}, "strip", z.ZodTypeAny, {
|
|
73
|
-
name: string;
|
|
74
|
-
columns: {
|
|
75
|
-
name: string;
|
|
76
|
-
type: string;
|
|
77
|
-
nullable: boolean;
|
|
78
|
-
id: string;
|
|
79
|
-
primaryKey?: boolean | undefined;
|
|
80
|
-
sensitive?: boolean | undefined;
|
|
81
|
-
}[];
|
|
82
|
-
id: string;
|
|
83
|
-
schema: string;
|
|
84
|
-
sensitive?: boolean | undefined;
|
|
85
|
-
relationships?: {
|
|
86
|
-
from: string;
|
|
87
|
-
to: string;
|
|
88
|
-
}[] | undefined;
|
|
89
|
-
}, {
|
|
90
|
-
name: string;
|
|
91
|
-
columns: {
|
|
92
|
-
name: string;
|
|
93
|
-
type: string;
|
|
94
|
-
nullable: boolean;
|
|
95
|
-
id: string;
|
|
96
|
-
primaryKey?: boolean | undefined;
|
|
97
|
-
sensitive?: boolean | undefined;
|
|
98
|
-
}[];
|
|
99
|
-
id: string;
|
|
100
|
-
schema: string;
|
|
101
|
-
sensitive?: boolean | undefined;
|
|
102
|
-
relationships?: {
|
|
103
|
-
from: string;
|
|
104
|
-
to: string;
|
|
105
|
-
}[] | undefined;
|
|
106
|
-
}>;
|
|
30
|
+
}, z.core.$strip>>>;
|
|
31
|
+
}, z.core.$strip>;
|
|
107
32
|
export declare const v2SchemaJsonSchema: z.ZodObject<{
|
|
108
33
|
version: z.ZodLiteral<2>;
|
|
109
34
|
schemaId: z.ZodString;
|
|
110
|
-
/**
|
|
111
|
-
* Optional SQL dialect the connector inferred when introspection produced
|
|
112
|
-
* this file (e.g. `"postgres"`, `"mysql"`, `"sqlite"`). Hosts use this to
|
|
113
|
-
* auto-select the NL→SQL dialect; `askdb.config.dialect` overrides it.
|
|
114
|
-
* Matches `DialectId` in `@askdb/core` — kept loose to forward-allow new ids.
|
|
115
|
-
*/
|
|
116
35
|
provider: z.ZodOptional<z.ZodString>;
|
|
117
36
|
tables: z.ZodArray<z.ZodObject<{
|
|
118
37
|
id: z.ZodString;
|
|
119
38
|
name: z.ZodString;
|
|
120
|
-
/** Database schema (namespace) this table belongs to, e.g. `"public"`, `"app"`. Required. */
|
|
121
39
|
schema: z.ZodString;
|
|
122
40
|
sensitive: z.ZodOptional<z.ZodBoolean>;
|
|
123
41
|
columns: z.ZodArray<z.ZodObject<{
|
|
@@ -127,111 +45,13 @@ export declare const v2SchemaJsonSchema: z.ZodObject<{
|
|
|
127
45
|
nullable: z.ZodBoolean;
|
|
128
46
|
primaryKey: z.ZodOptional<z.ZodBoolean>;
|
|
129
47
|
sensitive: z.ZodOptional<z.ZodBoolean>;
|
|
130
|
-
},
|
|
131
|
-
name: string;
|
|
132
|
-
type: string;
|
|
133
|
-
nullable: boolean;
|
|
134
|
-
id: string;
|
|
135
|
-
primaryKey?: boolean | undefined;
|
|
136
|
-
sensitive?: boolean | undefined;
|
|
137
|
-
}, {
|
|
138
|
-
name: string;
|
|
139
|
-
type: string;
|
|
140
|
-
nullable: boolean;
|
|
141
|
-
id: string;
|
|
142
|
-
primaryKey?: boolean | undefined;
|
|
143
|
-
sensitive?: boolean | undefined;
|
|
144
|
-
}>, "many">;
|
|
48
|
+
}, z.core.$strip>>;
|
|
145
49
|
relationships: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
146
50
|
from: z.ZodString;
|
|
147
51
|
to: z.ZodString;
|
|
148
|
-
},
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
}, {
|
|
152
|
-
from: string;
|
|
153
|
-
to: string;
|
|
154
|
-
}>, "many">>;
|
|
155
|
-
}, "strip", z.ZodTypeAny, {
|
|
156
|
-
name: string;
|
|
157
|
-
columns: {
|
|
158
|
-
name: string;
|
|
159
|
-
type: string;
|
|
160
|
-
nullable: boolean;
|
|
161
|
-
id: string;
|
|
162
|
-
primaryKey?: boolean | undefined;
|
|
163
|
-
sensitive?: boolean | undefined;
|
|
164
|
-
}[];
|
|
165
|
-
id: string;
|
|
166
|
-
schema: string;
|
|
167
|
-
sensitive?: boolean | undefined;
|
|
168
|
-
relationships?: {
|
|
169
|
-
from: string;
|
|
170
|
-
to: string;
|
|
171
|
-
}[] | undefined;
|
|
172
|
-
}, {
|
|
173
|
-
name: string;
|
|
174
|
-
columns: {
|
|
175
|
-
name: string;
|
|
176
|
-
type: string;
|
|
177
|
-
nullable: boolean;
|
|
178
|
-
id: string;
|
|
179
|
-
primaryKey?: boolean | undefined;
|
|
180
|
-
sensitive?: boolean | undefined;
|
|
181
|
-
}[];
|
|
182
|
-
id: string;
|
|
183
|
-
schema: string;
|
|
184
|
-
sensitive?: boolean | undefined;
|
|
185
|
-
relationships?: {
|
|
186
|
-
from: string;
|
|
187
|
-
to: string;
|
|
188
|
-
}[] | undefined;
|
|
189
|
-
}>, "many">;
|
|
190
|
-
}, "strip", z.ZodTypeAny, {
|
|
191
|
-
version: 2;
|
|
192
|
-
tables: {
|
|
193
|
-
name: string;
|
|
194
|
-
columns: {
|
|
195
|
-
name: string;
|
|
196
|
-
type: string;
|
|
197
|
-
nullable: boolean;
|
|
198
|
-
id: string;
|
|
199
|
-
primaryKey?: boolean | undefined;
|
|
200
|
-
sensitive?: boolean | undefined;
|
|
201
|
-
}[];
|
|
202
|
-
id: string;
|
|
203
|
-
schema: string;
|
|
204
|
-
sensitive?: boolean | undefined;
|
|
205
|
-
relationships?: {
|
|
206
|
-
from: string;
|
|
207
|
-
to: string;
|
|
208
|
-
}[] | undefined;
|
|
209
|
-
}[];
|
|
210
|
-
schemaId: string;
|
|
211
|
-
provider?: string | undefined;
|
|
212
|
-
}, {
|
|
213
|
-
version: 2;
|
|
214
|
-
tables: {
|
|
215
|
-
name: string;
|
|
216
|
-
columns: {
|
|
217
|
-
name: string;
|
|
218
|
-
type: string;
|
|
219
|
-
nullable: boolean;
|
|
220
|
-
id: string;
|
|
221
|
-
primaryKey?: boolean | undefined;
|
|
222
|
-
sensitive?: boolean | undefined;
|
|
223
|
-
}[];
|
|
224
|
-
id: string;
|
|
225
|
-
schema: string;
|
|
226
|
-
sensitive?: boolean | undefined;
|
|
227
|
-
relationships?: {
|
|
228
|
-
from: string;
|
|
229
|
-
to: string;
|
|
230
|
-
}[] | undefined;
|
|
231
|
-
}[];
|
|
232
|
-
schemaId: string;
|
|
233
|
-
provider?: string | undefined;
|
|
234
|
-
}>;
|
|
52
|
+
}, z.core.$strip>>>;
|
|
53
|
+
}, z.core.$strip>>;
|
|
54
|
+
}, z.core.$strip>;
|
|
235
55
|
export type V2SchemaJson = z.infer<typeof v2SchemaJsonSchema>;
|
|
236
56
|
export type V2Table = z.infer<typeof v2TableSchema>;
|
|
237
57
|
export type V2Column = z.infer<typeof v2ColumnSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"physical.d.ts","sourceRoot":"","sources":["../../../src/schema/v2/physical.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"physical.d.ts","sourceRoot":"","sources":["../../../src/schema/v2/physical.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,cAAc;;;;;;;iBAOzB,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;iBAG/B,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;iBAQxB,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;iBAW7B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AACpD,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC"}
|