@open-commune/core 0.2.14 → 0.2.15
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/domains/collections/utils.d.mts +1 -1
- package/dist/domains/collections/utils.d.ts +1 -1
- package/dist/dtos.d.mts +6 -0
- package/dist/dtos.d.ts +6 -0
- package/dist/dtos.mjs +1 -0
- package/dist/index.d.mts +231 -2754
- package/dist/index.d.ts +231 -2754
- package/dist/index.mjs +1 -1
- package/dist/shared/core.Cot86Med.d.ts +2500 -0
- package/dist/shared/core.ZROqCA7w.d.mts +2500 -0
- package/dist/shared/core.aw1RlSUK.mjs +1 -0
- package/package.json +5 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import * as drizzle_zod from 'drizzle-zod';
|
|
2
2
|
import * as _trpc_server from '@trpc/server';
|
|
3
|
-
import { AnyRouter } from '@trpc/server';
|
|
4
3
|
import { z } from 'zod';
|
|
5
4
|
import * as drizzle_orm_bun_sqlite from 'drizzle-orm/bun-sqlite';
|
|
6
5
|
import { Database } from 'bun:sqlite';
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
export { PublicationStatus } from './domains/collections/constants.mjs';
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
import { s as schema, U as User, S as Session, I as Invitation, A as ApiToken, O as Organization, N as NewOrganization, a as OrganizationInitDto, b as OrganizationUpdateDto, c as NewMedia, M as Media, d as MediaFinalizeDto, e as MediaUpdateDto, C as CollectionDefinition, f as NewCollectionDefinition, E as Entry, g as NewEntry, D as DefinitionCreateDto, h as DefinitionUpdateDto, i as EntrySearchHit, j as EntryCreateDto, k as EntryUpdateDto, l as ErrorType } from './shared/core.ZROqCA7w.mjs';
|
|
7
|
+
export { m as AcceptInvitationDto, n as Address, o as ApiTokenCreateDto, p as ERROR_TYPES, q as InviteDto, L as LoginDto, r as MediaRequestUploadDto, t as NewUser, P as PublicUser, R as RequestPasswordResetDto, u as UpdateOwnProfileDto, v as UserUpdateDto, w as acceptInvitationDto, x as addressSchema, y as apiTokenCreateDto, z as apiTokens, B as collectionDefinitions, F as definitionCreateDto, G as definitionDto, H as definitionUpdateDto, J as entries, K as entryCreateDto, Q as entryDto, T as entrySearchHitDto, V as entryUpdateDto, W as invitations, X as inviteDto, Y as isErrorType, Z as loginDto, _ as media, $ as mediaFinalizeDto, a0 as mediaRequestUploadDto, a1 as mediaUpdateDto, a2 as organization, a3 as organizationInitDto, a4 as organizationUpdateDto, a5 as requestPasswordResetDto, a6 as sessions, a7 as toPublicUser, a8 as updateOwnProfileDto, a9 as userUpdateDto, aa as users } from './shared/core.ZROqCA7w.mjs';
|
|
8
|
+
export { FIELD_TYPES, FieldType, PUBLICATION_STATUSES, PublicationStatus } from './domains/collections/constants.mjs';
|
|
9
|
+
export { FIELD_VALUE_SCHEMAS, FieldDefinition, buildDataSchema, fieldDefinitionSchema } from './domains/collections/utils.mjs';
|
|
10
|
+
import 'drizzle-orm/sqlite-core';
|
|
12
11
|
|
|
13
12
|
declare const envSchema: z.ZodObject<{
|
|
14
13
|
COMMUN_DATA_DIR: z.ZodDefault<z.ZodString>;
|
|
@@ -30,1631 +29,6 @@ type CoreEnv = z.infer<typeof envSchema>;
|
|
|
30
29
|
*/
|
|
31
30
|
declare function parseEnv(raw?: Record<string, string | undefined>): CoreEnv;
|
|
32
31
|
|
|
33
|
-
/** Postal address, as a typed JSON field. */
|
|
34
|
-
declare const addressSchema: z.ZodObject<{
|
|
35
|
-
street: z.ZodOptional<z.ZodString>;
|
|
36
|
-
postalCode: z.ZodOptional<z.ZodString>;
|
|
37
|
-
city: z.ZodOptional<z.ZodString>;
|
|
38
|
-
}, z.core.$strip>;
|
|
39
|
-
type Address = z.infer<typeof addressSchema>;
|
|
40
|
-
/**
|
|
41
|
-
* Instance settings — a singleton row (id = 1, enforced by the queries).
|
|
42
|
-
* Single-tenant by design: one instance = one local authority; no table
|
|
43
|
-
* anywhere carries a tenant key.
|
|
44
|
-
*/
|
|
45
|
-
declare const organization: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
46
|
-
name: "organization";
|
|
47
|
-
schema: undefined;
|
|
48
|
-
columns: {
|
|
49
|
-
id: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
50
|
-
name: "id";
|
|
51
|
-
tableName: "organization";
|
|
52
|
-
dataType: "number";
|
|
53
|
-
columnType: "SQLiteInteger";
|
|
54
|
-
data: number;
|
|
55
|
-
driverParam: number;
|
|
56
|
-
notNull: true;
|
|
57
|
-
hasDefault: true;
|
|
58
|
-
isPrimaryKey: true;
|
|
59
|
-
isAutoincrement: false;
|
|
60
|
-
hasRuntimeDefault: false;
|
|
61
|
-
enumValues: undefined;
|
|
62
|
-
baseColumn: never;
|
|
63
|
-
identity: undefined;
|
|
64
|
-
generated: undefined;
|
|
65
|
-
}, {}, {}>;
|
|
66
|
-
name: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
67
|
-
name: "name";
|
|
68
|
-
tableName: "organization";
|
|
69
|
-
dataType: "string";
|
|
70
|
-
columnType: "SQLiteText";
|
|
71
|
-
data: string;
|
|
72
|
-
driverParam: string;
|
|
73
|
-
notNull: true;
|
|
74
|
-
hasDefault: false;
|
|
75
|
-
isPrimaryKey: false;
|
|
76
|
-
isAutoincrement: false;
|
|
77
|
-
hasRuntimeDefault: false;
|
|
78
|
-
enumValues: [string, ...string[]];
|
|
79
|
-
baseColumn: never;
|
|
80
|
-
identity: undefined;
|
|
81
|
-
generated: undefined;
|
|
82
|
-
}, {}, {
|
|
83
|
-
length: number | undefined;
|
|
84
|
-
}>;
|
|
85
|
-
type: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
86
|
-
name: "type";
|
|
87
|
-
tableName: "organization";
|
|
88
|
-
dataType: "string";
|
|
89
|
-
columnType: "SQLiteText";
|
|
90
|
-
data: "commune" | "intercommunality" | "syndicate" | "other";
|
|
91
|
-
driverParam: string;
|
|
92
|
-
notNull: true;
|
|
93
|
-
hasDefault: true;
|
|
94
|
-
isPrimaryKey: false;
|
|
95
|
-
isAutoincrement: false;
|
|
96
|
-
hasRuntimeDefault: false;
|
|
97
|
-
enumValues: ["commune", "intercommunality", "syndicate", "other"];
|
|
98
|
-
baseColumn: never;
|
|
99
|
-
identity: undefined;
|
|
100
|
-
generated: undefined;
|
|
101
|
-
}, {}, {
|
|
102
|
-
length: number | undefined;
|
|
103
|
-
}>;
|
|
104
|
-
slug: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
105
|
-
name: "slug";
|
|
106
|
-
tableName: "organization";
|
|
107
|
-
dataType: "string";
|
|
108
|
-
columnType: "SQLiteText";
|
|
109
|
-
data: string;
|
|
110
|
-
driverParam: string;
|
|
111
|
-
notNull: true;
|
|
112
|
-
hasDefault: false;
|
|
113
|
-
isPrimaryKey: false;
|
|
114
|
-
isAutoincrement: false;
|
|
115
|
-
hasRuntimeDefault: false;
|
|
116
|
-
enumValues: [string, ...string[]];
|
|
117
|
-
baseColumn: never;
|
|
118
|
-
identity: undefined;
|
|
119
|
-
generated: undefined;
|
|
120
|
-
}, {}, {
|
|
121
|
-
length: number | undefined;
|
|
122
|
-
}>;
|
|
123
|
-
description: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
124
|
-
name: "description";
|
|
125
|
-
tableName: "organization";
|
|
126
|
-
dataType: "string";
|
|
127
|
-
columnType: "SQLiteText";
|
|
128
|
-
data: string;
|
|
129
|
-
driverParam: string;
|
|
130
|
-
notNull: false;
|
|
131
|
-
hasDefault: false;
|
|
132
|
-
isPrimaryKey: false;
|
|
133
|
-
isAutoincrement: false;
|
|
134
|
-
hasRuntimeDefault: false;
|
|
135
|
-
enumValues: [string, ...string[]];
|
|
136
|
-
baseColumn: never;
|
|
137
|
-
identity: undefined;
|
|
138
|
-
generated: undefined;
|
|
139
|
-
}, {}, {
|
|
140
|
-
length: number | undefined;
|
|
141
|
-
}>;
|
|
142
|
-
address: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
143
|
-
name: "address";
|
|
144
|
-
tableName: "organization";
|
|
145
|
-
dataType: "json";
|
|
146
|
-
columnType: "SQLiteTextJson";
|
|
147
|
-
data: {
|
|
148
|
-
street?: string | undefined;
|
|
149
|
-
postalCode?: string | undefined;
|
|
150
|
-
city?: string | undefined;
|
|
151
|
-
};
|
|
152
|
-
driverParam: string;
|
|
153
|
-
notNull: false;
|
|
154
|
-
hasDefault: false;
|
|
155
|
-
isPrimaryKey: false;
|
|
156
|
-
isAutoincrement: false;
|
|
157
|
-
hasRuntimeDefault: false;
|
|
158
|
-
enumValues: undefined;
|
|
159
|
-
baseColumn: never;
|
|
160
|
-
identity: undefined;
|
|
161
|
-
generated: undefined;
|
|
162
|
-
}, {}, {
|
|
163
|
-
$type: {
|
|
164
|
-
street?: string | undefined;
|
|
165
|
-
postalCode?: string | undefined;
|
|
166
|
-
city?: string | undefined;
|
|
167
|
-
};
|
|
168
|
-
}>;
|
|
169
|
-
deployment: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
170
|
-
name: "deployment";
|
|
171
|
-
tableName: "organization";
|
|
172
|
-
dataType: "json";
|
|
173
|
-
columnType: "SQLiteTextJson";
|
|
174
|
-
data: Record<string, unknown>;
|
|
175
|
-
driverParam: string;
|
|
176
|
-
notNull: false;
|
|
177
|
-
hasDefault: false;
|
|
178
|
-
isPrimaryKey: false;
|
|
179
|
-
isAutoincrement: false;
|
|
180
|
-
hasRuntimeDefault: false;
|
|
181
|
-
enumValues: undefined;
|
|
182
|
-
baseColumn: never;
|
|
183
|
-
identity: undefined;
|
|
184
|
-
generated: undefined;
|
|
185
|
-
}, {}, {
|
|
186
|
-
$type: Record<string, unknown>;
|
|
187
|
-
}>;
|
|
188
|
-
settings: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
189
|
-
name: "settings";
|
|
190
|
-
tableName: "organization";
|
|
191
|
-
dataType: "json";
|
|
192
|
-
columnType: "SQLiteTextJson";
|
|
193
|
-
data: Record<string, unknown>;
|
|
194
|
-
driverParam: string;
|
|
195
|
-
notNull: false;
|
|
196
|
-
hasDefault: false;
|
|
197
|
-
isPrimaryKey: false;
|
|
198
|
-
isAutoincrement: false;
|
|
199
|
-
hasRuntimeDefault: false;
|
|
200
|
-
enumValues: undefined;
|
|
201
|
-
baseColumn: never;
|
|
202
|
-
identity: undefined;
|
|
203
|
-
generated: undefined;
|
|
204
|
-
}, {}, {
|
|
205
|
-
$type: Record<string, unknown>;
|
|
206
|
-
}>;
|
|
207
|
-
updatedBy: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
208
|
-
name: "updated_by";
|
|
209
|
-
tableName: "organization";
|
|
210
|
-
dataType: "string";
|
|
211
|
-
columnType: "SQLiteText";
|
|
212
|
-
data: string;
|
|
213
|
-
driverParam: string;
|
|
214
|
-
notNull: false;
|
|
215
|
-
hasDefault: false;
|
|
216
|
-
isPrimaryKey: false;
|
|
217
|
-
isAutoincrement: false;
|
|
218
|
-
hasRuntimeDefault: false;
|
|
219
|
-
enumValues: [string, ...string[]];
|
|
220
|
-
baseColumn: never;
|
|
221
|
-
identity: undefined;
|
|
222
|
-
generated: undefined;
|
|
223
|
-
}, {}, {
|
|
224
|
-
length: number | undefined;
|
|
225
|
-
}>;
|
|
226
|
-
legacyExtra: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
227
|
-
name: "legacy_extra";
|
|
228
|
-
tableName: "organization";
|
|
229
|
-
dataType: "json";
|
|
230
|
-
columnType: "SQLiteTextJson";
|
|
231
|
-
data: Record<string, unknown> | null;
|
|
232
|
-
driverParam: string;
|
|
233
|
-
notNull: false;
|
|
234
|
-
hasDefault: false;
|
|
235
|
-
isPrimaryKey: false;
|
|
236
|
-
isAutoincrement: false;
|
|
237
|
-
hasRuntimeDefault: false;
|
|
238
|
-
enumValues: undefined;
|
|
239
|
-
baseColumn: never;
|
|
240
|
-
identity: undefined;
|
|
241
|
-
generated: undefined;
|
|
242
|
-
}, {}, {
|
|
243
|
-
$type: Record<string, unknown> | null;
|
|
244
|
-
}>;
|
|
245
|
-
createdAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
246
|
-
name: "created_at";
|
|
247
|
-
tableName: "organization";
|
|
248
|
-
dataType: "string";
|
|
249
|
-
columnType: "SQLiteText";
|
|
250
|
-
data: string;
|
|
251
|
-
driverParam: string;
|
|
252
|
-
notNull: true;
|
|
253
|
-
hasDefault: true;
|
|
254
|
-
isPrimaryKey: false;
|
|
255
|
-
isAutoincrement: false;
|
|
256
|
-
hasRuntimeDefault: true;
|
|
257
|
-
enumValues: [string, ...string[]];
|
|
258
|
-
baseColumn: never;
|
|
259
|
-
identity: undefined;
|
|
260
|
-
generated: undefined;
|
|
261
|
-
}, {}, {
|
|
262
|
-
length: number | undefined;
|
|
263
|
-
}>;
|
|
264
|
-
updatedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
265
|
-
name: "updated_at";
|
|
266
|
-
tableName: "organization";
|
|
267
|
-
dataType: "string";
|
|
268
|
-
columnType: "SQLiteText";
|
|
269
|
-
data: string;
|
|
270
|
-
driverParam: string;
|
|
271
|
-
notNull: true;
|
|
272
|
-
hasDefault: true;
|
|
273
|
-
isPrimaryKey: false;
|
|
274
|
-
isAutoincrement: false;
|
|
275
|
-
hasRuntimeDefault: true;
|
|
276
|
-
enumValues: [string, ...string[]];
|
|
277
|
-
baseColumn: never;
|
|
278
|
-
identity: undefined;
|
|
279
|
-
generated: undefined;
|
|
280
|
-
}, {}, {
|
|
281
|
-
length: number | undefined;
|
|
282
|
-
}>;
|
|
283
|
-
};
|
|
284
|
-
dialect: "sqlite";
|
|
285
|
-
}>;
|
|
286
|
-
type Organization = typeof organization.$inferSelect;
|
|
287
|
-
type NewOrganization = typeof organization.$inferInsert;
|
|
288
|
-
declare const users: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
289
|
-
name: "users";
|
|
290
|
-
schema: undefined;
|
|
291
|
-
columns: {
|
|
292
|
-
id: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
293
|
-
name: "id";
|
|
294
|
-
tableName: "users";
|
|
295
|
-
dataType: "string";
|
|
296
|
-
columnType: "SQLiteText";
|
|
297
|
-
data: string;
|
|
298
|
-
driverParam: string;
|
|
299
|
-
notNull: true;
|
|
300
|
-
hasDefault: true;
|
|
301
|
-
isPrimaryKey: true;
|
|
302
|
-
isAutoincrement: false;
|
|
303
|
-
hasRuntimeDefault: true;
|
|
304
|
-
enumValues: [string, ...string[]];
|
|
305
|
-
baseColumn: never;
|
|
306
|
-
identity: undefined;
|
|
307
|
-
generated: undefined;
|
|
308
|
-
}, {}, {
|
|
309
|
-
length: number | undefined;
|
|
310
|
-
}>;
|
|
311
|
-
email: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
312
|
-
name: "email";
|
|
313
|
-
tableName: "users";
|
|
314
|
-
dataType: "string";
|
|
315
|
-
columnType: "SQLiteText";
|
|
316
|
-
data: string;
|
|
317
|
-
driverParam: string;
|
|
318
|
-
notNull: true;
|
|
319
|
-
hasDefault: false;
|
|
320
|
-
isPrimaryKey: false;
|
|
321
|
-
isAutoincrement: false;
|
|
322
|
-
hasRuntimeDefault: false;
|
|
323
|
-
enumValues: [string, ...string[]];
|
|
324
|
-
baseColumn: never;
|
|
325
|
-
identity: undefined;
|
|
326
|
-
generated: undefined;
|
|
327
|
-
}, {}, {
|
|
328
|
-
length: number | undefined;
|
|
329
|
-
}>;
|
|
330
|
-
name: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
331
|
-
name: "name";
|
|
332
|
-
tableName: "users";
|
|
333
|
-
dataType: "string";
|
|
334
|
-
columnType: "SQLiteText";
|
|
335
|
-
data: string;
|
|
336
|
-
driverParam: string;
|
|
337
|
-
notNull: true;
|
|
338
|
-
hasDefault: false;
|
|
339
|
-
isPrimaryKey: false;
|
|
340
|
-
isAutoincrement: false;
|
|
341
|
-
hasRuntimeDefault: false;
|
|
342
|
-
enumValues: [string, ...string[]];
|
|
343
|
-
baseColumn: never;
|
|
344
|
-
identity: undefined;
|
|
345
|
-
generated: undefined;
|
|
346
|
-
}, {}, {
|
|
347
|
-
length: number | undefined;
|
|
348
|
-
}>;
|
|
349
|
-
passwordHash: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
350
|
-
name: "password_hash";
|
|
351
|
-
tableName: "users";
|
|
352
|
-
dataType: "string";
|
|
353
|
-
columnType: "SQLiteText";
|
|
354
|
-
data: string;
|
|
355
|
-
driverParam: string;
|
|
356
|
-
notNull: false;
|
|
357
|
-
hasDefault: false;
|
|
358
|
-
isPrimaryKey: false;
|
|
359
|
-
isAutoincrement: false;
|
|
360
|
-
hasRuntimeDefault: false;
|
|
361
|
-
enumValues: [string, ...string[]];
|
|
362
|
-
baseColumn: never;
|
|
363
|
-
identity: undefined;
|
|
364
|
-
generated: undefined;
|
|
365
|
-
}, {}, {
|
|
366
|
-
length: number | undefined;
|
|
367
|
-
}>;
|
|
368
|
-
role: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
369
|
-
name: "role";
|
|
370
|
-
tableName: "users";
|
|
371
|
-
dataType: "string";
|
|
372
|
-
columnType: "SQLiteText";
|
|
373
|
-
data: "admin" | "redacteur";
|
|
374
|
-
driverParam: string;
|
|
375
|
-
notNull: true;
|
|
376
|
-
hasDefault: true;
|
|
377
|
-
isPrimaryKey: false;
|
|
378
|
-
isAutoincrement: false;
|
|
379
|
-
hasRuntimeDefault: false;
|
|
380
|
-
enumValues: ["admin", "redacteur"];
|
|
381
|
-
baseColumn: never;
|
|
382
|
-
identity: undefined;
|
|
383
|
-
generated: undefined;
|
|
384
|
-
}, {}, {
|
|
385
|
-
length: number | undefined;
|
|
386
|
-
}>;
|
|
387
|
-
createdAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
388
|
-
name: "created_at";
|
|
389
|
-
tableName: "users";
|
|
390
|
-
dataType: "string";
|
|
391
|
-
columnType: "SQLiteText";
|
|
392
|
-
data: string;
|
|
393
|
-
driverParam: string;
|
|
394
|
-
notNull: true;
|
|
395
|
-
hasDefault: true;
|
|
396
|
-
isPrimaryKey: false;
|
|
397
|
-
isAutoincrement: false;
|
|
398
|
-
hasRuntimeDefault: true;
|
|
399
|
-
enumValues: [string, ...string[]];
|
|
400
|
-
baseColumn: never;
|
|
401
|
-
identity: undefined;
|
|
402
|
-
generated: undefined;
|
|
403
|
-
}, {}, {
|
|
404
|
-
length: number | undefined;
|
|
405
|
-
}>;
|
|
406
|
-
updatedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
407
|
-
name: "updated_at";
|
|
408
|
-
tableName: "users";
|
|
409
|
-
dataType: "string";
|
|
410
|
-
columnType: "SQLiteText";
|
|
411
|
-
data: string;
|
|
412
|
-
driverParam: string;
|
|
413
|
-
notNull: true;
|
|
414
|
-
hasDefault: true;
|
|
415
|
-
isPrimaryKey: false;
|
|
416
|
-
isAutoincrement: false;
|
|
417
|
-
hasRuntimeDefault: true;
|
|
418
|
-
enumValues: [string, ...string[]];
|
|
419
|
-
baseColumn: never;
|
|
420
|
-
identity: undefined;
|
|
421
|
-
generated: undefined;
|
|
422
|
-
}, {}, {
|
|
423
|
-
length: number | undefined;
|
|
424
|
-
}>;
|
|
425
|
-
};
|
|
426
|
-
dialect: "sqlite";
|
|
427
|
-
}>;
|
|
428
|
-
/**
|
|
429
|
-
* Server-side sessions. The client carries a signed JWT holding `{ session }`,
|
|
430
|
-
* but revocation lives HERE: a valid JWT whose row is revoked is refused.
|
|
431
|
-
*/
|
|
432
|
-
declare const sessions: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
433
|
-
name: "sessions";
|
|
434
|
-
schema: undefined;
|
|
435
|
-
columns: {
|
|
436
|
-
id: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
437
|
-
name: "id";
|
|
438
|
-
tableName: "sessions";
|
|
439
|
-
dataType: "string";
|
|
440
|
-
columnType: "SQLiteText";
|
|
441
|
-
data: string;
|
|
442
|
-
driverParam: string;
|
|
443
|
-
notNull: true;
|
|
444
|
-
hasDefault: true;
|
|
445
|
-
isPrimaryKey: true;
|
|
446
|
-
isAutoincrement: false;
|
|
447
|
-
hasRuntimeDefault: true;
|
|
448
|
-
enumValues: [string, ...string[]];
|
|
449
|
-
baseColumn: never;
|
|
450
|
-
identity: undefined;
|
|
451
|
-
generated: undefined;
|
|
452
|
-
}, {}, {
|
|
453
|
-
length: number | undefined;
|
|
454
|
-
}>;
|
|
455
|
-
userId: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
456
|
-
name: "user_id";
|
|
457
|
-
tableName: "sessions";
|
|
458
|
-
dataType: "string";
|
|
459
|
-
columnType: "SQLiteText";
|
|
460
|
-
data: string;
|
|
461
|
-
driverParam: string;
|
|
462
|
-
notNull: true;
|
|
463
|
-
hasDefault: false;
|
|
464
|
-
isPrimaryKey: false;
|
|
465
|
-
isAutoincrement: false;
|
|
466
|
-
hasRuntimeDefault: false;
|
|
467
|
-
enumValues: [string, ...string[]];
|
|
468
|
-
baseColumn: never;
|
|
469
|
-
identity: undefined;
|
|
470
|
-
generated: undefined;
|
|
471
|
-
}, {}, {
|
|
472
|
-
length: number | undefined;
|
|
473
|
-
}>;
|
|
474
|
-
expiresAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
475
|
-
name: "expires_at";
|
|
476
|
-
tableName: "sessions";
|
|
477
|
-
dataType: "string";
|
|
478
|
-
columnType: "SQLiteText";
|
|
479
|
-
data: string;
|
|
480
|
-
driverParam: string;
|
|
481
|
-
notNull: true;
|
|
482
|
-
hasDefault: false;
|
|
483
|
-
isPrimaryKey: false;
|
|
484
|
-
isAutoincrement: false;
|
|
485
|
-
hasRuntimeDefault: false;
|
|
486
|
-
enumValues: [string, ...string[]];
|
|
487
|
-
baseColumn: never;
|
|
488
|
-
identity: undefined;
|
|
489
|
-
generated: undefined;
|
|
490
|
-
}, {}, {
|
|
491
|
-
length: number | undefined;
|
|
492
|
-
}>;
|
|
493
|
-
revokedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
494
|
-
name: "revoked_at";
|
|
495
|
-
tableName: "sessions";
|
|
496
|
-
dataType: "string";
|
|
497
|
-
columnType: "SQLiteText";
|
|
498
|
-
data: string;
|
|
499
|
-
driverParam: string;
|
|
500
|
-
notNull: false;
|
|
501
|
-
hasDefault: false;
|
|
502
|
-
isPrimaryKey: false;
|
|
503
|
-
isAutoincrement: false;
|
|
504
|
-
hasRuntimeDefault: false;
|
|
505
|
-
enumValues: [string, ...string[]];
|
|
506
|
-
baseColumn: never;
|
|
507
|
-
identity: undefined;
|
|
508
|
-
generated: undefined;
|
|
509
|
-
}, {}, {
|
|
510
|
-
length: number | undefined;
|
|
511
|
-
}>;
|
|
512
|
-
ua: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
513
|
-
name: "ua";
|
|
514
|
-
tableName: "sessions";
|
|
515
|
-
dataType: "string";
|
|
516
|
-
columnType: "SQLiteText";
|
|
517
|
-
data: string;
|
|
518
|
-
driverParam: string;
|
|
519
|
-
notNull: false;
|
|
520
|
-
hasDefault: false;
|
|
521
|
-
isPrimaryKey: false;
|
|
522
|
-
isAutoincrement: false;
|
|
523
|
-
hasRuntimeDefault: false;
|
|
524
|
-
enumValues: [string, ...string[]];
|
|
525
|
-
baseColumn: never;
|
|
526
|
-
identity: undefined;
|
|
527
|
-
generated: undefined;
|
|
528
|
-
}, {}, {
|
|
529
|
-
length: number | undefined;
|
|
530
|
-
}>;
|
|
531
|
-
ip: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
532
|
-
name: "ip";
|
|
533
|
-
tableName: "sessions";
|
|
534
|
-
dataType: "string";
|
|
535
|
-
columnType: "SQLiteText";
|
|
536
|
-
data: string;
|
|
537
|
-
driverParam: string;
|
|
538
|
-
notNull: false;
|
|
539
|
-
hasDefault: false;
|
|
540
|
-
isPrimaryKey: false;
|
|
541
|
-
isAutoincrement: false;
|
|
542
|
-
hasRuntimeDefault: false;
|
|
543
|
-
enumValues: [string, ...string[]];
|
|
544
|
-
baseColumn: never;
|
|
545
|
-
identity: undefined;
|
|
546
|
-
generated: undefined;
|
|
547
|
-
}, {}, {
|
|
548
|
-
length: number | undefined;
|
|
549
|
-
}>;
|
|
550
|
-
createdAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
551
|
-
name: "created_at";
|
|
552
|
-
tableName: "sessions";
|
|
553
|
-
dataType: "string";
|
|
554
|
-
columnType: "SQLiteText";
|
|
555
|
-
data: string;
|
|
556
|
-
driverParam: string;
|
|
557
|
-
notNull: true;
|
|
558
|
-
hasDefault: true;
|
|
559
|
-
isPrimaryKey: false;
|
|
560
|
-
isAutoincrement: false;
|
|
561
|
-
hasRuntimeDefault: true;
|
|
562
|
-
enumValues: [string, ...string[]];
|
|
563
|
-
baseColumn: never;
|
|
564
|
-
identity: undefined;
|
|
565
|
-
generated: undefined;
|
|
566
|
-
}, {}, {
|
|
567
|
-
length: number | undefined;
|
|
568
|
-
}>;
|
|
569
|
-
};
|
|
570
|
-
dialect: "sqlite";
|
|
571
|
-
}>;
|
|
572
|
-
/** Single-use, time-limited invitations (crypto-random token, stored hashed). */
|
|
573
|
-
declare const invitations: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
574
|
-
name: "invitations";
|
|
575
|
-
schema: undefined;
|
|
576
|
-
columns: {
|
|
577
|
-
id: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
578
|
-
name: "id";
|
|
579
|
-
tableName: "invitations";
|
|
580
|
-
dataType: "string";
|
|
581
|
-
columnType: "SQLiteText";
|
|
582
|
-
data: string;
|
|
583
|
-
driverParam: string;
|
|
584
|
-
notNull: true;
|
|
585
|
-
hasDefault: true;
|
|
586
|
-
isPrimaryKey: true;
|
|
587
|
-
isAutoincrement: false;
|
|
588
|
-
hasRuntimeDefault: true;
|
|
589
|
-
enumValues: [string, ...string[]];
|
|
590
|
-
baseColumn: never;
|
|
591
|
-
identity: undefined;
|
|
592
|
-
generated: undefined;
|
|
593
|
-
}, {}, {
|
|
594
|
-
length: number | undefined;
|
|
595
|
-
}>;
|
|
596
|
-
email: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
597
|
-
name: "email";
|
|
598
|
-
tableName: "invitations";
|
|
599
|
-
dataType: "string";
|
|
600
|
-
columnType: "SQLiteText";
|
|
601
|
-
data: string;
|
|
602
|
-
driverParam: string;
|
|
603
|
-
notNull: true;
|
|
604
|
-
hasDefault: false;
|
|
605
|
-
isPrimaryKey: false;
|
|
606
|
-
isAutoincrement: false;
|
|
607
|
-
hasRuntimeDefault: false;
|
|
608
|
-
enumValues: [string, ...string[]];
|
|
609
|
-
baseColumn: never;
|
|
610
|
-
identity: undefined;
|
|
611
|
-
generated: undefined;
|
|
612
|
-
}, {}, {
|
|
613
|
-
length: number | undefined;
|
|
614
|
-
}>;
|
|
615
|
-
tokenHash: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
616
|
-
name: "token_hash";
|
|
617
|
-
tableName: "invitations";
|
|
618
|
-
dataType: "string";
|
|
619
|
-
columnType: "SQLiteText";
|
|
620
|
-
data: string;
|
|
621
|
-
driverParam: string;
|
|
622
|
-
notNull: true;
|
|
623
|
-
hasDefault: false;
|
|
624
|
-
isPrimaryKey: false;
|
|
625
|
-
isAutoincrement: false;
|
|
626
|
-
hasRuntimeDefault: false;
|
|
627
|
-
enumValues: [string, ...string[]];
|
|
628
|
-
baseColumn: never;
|
|
629
|
-
identity: undefined;
|
|
630
|
-
generated: undefined;
|
|
631
|
-
}, {}, {
|
|
632
|
-
length: number | undefined;
|
|
633
|
-
}>;
|
|
634
|
-
role: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
635
|
-
name: "role";
|
|
636
|
-
tableName: "invitations";
|
|
637
|
-
dataType: "string";
|
|
638
|
-
columnType: "SQLiteText";
|
|
639
|
-
data: "admin" | "redacteur";
|
|
640
|
-
driverParam: string;
|
|
641
|
-
notNull: true;
|
|
642
|
-
hasDefault: true;
|
|
643
|
-
isPrimaryKey: false;
|
|
644
|
-
isAutoincrement: false;
|
|
645
|
-
hasRuntimeDefault: false;
|
|
646
|
-
enumValues: ["admin", "redacteur"];
|
|
647
|
-
baseColumn: never;
|
|
648
|
-
identity: undefined;
|
|
649
|
-
generated: undefined;
|
|
650
|
-
}, {}, {
|
|
651
|
-
length: number | undefined;
|
|
652
|
-
}>;
|
|
653
|
-
expiresAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
654
|
-
name: "expires_at";
|
|
655
|
-
tableName: "invitations";
|
|
656
|
-
dataType: "string";
|
|
657
|
-
columnType: "SQLiteText";
|
|
658
|
-
data: string;
|
|
659
|
-
driverParam: string;
|
|
660
|
-
notNull: true;
|
|
661
|
-
hasDefault: false;
|
|
662
|
-
isPrimaryKey: false;
|
|
663
|
-
isAutoincrement: false;
|
|
664
|
-
hasRuntimeDefault: false;
|
|
665
|
-
enumValues: [string, ...string[]];
|
|
666
|
-
baseColumn: never;
|
|
667
|
-
identity: undefined;
|
|
668
|
-
generated: undefined;
|
|
669
|
-
}, {}, {
|
|
670
|
-
length: number | undefined;
|
|
671
|
-
}>;
|
|
672
|
-
usedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
673
|
-
name: "used_at";
|
|
674
|
-
tableName: "invitations";
|
|
675
|
-
dataType: "string";
|
|
676
|
-
columnType: "SQLiteText";
|
|
677
|
-
data: string;
|
|
678
|
-
driverParam: string;
|
|
679
|
-
notNull: false;
|
|
680
|
-
hasDefault: false;
|
|
681
|
-
isPrimaryKey: false;
|
|
682
|
-
isAutoincrement: false;
|
|
683
|
-
hasRuntimeDefault: false;
|
|
684
|
-
enumValues: [string, ...string[]];
|
|
685
|
-
baseColumn: never;
|
|
686
|
-
identity: undefined;
|
|
687
|
-
generated: undefined;
|
|
688
|
-
}, {}, {
|
|
689
|
-
length: number | undefined;
|
|
690
|
-
}>;
|
|
691
|
-
createdAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
692
|
-
name: "created_at";
|
|
693
|
-
tableName: "invitations";
|
|
694
|
-
dataType: "string";
|
|
695
|
-
columnType: "SQLiteText";
|
|
696
|
-
data: string;
|
|
697
|
-
driverParam: string;
|
|
698
|
-
notNull: true;
|
|
699
|
-
hasDefault: true;
|
|
700
|
-
isPrimaryKey: false;
|
|
701
|
-
isAutoincrement: false;
|
|
702
|
-
hasRuntimeDefault: true;
|
|
703
|
-
enumValues: [string, ...string[]];
|
|
704
|
-
baseColumn: never;
|
|
705
|
-
identity: undefined;
|
|
706
|
-
generated: undefined;
|
|
707
|
-
}, {}, {
|
|
708
|
-
length: number | undefined;
|
|
709
|
-
}>;
|
|
710
|
-
};
|
|
711
|
-
dialect: "sqlite";
|
|
712
|
-
}>;
|
|
713
|
-
/** Machine tokens for site builds — shown once, stored hashed, revocable. */
|
|
714
|
-
declare const apiTokens: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
715
|
-
name: "api_tokens";
|
|
716
|
-
schema: undefined;
|
|
717
|
-
columns: {
|
|
718
|
-
id: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
719
|
-
name: "id";
|
|
720
|
-
tableName: "api_tokens";
|
|
721
|
-
dataType: "string";
|
|
722
|
-
columnType: "SQLiteText";
|
|
723
|
-
data: string;
|
|
724
|
-
driverParam: string;
|
|
725
|
-
notNull: true;
|
|
726
|
-
hasDefault: true;
|
|
727
|
-
isPrimaryKey: true;
|
|
728
|
-
isAutoincrement: false;
|
|
729
|
-
hasRuntimeDefault: true;
|
|
730
|
-
enumValues: [string, ...string[]];
|
|
731
|
-
baseColumn: never;
|
|
732
|
-
identity: undefined;
|
|
733
|
-
generated: undefined;
|
|
734
|
-
}, {}, {
|
|
735
|
-
length: number | undefined;
|
|
736
|
-
}>;
|
|
737
|
-
name: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
738
|
-
name: "name";
|
|
739
|
-
tableName: "api_tokens";
|
|
740
|
-
dataType: "string";
|
|
741
|
-
columnType: "SQLiteText";
|
|
742
|
-
data: string;
|
|
743
|
-
driverParam: string;
|
|
744
|
-
notNull: true;
|
|
745
|
-
hasDefault: false;
|
|
746
|
-
isPrimaryKey: false;
|
|
747
|
-
isAutoincrement: false;
|
|
748
|
-
hasRuntimeDefault: false;
|
|
749
|
-
enumValues: [string, ...string[]];
|
|
750
|
-
baseColumn: never;
|
|
751
|
-
identity: undefined;
|
|
752
|
-
generated: undefined;
|
|
753
|
-
}, {}, {
|
|
754
|
-
length: number | undefined;
|
|
755
|
-
}>;
|
|
756
|
-
tokenHash: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
757
|
-
name: "token_hash";
|
|
758
|
-
tableName: "api_tokens";
|
|
759
|
-
dataType: "string";
|
|
760
|
-
columnType: "SQLiteText";
|
|
761
|
-
data: string;
|
|
762
|
-
driverParam: string;
|
|
763
|
-
notNull: true;
|
|
764
|
-
hasDefault: false;
|
|
765
|
-
isPrimaryKey: false;
|
|
766
|
-
isAutoincrement: false;
|
|
767
|
-
hasRuntimeDefault: false;
|
|
768
|
-
enumValues: [string, ...string[]];
|
|
769
|
-
baseColumn: never;
|
|
770
|
-
identity: undefined;
|
|
771
|
-
generated: undefined;
|
|
772
|
-
}, {}, {
|
|
773
|
-
length: number | undefined;
|
|
774
|
-
}>;
|
|
775
|
-
lastUsedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
776
|
-
name: "last_used_at";
|
|
777
|
-
tableName: "api_tokens";
|
|
778
|
-
dataType: "string";
|
|
779
|
-
columnType: "SQLiteText";
|
|
780
|
-
data: string;
|
|
781
|
-
driverParam: string;
|
|
782
|
-
notNull: false;
|
|
783
|
-
hasDefault: false;
|
|
784
|
-
isPrimaryKey: false;
|
|
785
|
-
isAutoincrement: false;
|
|
786
|
-
hasRuntimeDefault: false;
|
|
787
|
-
enumValues: [string, ...string[]];
|
|
788
|
-
baseColumn: never;
|
|
789
|
-
identity: undefined;
|
|
790
|
-
generated: undefined;
|
|
791
|
-
}, {}, {
|
|
792
|
-
length: number | undefined;
|
|
793
|
-
}>;
|
|
794
|
-
revokedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
795
|
-
name: "revoked_at";
|
|
796
|
-
tableName: "api_tokens";
|
|
797
|
-
dataType: "string";
|
|
798
|
-
columnType: "SQLiteText";
|
|
799
|
-
data: string;
|
|
800
|
-
driverParam: string;
|
|
801
|
-
notNull: false;
|
|
802
|
-
hasDefault: false;
|
|
803
|
-
isPrimaryKey: false;
|
|
804
|
-
isAutoincrement: false;
|
|
805
|
-
hasRuntimeDefault: false;
|
|
806
|
-
enumValues: [string, ...string[]];
|
|
807
|
-
baseColumn: never;
|
|
808
|
-
identity: undefined;
|
|
809
|
-
generated: undefined;
|
|
810
|
-
}, {}, {
|
|
811
|
-
length: number | undefined;
|
|
812
|
-
}>;
|
|
813
|
-
createdAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
814
|
-
name: "created_at";
|
|
815
|
-
tableName: "api_tokens";
|
|
816
|
-
dataType: "string";
|
|
817
|
-
columnType: "SQLiteText";
|
|
818
|
-
data: string;
|
|
819
|
-
driverParam: string;
|
|
820
|
-
notNull: true;
|
|
821
|
-
hasDefault: true;
|
|
822
|
-
isPrimaryKey: false;
|
|
823
|
-
isAutoincrement: false;
|
|
824
|
-
hasRuntimeDefault: true;
|
|
825
|
-
enumValues: [string, ...string[]];
|
|
826
|
-
baseColumn: never;
|
|
827
|
-
identity: undefined;
|
|
828
|
-
generated: undefined;
|
|
829
|
-
}, {}, {
|
|
830
|
-
length: number | undefined;
|
|
831
|
-
}>;
|
|
832
|
-
};
|
|
833
|
-
dialect: "sqlite";
|
|
834
|
-
}>;
|
|
835
|
-
type User = typeof users.$inferSelect;
|
|
836
|
-
type NewUser = typeof users.$inferInsert;
|
|
837
|
-
type Session = typeof sessions.$inferSelect;
|
|
838
|
-
type Invitation = typeof invitations.$inferSelect;
|
|
839
|
-
type ApiToken = typeof apiTokens.$inferSelect;
|
|
840
|
-
declare const media: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
841
|
-
name: "media";
|
|
842
|
-
schema: undefined;
|
|
843
|
-
columns: {
|
|
844
|
-
id: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
845
|
-
name: "id";
|
|
846
|
-
tableName: "media";
|
|
847
|
-
dataType: "string";
|
|
848
|
-
columnType: "SQLiteText";
|
|
849
|
-
data: string;
|
|
850
|
-
driverParam: string;
|
|
851
|
-
notNull: true;
|
|
852
|
-
hasDefault: true;
|
|
853
|
-
isPrimaryKey: true;
|
|
854
|
-
isAutoincrement: false;
|
|
855
|
-
hasRuntimeDefault: true;
|
|
856
|
-
enumValues: [string, ...string[]];
|
|
857
|
-
baseColumn: never;
|
|
858
|
-
identity: undefined;
|
|
859
|
-
generated: undefined;
|
|
860
|
-
}, {}, {
|
|
861
|
-
length: number | undefined;
|
|
862
|
-
}>;
|
|
863
|
-
filename: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
864
|
-
name: "filename";
|
|
865
|
-
tableName: "media";
|
|
866
|
-
dataType: "string";
|
|
867
|
-
columnType: "SQLiteText";
|
|
868
|
-
data: string;
|
|
869
|
-
driverParam: string;
|
|
870
|
-
notNull: true;
|
|
871
|
-
hasDefault: false;
|
|
872
|
-
isPrimaryKey: false;
|
|
873
|
-
isAutoincrement: false;
|
|
874
|
-
hasRuntimeDefault: false;
|
|
875
|
-
enumValues: [string, ...string[]];
|
|
876
|
-
baseColumn: never;
|
|
877
|
-
identity: undefined;
|
|
878
|
-
generated: undefined;
|
|
879
|
-
}, {}, {
|
|
880
|
-
length: number | undefined;
|
|
881
|
-
}>;
|
|
882
|
-
mime: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
883
|
-
name: "mime";
|
|
884
|
-
tableName: "media";
|
|
885
|
-
dataType: "string";
|
|
886
|
-
columnType: "SQLiteText";
|
|
887
|
-
data: string;
|
|
888
|
-
driverParam: string;
|
|
889
|
-
notNull: true;
|
|
890
|
-
hasDefault: false;
|
|
891
|
-
isPrimaryKey: false;
|
|
892
|
-
isAutoincrement: false;
|
|
893
|
-
hasRuntimeDefault: false;
|
|
894
|
-
enumValues: [string, ...string[]];
|
|
895
|
-
baseColumn: never;
|
|
896
|
-
identity: undefined;
|
|
897
|
-
generated: undefined;
|
|
898
|
-
}, {}, {
|
|
899
|
-
length: number | undefined;
|
|
900
|
-
}>;
|
|
901
|
-
size: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
902
|
-
name: "size";
|
|
903
|
-
tableName: "media";
|
|
904
|
-
dataType: "number";
|
|
905
|
-
columnType: "SQLiteInteger";
|
|
906
|
-
data: number;
|
|
907
|
-
driverParam: number;
|
|
908
|
-
notNull: true;
|
|
909
|
-
hasDefault: false;
|
|
910
|
-
isPrimaryKey: false;
|
|
911
|
-
isAutoincrement: false;
|
|
912
|
-
hasRuntimeDefault: false;
|
|
913
|
-
enumValues: undefined;
|
|
914
|
-
baseColumn: never;
|
|
915
|
-
identity: undefined;
|
|
916
|
-
generated: undefined;
|
|
917
|
-
}, {}, {}>;
|
|
918
|
-
alt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
919
|
-
name: "alt";
|
|
920
|
-
tableName: "media";
|
|
921
|
-
dataType: "string";
|
|
922
|
-
columnType: "SQLiteText";
|
|
923
|
-
data: string;
|
|
924
|
-
driverParam: string;
|
|
925
|
-
notNull: false;
|
|
926
|
-
hasDefault: false;
|
|
927
|
-
isPrimaryKey: false;
|
|
928
|
-
isAutoincrement: false;
|
|
929
|
-
hasRuntimeDefault: false;
|
|
930
|
-
enumValues: [string, ...string[]];
|
|
931
|
-
baseColumn: never;
|
|
932
|
-
identity: undefined;
|
|
933
|
-
generated: undefined;
|
|
934
|
-
}, {}, {
|
|
935
|
-
length: number | undefined;
|
|
936
|
-
}>;
|
|
937
|
-
caption: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
938
|
-
name: "caption";
|
|
939
|
-
tableName: "media";
|
|
940
|
-
dataType: "string";
|
|
941
|
-
columnType: "SQLiteText";
|
|
942
|
-
data: string;
|
|
943
|
-
driverParam: string;
|
|
944
|
-
notNull: false;
|
|
945
|
-
hasDefault: false;
|
|
946
|
-
isPrimaryKey: false;
|
|
947
|
-
isAutoincrement: false;
|
|
948
|
-
hasRuntimeDefault: false;
|
|
949
|
-
enumValues: [string, ...string[]];
|
|
950
|
-
baseColumn: never;
|
|
951
|
-
identity: undefined;
|
|
952
|
-
generated: undefined;
|
|
953
|
-
}, {}, {
|
|
954
|
-
length: number | undefined;
|
|
955
|
-
}>;
|
|
956
|
-
objects: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
957
|
-
name: "objects";
|
|
958
|
-
tableName: "media";
|
|
959
|
-
dataType: "json";
|
|
960
|
-
columnType: "SQLiteTextJson";
|
|
961
|
-
data: Record<string, unknown>;
|
|
962
|
-
driverParam: string;
|
|
963
|
-
notNull: true;
|
|
964
|
-
hasDefault: false;
|
|
965
|
-
isPrimaryKey: false;
|
|
966
|
-
isAutoincrement: false;
|
|
967
|
-
hasRuntimeDefault: false;
|
|
968
|
-
enumValues: undefined;
|
|
969
|
-
baseColumn: never;
|
|
970
|
-
identity: undefined;
|
|
971
|
-
generated: undefined;
|
|
972
|
-
}, {}, {
|
|
973
|
-
$type: Record<string, unknown>;
|
|
974
|
-
}>;
|
|
975
|
-
metaData: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
976
|
-
name: "meta_data";
|
|
977
|
-
tableName: "media";
|
|
978
|
-
dataType: "json";
|
|
979
|
-
columnType: "SQLiteTextJson";
|
|
980
|
-
data: Record<string, unknown>;
|
|
981
|
-
driverParam: string;
|
|
982
|
-
notNull: false;
|
|
983
|
-
hasDefault: false;
|
|
984
|
-
isPrimaryKey: false;
|
|
985
|
-
isAutoincrement: false;
|
|
986
|
-
hasRuntimeDefault: false;
|
|
987
|
-
enumValues: undefined;
|
|
988
|
-
baseColumn: never;
|
|
989
|
-
identity: undefined;
|
|
990
|
-
generated: undefined;
|
|
991
|
-
}, {}, {
|
|
992
|
-
$type: Record<string, unknown>;
|
|
993
|
-
}>;
|
|
994
|
-
createdBy: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
995
|
-
name: "created_by";
|
|
996
|
-
tableName: "media";
|
|
997
|
-
dataType: "string";
|
|
998
|
-
columnType: "SQLiteText";
|
|
999
|
-
data: string;
|
|
1000
|
-
driverParam: string;
|
|
1001
|
-
notNull: false;
|
|
1002
|
-
hasDefault: false;
|
|
1003
|
-
isPrimaryKey: false;
|
|
1004
|
-
isAutoincrement: false;
|
|
1005
|
-
hasRuntimeDefault: false;
|
|
1006
|
-
enumValues: [string, ...string[]];
|
|
1007
|
-
baseColumn: never;
|
|
1008
|
-
identity: undefined;
|
|
1009
|
-
generated: undefined;
|
|
1010
|
-
}, {}, {
|
|
1011
|
-
length: number | undefined;
|
|
1012
|
-
}>;
|
|
1013
|
-
updatedBy: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1014
|
-
name: "updated_by";
|
|
1015
|
-
tableName: "media";
|
|
1016
|
-
dataType: "string";
|
|
1017
|
-
columnType: "SQLiteText";
|
|
1018
|
-
data: string;
|
|
1019
|
-
driverParam: string;
|
|
1020
|
-
notNull: false;
|
|
1021
|
-
hasDefault: false;
|
|
1022
|
-
isPrimaryKey: false;
|
|
1023
|
-
isAutoincrement: false;
|
|
1024
|
-
hasRuntimeDefault: false;
|
|
1025
|
-
enumValues: [string, ...string[]];
|
|
1026
|
-
baseColumn: never;
|
|
1027
|
-
identity: undefined;
|
|
1028
|
-
generated: undefined;
|
|
1029
|
-
}, {}, {
|
|
1030
|
-
length: number | undefined;
|
|
1031
|
-
}>;
|
|
1032
|
-
legacyExtra: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1033
|
-
name: "legacy_extra";
|
|
1034
|
-
tableName: "media";
|
|
1035
|
-
dataType: "json";
|
|
1036
|
-
columnType: "SQLiteTextJson";
|
|
1037
|
-
data: Record<string, unknown> | null;
|
|
1038
|
-
driverParam: string;
|
|
1039
|
-
notNull: false;
|
|
1040
|
-
hasDefault: false;
|
|
1041
|
-
isPrimaryKey: false;
|
|
1042
|
-
isAutoincrement: false;
|
|
1043
|
-
hasRuntimeDefault: false;
|
|
1044
|
-
enumValues: undefined;
|
|
1045
|
-
baseColumn: never;
|
|
1046
|
-
identity: undefined;
|
|
1047
|
-
generated: undefined;
|
|
1048
|
-
}, {}, {
|
|
1049
|
-
$type: Record<string, unknown> | null;
|
|
1050
|
-
}>;
|
|
1051
|
-
createdAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1052
|
-
name: "created_at";
|
|
1053
|
-
tableName: "media";
|
|
1054
|
-
dataType: "string";
|
|
1055
|
-
columnType: "SQLiteText";
|
|
1056
|
-
data: string;
|
|
1057
|
-
driverParam: string;
|
|
1058
|
-
notNull: true;
|
|
1059
|
-
hasDefault: true;
|
|
1060
|
-
isPrimaryKey: false;
|
|
1061
|
-
isAutoincrement: false;
|
|
1062
|
-
hasRuntimeDefault: true;
|
|
1063
|
-
enumValues: [string, ...string[]];
|
|
1064
|
-
baseColumn: never;
|
|
1065
|
-
identity: undefined;
|
|
1066
|
-
generated: undefined;
|
|
1067
|
-
}, {}, {
|
|
1068
|
-
length: number | undefined;
|
|
1069
|
-
}>;
|
|
1070
|
-
updatedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1071
|
-
name: "updated_at";
|
|
1072
|
-
tableName: "media";
|
|
1073
|
-
dataType: "string";
|
|
1074
|
-
columnType: "SQLiteText";
|
|
1075
|
-
data: string;
|
|
1076
|
-
driverParam: string;
|
|
1077
|
-
notNull: true;
|
|
1078
|
-
hasDefault: true;
|
|
1079
|
-
isPrimaryKey: false;
|
|
1080
|
-
isAutoincrement: false;
|
|
1081
|
-
hasRuntimeDefault: true;
|
|
1082
|
-
enumValues: [string, ...string[]];
|
|
1083
|
-
baseColumn: never;
|
|
1084
|
-
identity: undefined;
|
|
1085
|
-
generated: undefined;
|
|
1086
|
-
}, {}, {
|
|
1087
|
-
length: number | undefined;
|
|
1088
|
-
}>;
|
|
1089
|
-
};
|
|
1090
|
-
dialect: "sqlite";
|
|
1091
|
-
}>;
|
|
1092
|
-
type Media = typeof media.$inferSelect;
|
|
1093
|
-
type NewMedia = typeof media.$inferInsert;
|
|
1094
|
-
/** Collection definitions — the primary content model of Open Commune. */
|
|
1095
|
-
declare const collectionDefinitions: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
1096
|
-
name: "collection_definitions";
|
|
1097
|
-
schema: undefined;
|
|
1098
|
-
columns: {
|
|
1099
|
-
id: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1100
|
-
name: "id";
|
|
1101
|
-
tableName: "collection_definitions";
|
|
1102
|
-
dataType: "string";
|
|
1103
|
-
columnType: "SQLiteText";
|
|
1104
|
-
data: string;
|
|
1105
|
-
driverParam: string;
|
|
1106
|
-
notNull: true;
|
|
1107
|
-
hasDefault: true;
|
|
1108
|
-
isPrimaryKey: true;
|
|
1109
|
-
isAutoincrement: false;
|
|
1110
|
-
hasRuntimeDefault: true;
|
|
1111
|
-
enumValues: [string, ...string[]];
|
|
1112
|
-
baseColumn: never;
|
|
1113
|
-
identity: undefined;
|
|
1114
|
-
generated: undefined;
|
|
1115
|
-
}, {}, {
|
|
1116
|
-
length: number | undefined;
|
|
1117
|
-
}>;
|
|
1118
|
-
name: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1119
|
-
name: "name";
|
|
1120
|
-
tableName: "collection_definitions";
|
|
1121
|
-
dataType: "string";
|
|
1122
|
-
columnType: "SQLiteText";
|
|
1123
|
-
data: string;
|
|
1124
|
-
driverParam: string;
|
|
1125
|
-
notNull: true;
|
|
1126
|
-
hasDefault: false;
|
|
1127
|
-
isPrimaryKey: false;
|
|
1128
|
-
isAutoincrement: false;
|
|
1129
|
-
hasRuntimeDefault: false;
|
|
1130
|
-
enumValues: [string, ...string[]];
|
|
1131
|
-
baseColumn: never;
|
|
1132
|
-
identity: undefined;
|
|
1133
|
-
generated: undefined;
|
|
1134
|
-
}, {}, {
|
|
1135
|
-
length: number | undefined;
|
|
1136
|
-
}>;
|
|
1137
|
-
slug: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1138
|
-
name: "slug";
|
|
1139
|
-
tableName: "collection_definitions";
|
|
1140
|
-
dataType: "string";
|
|
1141
|
-
columnType: "SQLiteText";
|
|
1142
|
-
data: string;
|
|
1143
|
-
driverParam: string;
|
|
1144
|
-
notNull: true;
|
|
1145
|
-
hasDefault: false;
|
|
1146
|
-
isPrimaryKey: false;
|
|
1147
|
-
isAutoincrement: false;
|
|
1148
|
-
hasRuntimeDefault: false;
|
|
1149
|
-
enumValues: [string, ...string[]];
|
|
1150
|
-
baseColumn: never;
|
|
1151
|
-
identity: undefined;
|
|
1152
|
-
generated: undefined;
|
|
1153
|
-
}, {}, {
|
|
1154
|
-
length: number | undefined;
|
|
1155
|
-
}>;
|
|
1156
|
-
description: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1157
|
-
name: "description";
|
|
1158
|
-
tableName: "collection_definitions";
|
|
1159
|
-
dataType: "string";
|
|
1160
|
-
columnType: "SQLiteText";
|
|
1161
|
-
data: string;
|
|
1162
|
-
driverParam: string;
|
|
1163
|
-
notNull: false;
|
|
1164
|
-
hasDefault: false;
|
|
1165
|
-
isPrimaryKey: false;
|
|
1166
|
-
isAutoincrement: false;
|
|
1167
|
-
hasRuntimeDefault: false;
|
|
1168
|
-
enumValues: [string, ...string[]];
|
|
1169
|
-
baseColumn: never;
|
|
1170
|
-
identity: undefined;
|
|
1171
|
-
generated: undefined;
|
|
1172
|
-
}, {}, {
|
|
1173
|
-
length: number | undefined;
|
|
1174
|
-
}>;
|
|
1175
|
-
fields: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1176
|
-
name: "fields";
|
|
1177
|
-
tableName: "collection_definitions";
|
|
1178
|
-
dataType: "json";
|
|
1179
|
-
columnType: "SQLiteTextJson";
|
|
1180
|
-
data: {
|
|
1181
|
-
name: string;
|
|
1182
|
-
label: string;
|
|
1183
|
-
type: "number" | "boolean" | "text" | "rich-text" | "date" | "media" | "relation" | "select" | "steps" | "json";
|
|
1184
|
-
required: boolean;
|
|
1185
|
-
hidden: boolean;
|
|
1186
|
-
options?: string[] | undefined;
|
|
1187
|
-
target?: string | undefined;
|
|
1188
|
-
}[];
|
|
1189
|
-
driverParam: string;
|
|
1190
|
-
notNull: true;
|
|
1191
|
-
hasDefault: false;
|
|
1192
|
-
isPrimaryKey: false;
|
|
1193
|
-
isAutoincrement: false;
|
|
1194
|
-
hasRuntimeDefault: false;
|
|
1195
|
-
enumValues: undefined;
|
|
1196
|
-
baseColumn: never;
|
|
1197
|
-
identity: undefined;
|
|
1198
|
-
generated: undefined;
|
|
1199
|
-
}, {}, {
|
|
1200
|
-
$type: {
|
|
1201
|
-
name: string;
|
|
1202
|
-
label: string;
|
|
1203
|
-
type: "number" | "boolean" | "text" | "rich-text" | "date" | "media" | "relation" | "select" | "steps" | "json";
|
|
1204
|
-
required: boolean;
|
|
1205
|
-
hidden: boolean;
|
|
1206
|
-
options?: string[] | undefined;
|
|
1207
|
-
target?: string | undefined;
|
|
1208
|
-
}[];
|
|
1209
|
-
}>;
|
|
1210
|
-
editor: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1211
|
-
name: "editor";
|
|
1212
|
-
tableName: "collection_definitions";
|
|
1213
|
-
dataType: "json";
|
|
1214
|
-
columnType: "SQLiteTextJson";
|
|
1215
|
-
data: Record<string, unknown>;
|
|
1216
|
-
driverParam: string;
|
|
1217
|
-
notNull: false;
|
|
1218
|
-
hasDefault: false;
|
|
1219
|
-
isPrimaryKey: false;
|
|
1220
|
-
isAutoincrement: false;
|
|
1221
|
-
hasRuntimeDefault: false;
|
|
1222
|
-
enumValues: undefined;
|
|
1223
|
-
baseColumn: never;
|
|
1224
|
-
identity: undefined;
|
|
1225
|
-
generated: undefined;
|
|
1226
|
-
}, {}, {
|
|
1227
|
-
$type: Record<string, unknown>;
|
|
1228
|
-
}>;
|
|
1229
|
-
display: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1230
|
-
name: "display";
|
|
1231
|
-
tableName: "collection_definitions";
|
|
1232
|
-
dataType: "json";
|
|
1233
|
-
columnType: "SQLiteTextJson";
|
|
1234
|
-
data: Record<string, unknown>;
|
|
1235
|
-
driverParam: string;
|
|
1236
|
-
notNull: false;
|
|
1237
|
-
hasDefault: false;
|
|
1238
|
-
isPrimaryKey: false;
|
|
1239
|
-
isAutoincrement: false;
|
|
1240
|
-
hasRuntimeDefault: false;
|
|
1241
|
-
enumValues: undefined;
|
|
1242
|
-
baseColumn: never;
|
|
1243
|
-
identity: undefined;
|
|
1244
|
-
generated: undefined;
|
|
1245
|
-
}, {}, {
|
|
1246
|
-
$type: Record<string, unknown>;
|
|
1247
|
-
}>;
|
|
1248
|
-
headings: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1249
|
-
name: "headings";
|
|
1250
|
-
tableName: "collection_definitions";
|
|
1251
|
-
dataType: "json";
|
|
1252
|
-
columnType: "SQLiteTextJson";
|
|
1253
|
-
data: Record<string, unknown>;
|
|
1254
|
-
driverParam: string;
|
|
1255
|
-
notNull: false;
|
|
1256
|
-
hasDefault: false;
|
|
1257
|
-
isPrimaryKey: false;
|
|
1258
|
-
isAutoincrement: false;
|
|
1259
|
-
hasRuntimeDefault: false;
|
|
1260
|
-
enumValues: undefined;
|
|
1261
|
-
baseColumn: never;
|
|
1262
|
-
identity: undefined;
|
|
1263
|
-
generated: undefined;
|
|
1264
|
-
}, {}, {
|
|
1265
|
-
$type: Record<string, unknown>;
|
|
1266
|
-
}>;
|
|
1267
|
-
createdBy: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1268
|
-
name: "created_by";
|
|
1269
|
-
tableName: "collection_definitions";
|
|
1270
|
-
dataType: "string";
|
|
1271
|
-
columnType: "SQLiteText";
|
|
1272
|
-
data: string;
|
|
1273
|
-
driverParam: string;
|
|
1274
|
-
notNull: false;
|
|
1275
|
-
hasDefault: false;
|
|
1276
|
-
isPrimaryKey: false;
|
|
1277
|
-
isAutoincrement: false;
|
|
1278
|
-
hasRuntimeDefault: false;
|
|
1279
|
-
enumValues: [string, ...string[]];
|
|
1280
|
-
baseColumn: never;
|
|
1281
|
-
identity: undefined;
|
|
1282
|
-
generated: undefined;
|
|
1283
|
-
}, {}, {
|
|
1284
|
-
length: number | undefined;
|
|
1285
|
-
}>;
|
|
1286
|
-
updatedBy: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1287
|
-
name: "updated_by";
|
|
1288
|
-
tableName: "collection_definitions";
|
|
1289
|
-
dataType: "string";
|
|
1290
|
-
columnType: "SQLiteText";
|
|
1291
|
-
data: string;
|
|
1292
|
-
driverParam: string;
|
|
1293
|
-
notNull: false;
|
|
1294
|
-
hasDefault: false;
|
|
1295
|
-
isPrimaryKey: false;
|
|
1296
|
-
isAutoincrement: false;
|
|
1297
|
-
hasRuntimeDefault: false;
|
|
1298
|
-
enumValues: [string, ...string[]];
|
|
1299
|
-
baseColumn: never;
|
|
1300
|
-
identity: undefined;
|
|
1301
|
-
generated: undefined;
|
|
1302
|
-
}, {}, {
|
|
1303
|
-
length: number | undefined;
|
|
1304
|
-
}>;
|
|
1305
|
-
legacyExtra: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1306
|
-
name: "legacy_extra";
|
|
1307
|
-
tableName: "collection_definitions";
|
|
1308
|
-
dataType: "json";
|
|
1309
|
-
columnType: "SQLiteTextJson";
|
|
1310
|
-
data: Record<string, unknown> | null;
|
|
1311
|
-
driverParam: string;
|
|
1312
|
-
notNull: false;
|
|
1313
|
-
hasDefault: false;
|
|
1314
|
-
isPrimaryKey: false;
|
|
1315
|
-
isAutoincrement: false;
|
|
1316
|
-
hasRuntimeDefault: false;
|
|
1317
|
-
enumValues: undefined;
|
|
1318
|
-
baseColumn: never;
|
|
1319
|
-
identity: undefined;
|
|
1320
|
-
generated: undefined;
|
|
1321
|
-
}, {}, {
|
|
1322
|
-
$type: Record<string, unknown> | null;
|
|
1323
|
-
}>;
|
|
1324
|
-
createdAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1325
|
-
name: "created_at";
|
|
1326
|
-
tableName: "collection_definitions";
|
|
1327
|
-
dataType: "string";
|
|
1328
|
-
columnType: "SQLiteText";
|
|
1329
|
-
data: string;
|
|
1330
|
-
driverParam: string;
|
|
1331
|
-
notNull: true;
|
|
1332
|
-
hasDefault: true;
|
|
1333
|
-
isPrimaryKey: false;
|
|
1334
|
-
isAutoincrement: false;
|
|
1335
|
-
hasRuntimeDefault: true;
|
|
1336
|
-
enumValues: [string, ...string[]];
|
|
1337
|
-
baseColumn: never;
|
|
1338
|
-
identity: undefined;
|
|
1339
|
-
generated: undefined;
|
|
1340
|
-
}, {}, {
|
|
1341
|
-
length: number | undefined;
|
|
1342
|
-
}>;
|
|
1343
|
-
updatedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1344
|
-
name: "updated_at";
|
|
1345
|
-
tableName: "collection_definitions";
|
|
1346
|
-
dataType: "string";
|
|
1347
|
-
columnType: "SQLiteText";
|
|
1348
|
-
data: string;
|
|
1349
|
-
driverParam: string;
|
|
1350
|
-
notNull: true;
|
|
1351
|
-
hasDefault: true;
|
|
1352
|
-
isPrimaryKey: false;
|
|
1353
|
-
isAutoincrement: false;
|
|
1354
|
-
hasRuntimeDefault: true;
|
|
1355
|
-
enumValues: [string, ...string[]];
|
|
1356
|
-
baseColumn: never;
|
|
1357
|
-
identity: undefined;
|
|
1358
|
-
generated: undefined;
|
|
1359
|
-
}, {}, {
|
|
1360
|
-
length: number | undefined;
|
|
1361
|
-
}>;
|
|
1362
|
-
};
|
|
1363
|
-
dialect: "sqlite";
|
|
1364
|
-
}>;
|
|
1365
|
-
/** Entries of a collection — validated against the definition's fields. */
|
|
1366
|
-
declare const entries: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
1367
|
-
name: "entries";
|
|
1368
|
-
schema: undefined;
|
|
1369
|
-
columns: {
|
|
1370
|
-
id: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1371
|
-
name: "id";
|
|
1372
|
-
tableName: "entries";
|
|
1373
|
-
dataType: "string";
|
|
1374
|
-
columnType: "SQLiteText";
|
|
1375
|
-
data: string;
|
|
1376
|
-
driverParam: string;
|
|
1377
|
-
notNull: true;
|
|
1378
|
-
hasDefault: true;
|
|
1379
|
-
isPrimaryKey: true;
|
|
1380
|
-
isAutoincrement: false;
|
|
1381
|
-
hasRuntimeDefault: true;
|
|
1382
|
-
enumValues: [string, ...string[]];
|
|
1383
|
-
baseColumn: never;
|
|
1384
|
-
identity: undefined;
|
|
1385
|
-
generated: undefined;
|
|
1386
|
-
}, {}, {
|
|
1387
|
-
length: number | undefined;
|
|
1388
|
-
}>;
|
|
1389
|
-
collectionId: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1390
|
-
name: "collection_id";
|
|
1391
|
-
tableName: "entries";
|
|
1392
|
-
dataType: "string";
|
|
1393
|
-
columnType: "SQLiteText";
|
|
1394
|
-
data: string;
|
|
1395
|
-
driverParam: string;
|
|
1396
|
-
notNull: true;
|
|
1397
|
-
hasDefault: false;
|
|
1398
|
-
isPrimaryKey: false;
|
|
1399
|
-
isAutoincrement: false;
|
|
1400
|
-
hasRuntimeDefault: false;
|
|
1401
|
-
enumValues: [string, ...string[]];
|
|
1402
|
-
baseColumn: never;
|
|
1403
|
-
identity: undefined;
|
|
1404
|
-
generated: undefined;
|
|
1405
|
-
}, {}, {
|
|
1406
|
-
length: number | undefined;
|
|
1407
|
-
}>;
|
|
1408
|
-
title: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1409
|
-
name: "title";
|
|
1410
|
-
tableName: "entries";
|
|
1411
|
-
dataType: "string";
|
|
1412
|
-
columnType: "SQLiteText";
|
|
1413
|
-
data: string;
|
|
1414
|
-
driverParam: string;
|
|
1415
|
-
notNull: true;
|
|
1416
|
-
hasDefault: false;
|
|
1417
|
-
isPrimaryKey: false;
|
|
1418
|
-
isAutoincrement: false;
|
|
1419
|
-
hasRuntimeDefault: false;
|
|
1420
|
-
enumValues: [string, ...string[]];
|
|
1421
|
-
baseColumn: never;
|
|
1422
|
-
identity: undefined;
|
|
1423
|
-
generated: undefined;
|
|
1424
|
-
}, {}, {
|
|
1425
|
-
length: number | undefined;
|
|
1426
|
-
}>;
|
|
1427
|
-
slug: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1428
|
-
name: "slug";
|
|
1429
|
-
tableName: "entries";
|
|
1430
|
-
dataType: "string";
|
|
1431
|
-
columnType: "SQLiteText";
|
|
1432
|
-
data: string;
|
|
1433
|
-
driverParam: string;
|
|
1434
|
-
notNull: true;
|
|
1435
|
-
hasDefault: false;
|
|
1436
|
-
isPrimaryKey: false;
|
|
1437
|
-
isAutoincrement: false;
|
|
1438
|
-
hasRuntimeDefault: false;
|
|
1439
|
-
enumValues: [string, ...string[]];
|
|
1440
|
-
baseColumn: never;
|
|
1441
|
-
identity: undefined;
|
|
1442
|
-
generated: undefined;
|
|
1443
|
-
}, {}, {
|
|
1444
|
-
length: number | undefined;
|
|
1445
|
-
}>;
|
|
1446
|
-
data: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1447
|
-
name: "data";
|
|
1448
|
-
tableName: "entries";
|
|
1449
|
-
dataType: "json";
|
|
1450
|
-
columnType: "SQLiteTextJson";
|
|
1451
|
-
data: Record<string, unknown>;
|
|
1452
|
-
driverParam: string;
|
|
1453
|
-
notNull: true;
|
|
1454
|
-
hasDefault: false;
|
|
1455
|
-
isPrimaryKey: false;
|
|
1456
|
-
isAutoincrement: false;
|
|
1457
|
-
hasRuntimeDefault: false;
|
|
1458
|
-
enumValues: undefined;
|
|
1459
|
-
baseColumn: never;
|
|
1460
|
-
identity: undefined;
|
|
1461
|
-
generated: undefined;
|
|
1462
|
-
}, {}, {
|
|
1463
|
-
$type: Record<string, unknown>;
|
|
1464
|
-
}>;
|
|
1465
|
-
related: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1466
|
-
name: "related";
|
|
1467
|
-
tableName: "entries";
|
|
1468
|
-
dataType: "json";
|
|
1469
|
-
columnType: "SQLiteTextJson";
|
|
1470
|
-
data: string[];
|
|
1471
|
-
driverParam: string;
|
|
1472
|
-
notNull: false;
|
|
1473
|
-
hasDefault: false;
|
|
1474
|
-
isPrimaryKey: false;
|
|
1475
|
-
isAutoincrement: false;
|
|
1476
|
-
hasRuntimeDefault: false;
|
|
1477
|
-
enumValues: undefined;
|
|
1478
|
-
baseColumn: never;
|
|
1479
|
-
identity: undefined;
|
|
1480
|
-
generated: undefined;
|
|
1481
|
-
}, {}, {
|
|
1482
|
-
$type: string[];
|
|
1483
|
-
}>;
|
|
1484
|
-
createdBy: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1485
|
-
name: "created_by";
|
|
1486
|
-
tableName: "entries";
|
|
1487
|
-
dataType: "string";
|
|
1488
|
-
columnType: "SQLiteText";
|
|
1489
|
-
data: string;
|
|
1490
|
-
driverParam: string;
|
|
1491
|
-
notNull: false;
|
|
1492
|
-
hasDefault: false;
|
|
1493
|
-
isPrimaryKey: false;
|
|
1494
|
-
isAutoincrement: false;
|
|
1495
|
-
hasRuntimeDefault: false;
|
|
1496
|
-
enumValues: [string, ...string[]];
|
|
1497
|
-
baseColumn: never;
|
|
1498
|
-
identity: undefined;
|
|
1499
|
-
generated: undefined;
|
|
1500
|
-
}, {}, {
|
|
1501
|
-
length: number | undefined;
|
|
1502
|
-
}>;
|
|
1503
|
-
updatedBy: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1504
|
-
name: "updated_by";
|
|
1505
|
-
tableName: "entries";
|
|
1506
|
-
dataType: "string";
|
|
1507
|
-
columnType: "SQLiteText";
|
|
1508
|
-
data: string;
|
|
1509
|
-
driverParam: string;
|
|
1510
|
-
notNull: false;
|
|
1511
|
-
hasDefault: false;
|
|
1512
|
-
isPrimaryKey: false;
|
|
1513
|
-
isAutoincrement: false;
|
|
1514
|
-
hasRuntimeDefault: false;
|
|
1515
|
-
enumValues: [string, ...string[]];
|
|
1516
|
-
baseColumn: never;
|
|
1517
|
-
identity: undefined;
|
|
1518
|
-
generated: undefined;
|
|
1519
|
-
}, {}, {
|
|
1520
|
-
length: number | undefined;
|
|
1521
|
-
}>;
|
|
1522
|
-
status: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1523
|
-
name: "status";
|
|
1524
|
-
tableName: "entries";
|
|
1525
|
-
dataType: "string";
|
|
1526
|
-
columnType: "SQLiteText";
|
|
1527
|
-
data: "draft" | "waiting" | "ready" | "scheduled" | "published";
|
|
1528
|
-
driverParam: string;
|
|
1529
|
-
notNull: true;
|
|
1530
|
-
hasDefault: true;
|
|
1531
|
-
isPrimaryKey: false;
|
|
1532
|
-
isAutoincrement: false;
|
|
1533
|
-
hasRuntimeDefault: false;
|
|
1534
|
-
enumValues: ["draft", "waiting", "ready", "scheduled", "published"];
|
|
1535
|
-
baseColumn: never;
|
|
1536
|
-
identity: undefined;
|
|
1537
|
-
generated: undefined;
|
|
1538
|
-
}, {}, {
|
|
1539
|
-
length: number | undefined;
|
|
1540
|
-
}>;
|
|
1541
|
-
publishedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1542
|
-
name: "published_at";
|
|
1543
|
-
tableName: "entries";
|
|
1544
|
-
dataType: "string";
|
|
1545
|
-
columnType: "SQLiteText";
|
|
1546
|
-
data: string;
|
|
1547
|
-
driverParam: string;
|
|
1548
|
-
notNull: false;
|
|
1549
|
-
hasDefault: false;
|
|
1550
|
-
isPrimaryKey: false;
|
|
1551
|
-
isAutoincrement: false;
|
|
1552
|
-
hasRuntimeDefault: false;
|
|
1553
|
-
enumValues: [string, ...string[]];
|
|
1554
|
-
baseColumn: never;
|
|
1555
|
-
identity: undefined;
|
|
1556
|
-
generated: undefined;
|
|
1557
|
-
}, {}, {
|
|
1558
|
-
length: number | undefined;
|
|
1559
|
-
}>;
|
|
1560
|
-
legacyExtra: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1561
|
-
name: "legacy_extra";
|
|
1562
|
-
tableName: "entries";
|
|
1563
|
-
dataType: "json";
|
|
1564
|
-
columnType: "SQLiteTextJson";
|
|
1565
|
-
data: Record<string, unknown> | null;
|
|
1566
|
-
driverParam: string;
|
|
1567
|
-
notNull: false;
|
|
1568
|
-
hasDefault: false;
|
|
1569
|
-
isPrimaryKey: false;
|
|
1570
|
-
isAutoincrement: false;
|
|
1571
|
-
hasRuntimeDefault: false;
|
|
1572
|
-
enumValues: undefined;
|
|
1573
|
-
baseColumn: never;
|
|
1574
|
-
identity: undefined;
|
|
1575
|
-
generated: undefined;
|
|
1576
|
-
}, {}, {
|
|
1577
|
-
$type: Record<string, unknown> | null;
|
|
1578
|
-
}>;
|
|
1579
|
-
createdAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1580
|
-
name: "created_at";
|
|
1581
|
-
tableName: "entries";
|
|
1582
|
-
dataType: "string";
|
|
1583
|
-
columnType: "SQLiteText";
|
|
1584
|
-
data: string;
|
|
1585
|
-
driverParam: string;
|
|
1586
|
-
notNull: true;
|
|
1587
|
-
hasDefault: true;
|
|
1588
|
-
isPrimaryKey: false;
|
|
1589
|
-
isAutoincrement: false;
|
|
1590
|
-
hasRuntimeDefault: true;
|
|
1591
|
-
enumValues: [string, ...string[]];
|
|
1592
|
-
baseColumn: never;
|
|
1593
|
-
identity: undefined;
|
|
1594
|
-
generated: undefined;
|
|
1595
|
-
}, {}, {
|
|
1596
|
-
length: number | undefined;
|
|
1597
|
-
}>;
|
|
1598
|
-
updatedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1599
|
-
name: "updated_at";
|
|
1600
|
-
tableName: "entries";
|
|
1601
|
-
dataType: "string";
|
|
1602
|
-
columnType: "SQLiteText";
|
|
1603
|
-
data: string;
|
|
1604
|
-
driverParam: string;
|
|
1605
|
-
notNull: true;
|
|
1606
|
-
hasDefault: true;
|
|
1607
|
-
isPrimaryKey: false;
|
|
1608
|
-
isAutoincrement: false;
|
|
1609
|
-
hasRuntimeDefault: true;
|
|
1610
|
-
enumValues: [string, ...string[]];
|
|
1611
|
-
baseColumn: never;
|
|
1612
|
-
identity: undefined;
|
|
1613
|
-
generated: undefined;
|
|
1614
|
-
}, {}, {
|
|
1615
|
-
length: number | undefined;
|
|
1616
|
-
}>;
|
|
1617
|
-
};
|
|
1618
|
-
dialect: "sqlite";
|
|
1619
|
-
}>;
|
|
1620
|
-
type CollectionDefinition = typeof collectionDefinitions.$inferSelect;
|
|
1621
|
-
type NewCollectionDefinition = typeof collectionDefinitions.$inferInsert;
|
|
1622
|
-
type Entry = typeof entries.$inferSelect;
|
|
1623
|
-
type NewEntry = typeof entries.$inferInsert;
|
|
1624
|
-
|
|
1625
|
-
type schema_Address = Address;
|
|
1626
|
-
type schema_ApiToken = ApiToken;
|
|
1627
|
-
type schema_CollectionDefinition = CollectionDefinition;
|
|
1628
|
-
type schema_Entry = Entry;
|
|
1629
|
-
declare const schema_FIELD_TYPES: typeof FIELD_TYPES;
|
|
1630
|
-
declare const schema_FieldDefinition: typeof FieldDefinition;
|
|
1631
|
-
declare const schema_FieldType: typeof FieldType;
|
|
1632
|
-
type schema_Invitation = Invitation;
|
|
1633
|
-
type schema_Media = Media;
|
|
1634
|
-
type schema_NewCollectionDefinition = NewCollectionDefinition;
|
|
1635
|
-
type schema_NewEntry = NewEntry;
|
|
1636
|
-
type schema_NewMedia = NewMedia;
|
|
1637
|
-
type schema_NewOrganization = NewOrganization;
|
|
1638
|
-
type schema_NewUser = NewUser;
|
|
1639
|
-
type schema_Organization = Organization;
|
|
1640
|
-
declare const schema_PUBLICATION_STATUSES: typeof PUBLICATION_STATUSES;
|
|
1641
|
-
type schema_Session = Session;
|
|
1642
|
-
type schema_User = User;
|
|
1643
|
-
declare const schema_addressSchema: typeof addressSchema;
|
|
1644
|
-
declare const schema_apiTokens: typeof apiTokens;
|
|
1645
|
-
declare const schema_collectionDefinitions: typeof collectionDefinitions;
|
|
1646
|
-
declare const schema_entries: typeof entries;
|
|
1647
|
-
declare const schema_fieldDefinitionSchema: typeof fieldDefinitionSchema;
|
|
1648
|
-
declare const schema_invitations: typeof invitations;
|
|
1649
|
-
declare const schema_media: typeof media;
|
|
1650
|
-
declare const schema_organization: typeof organization;
|
|
1651
|
-
declare const schema_sessions: typeof sessions;
|
|
1652
|
-
declare const schema_users: typeof users;
|
|
1653
|
-
declare namespace schema {
|
|
1654
|
-
export { schema_FIELD_TYPES as FIELD_TYPES, schema_FieldDefinition as FieldDefinition, schema_FieldType as FieldType, schema_PUBLICATION_STATUSES as PUBLICATION_STATUSES, schema_addressSchema as addressSchema, schema_apiTokens as apiTokens, schema_collectionDefinitions as collectionDefinitions, schema_entries as entries, schema_fieldDefinitionSchema as fieldDefinitionSchema, schema_invitations as invitations, schema_media as media, schema_organization as organization, schema_sessions as sessions, schema_users as users };
|
|
1655
|
-
export type { schema_Address as Address, schema_ApiToken as ApiToken, schema_CollectionDefinition as CollectionDefinition, schema_Entry as Entry, schema_Invitation as Invitation, schema_Media as Media, schema_NewCollectionDefinition as NewCollectionDefinition, schema_NewEntry as NewEntry, schema_NewMedia as NewMedia, schema_NewOrganization as NewOrganization, schema_NewUser as NewUser, schema_Organization as Organization, schema_Session as Session, schema_User as User };
|
|
1656
|
-
}
|
|
1657
|
-
|
|
1658
32
|
/** Open and migrate the instance database: one instance, one SQLite file. */
|
|
1659
33
|
declare function connectDb(dataDir: string, migrationsDir?: string): drizzle_orm_bun_sqlite.BunSQLiteDatabase<typeof schema> & {
|
|
1660
34
|
$client: Database;
|
|
@@ -1919,13 +293,13 @@ declare class UsersService {
|
|
|
1919
293
|
verifyApiToken(token: string): Promise<boolean>;
|
|
1920
294
|
revokeApiToken(id: string): Promise<void>;
|
|
1921
295
|
listApiTokens(): Promise<Pick<{
|
|
1922
|
-
name: string;
|
|
1923
296
|
id: string;
|
|
297
|
+
name: string;
|
|
1924
298
|
createdAt: string;
|
|
1925
299
|
revokedAt: string | null;
|
|
1926
300
|
tokenHash: string;
|
|
1927
301
|
lastUsedAt: string | null;
|
|
1928
|
-
}, "
|
|
302
|
+
}, "id" | "name" | "createdAt" | "revokedAt" | "lastUsedAt">[]>;
|
|
1929
303
|
}
|
|
1930
304
|
|
|
1931
305
|
/**
|
|
@@ -1940,75 +314,6 @@ declare class OrganizationRepository {
|
|
|
1940
314
|
update(input: Partial<NewOrganization>): Promise<Organization | undefined>;
|
|
1941
315
|
}
|
|
1942
316
|
|
|
1943
|
-
declare const organizationInitDto: z.ZodObject<{
|
|
1944
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
1945
|
-
commune: "commune";
|
|
1946
|
-
intercommunality: "intercommunality";
|
|
1947
|
-
syndicate: "syndicate";
|
|
1948
|
-
other: "other";
|
|
1949
|
-
}>>;
|
|
1950
|
-
name: z.ZodString;
|
|
1951
|
-
slug: z.ZodString;
|
|
1952
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1953
|
-
address: z.ZodOptional<z.ZodNullable<z.ZodType<{
|
|
1954
|
-
street?: string | undefined;
|
|
1955
|
-
postalCode?: string | undefined;
|
|
1956
|
-
city?: string | undefined;
|
|
1957
|
-
}, {
|
|
1958
|
-
street?: string | undefined;
|
|
1959
|
-
postalCode?: string | undefined;
|
|
1960
|
-
city?: string | undefined;
|
|
1961
|
-
}, z.core.$ZodTypeInternals<{
|
|
1962
|
-
street?: string | undefined;
|
|
1963
|
-
postalCode?: string | undefined;
|
|
1964
|
-
city?: string | undefined;
|
|
1965
|
-
}, {
|
|
1966
|
-
street?: string | undefined;
|
|
1967
|
-
postalCode?: string | undefined;
|
|
1968
|
-
city?: string | undefined;
|
|
1969
|
-
}>>>>;
|
|
1970
|
-
deployment: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
|
|
1971
|
-
settings: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
|
|
1972
|
-
}, {
|
|
1973
|
-
out: {};
|
|
1974
|
-
in: {};
|
|
1975
|
-
}>;
|
|
1976
|
-
declare const organizationUpdateDto: z.ZodObject<{
|
|
1977
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
1978
|
-
commune: "commune";
|
|
1979
|
-
intercommunality: "intercommunality";
|
|
1980
|
-
syndicate: "syndicate";
|
|
1981
|
-
other: "other";
|
|
1982
|
-
}>>;
|
|
1983
|
-
name: z.ZodOptional<z.ZodString>;
|
|
1984
|
-
slug: z.ZodOptional<z.ZodString>;
|
|
1985
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1986
|
-
address: z.ZodOptional<z.ZodNullable<z.ZodType<{
|
|
1987
|
-
street?: string | undefined;
|
|
1988
|
-
postalCode?: string | undefined;
|
|
1989
|
-
city?: string | undefined;
|
|
1990
|
-
}, {
|
|
1991
|
-
street?: string | undefined;
|
|
1992
|
-
postalCode?: string | undefined;
|
|
1993
|
-
city?: string | undefined;
|
|
1994
|
-
}, z.core.$ZodTypeInternals<{
|
|
1995
|
-
street?: string | undefined;
|
|
1996
|
-
postalCode?: string | undefined;
|
|
1997
|
-
city?: string | undefined;
|
|
1998
|
-
}, {
|
|
1999
|
-
street?: string | undefined;
|
|
2000
|
-
postalCode?: string | undefined;
|
|
2001
|
-
city?: string | undefined;
|
|
2002
|
-
}>>>>;
|
|
2003
|
-
deployment: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
|
|
2004
|
-
settings: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
|
|
2005
|
-
}, {
|
|
2006
|
-
out: {};
|
|
2007
|
-
in: {};
|
|
2008
|
-
}>;
|
|
2009
|
-
type OrganizationInitDto = z.infer<typeof organizationInitDto>;
|
|
2010
|
-
type OrganizationUpdateDto = z.infer<typeof organizationUpdateDto>;
|
|
2011
|
-
|
|
2012
317
|
/** Instance settings — a singleton: initialised once, then only updated. */
|
|
2013
318
|
declare class OrganizationService {
|
|
2014
319
|
private readonly repository;
|
|
@@ -2042,31 +347,6 @@ declare class MediaRepository {
|
|
|
2042
347
|
delete(id: string): Promise<void>;
|
|
2043
348
|
}
|
|
2044
349
|
|
|
2045
|
-
declare const mediaRequestUploadDto: z.ZodObject<{
|
|
2046
|
-
filename: z.ZodString;
|
|
2047
|
-
mime: z.ZodString;
|
|
2048
|
-
metaData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2049
|
-
}, z.core.$strip>;
|
|
2050
|
-
declare const mediaFinalizeDto: z.ZodObject<{
|
|
2051
|
-
key: z.ZodString;
|
|
2052
|
-
filename: z.ZodString;
|
|
2053
|
-
mime: z.ZodString;
|
|
2054
|
-
alt: z.ZodOptional<z.ZodString>;
|
|
2055
|
-
metaData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2056
|
-
}, z.core.$strip>;
|
|
2057
|
-
type MediaRequestUploadDto = z.infer<typeof mediaRequestUploadDto>;
|
|
2058
|
-
type MediaFinalizeDto = z.infer<typeof mediaFinalizeDto>;
|
|
2059
|
-
|
|
2060
|
-
declare const mediaUpdateDto: z.ZodObject<{
|
|
2061
|
-
filename: z.ZodOptional<z.ZodString>;
|
|
2062
|
-
alt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2063
|
-
caption: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2064
|
-
}, {
|
|
2065
|
-
out: {};
|
|
2066
|
-
in: {};
|
|
2067
|
-
}>;
|
|
2068
|
-
type MediaUpdateDto = z.infer<typeof mediaUpdateDto>;
|
|
2069
|
-
|
|
2070
350
|
/** Closed allowlist. SVG is excluded on purpose: it is an XSS surface. */
|
|
2071
351
|
declare const ALLOWED_MIME: Set<string>;
|
|
2072
352
|
/**
|
|
@@ -2146,7 +426,7 @@ declare class EntryRepository {
|
|
|
2146
426
|
*/
|
|
2147
427
|
private matching;
|
|
2148
428
|
/**
|
|
2149
|
-
* Text search across collections, most recently updated first — how
|
|
429
|
+
* Text search across collections, most recently updated first — how one
|
|
2150
430
|
* finds content without knowing where it lives.
|
|
2151
431
|
*/
|
|
2152
432
|
search(options: {
|
|
@@ -2179,687 +459,6 @@ declare class EntryRepository {
|
|
|
2179
459
|
delete(id: string): Promise<Entry | undefined>;
|
|
2180
460
|
}
|
|
2181
461
|
|
|
2182
|
-
declare const definitionCreateDto: z.ZodObject<{
|
|
2183
|
-
name: z.ZodString;
|
|
2184
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2185
|
-
editor: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
|
|
2186
|
-
display: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
|
|
2187
|
-
headings: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
|
|
2188
|
-
fields: z.ZodArray<z.ZodObject<{
|
|
2189
|
-
name: z.ZodString;
|
|
2190
|
-
label: z.ZodString;
|
|
2191
|
-
type: z.ZodEnum<{
|
|
2192
|
-
number: "number";
|
|
2193
|
-
boolean: "boolean";
|
|
2194
|
-
text: "text";
|
|
2195
|
-
"rich-text": "rich-text";
|
|
2196
|
-
date: "date";
|
|
2197
|
-
media: "media";
|
|
2198
|
-
relation: "relation";
|
|
2199
|
-
select: "select";
|
|
2200
|
-
steps: "steps";
|
|
2201
|
-
json: "json";
|
|
2202
|
-
}>;
|
|
2203
|
-
required: z.ZodDefault<z.ZodBoolean>;
|
|
2204
|
-
hidden: z.ZodDefault<z.ZodBoolean>;
|
|
2205
|
-
options: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2206
|
-
target: z.ZodOptional<z.ZodString>;
|
|
2207
|
-
}, z.core.$strip>>;
|
|
2208
|
-
slug: z.ZodOptional<z.ZodString>;
|
|
2209
|
-
}, {
|
|
2210
|
-
out: {};
|
|
2211
|
-
in: {};
|
|
2212
|
-
}>;
|
|
2213
|
-
declare const definitionUpdateDto: z.ZodObject<{
|
|
2214
|
-
name: z.ZodOptional<z.ZodString>;
|
|
2215
|
-
slug: z.ZodOptional<z.ZodString>;
|
|
2216
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2217
|
-
editor: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
|
|
2218
|
-
display: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
|
|
2219
|
-
headings: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
|
|
2220
|
-
fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2221
|
-
name: z.ZodString;
|
|
2222
|
-
label: z.ZodString;
|
|
2223
|
-
type: z.ZodEnum<{
|
|
2224
|
-
number: "number";
|
|
2225
|
-
boolean: "boolean";
|
|
2226
|
-
text: "text";
|
|
2227
|
-
"rich-text": "rich-text";
|
|
2228
|
-
date: "date";
|
|
2229
|
-
media: "media";
|
|
2230
|
-
relation: "relation";
|
|
2231
|
-
select: "select";
|
|
2232
|
-
steps: "steps";
|
|
2233
|
-
json: "json";
|
|
2234
|
-
}>;
|
|
2235
|
-
required: z.ZodDefault<z.ZodBoolean>;
|
|
2236
|
-
hidden: z.ZodDefault<z.ZodBoolean>;
|
|
2237
|
-
options: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2238
|
-
target: z.ZodOptional<z.ZodString>;
|
|
2239
|
-
}, z.core.$strip>>>;
|
|
2240
|
-
}, {
|
|
2241
|
-
out: {};
|
|
2242
|
-
in: {};
|
|
2243
|
-
}>;
|
|
2244
|
-
declare const definitionDto: drizzle_zod.BuildSchema<"select", {
|
|
2245
|
-
id: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2246
|
-
name: "id";
|
|
2247
|
-
tableName: "collection_definitions";
|
|
2248
|
-
dataType: "string";
|
|
2249
|
-
columnType: "SQLiteText";
|
|
2250
|
-
data: string;
|
|
2251
|
-
driverParam: string;
|
|
2252
|
-
notNull: true;
|
|
2253
|
-
hasDefault: true;
|
|
2254
|
-
isPrimaryKey: true;
|
|
2255
|
-
isAutoincrement: false;
|
|
2256
|
-
hasRuntimeDefault: true;
|
|
2257
|
-
enumValues: [string, ...string[]];
|
|
2258
|
-
baseColumn: never;
|
|
2259
|
-
identity: undefined;
|
|
2260
|
-
generated: undefined;
|
|
2261
|
-
}, {}, {
|
|
2262
|
-
length: number | undefined;
|
|
2263
|
-
}>;
|
|
2264
|
-
name: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2265
|
-
name: "name";
|
|
2266
|
-
tableName: "collection_definitions";
|
|
2267
|
-
dataType: "string";
|
|
2268
|
-
columnType: "SQLiteText";
|
|
2269
|
-
data: string;
|
|
2270
|
-
driverParam: string;
|
|
2271
|
-
notNull: true;
|
|
2272
|
-
hasDefault: false;
|
|
2273
|
-
isPrimaryKey: false;
|
|
2274
|
-
isAutoincrement: false;
|
|
2275
|
-
hasRuntimeDefault: false;
|
|
2276
|
-
enumValues: [string, ...string[]];
|
|
2277
|
-
baseColumn: never;
|
|
2278
|
-
identity: undefined;
|
|
2279
|
-
generated: undefined;
|
|
2280
|
-
}, {}, {
|
|
2281
|
-
length: number | undefined;
|
|
2282
|
-
}>;
|
|
2283
|
-
slug: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2284
|
-
name: "slug";
|
|
2285
|
-
tableName: "collection_definitions";
|
|
2286
|
-
dataType: "string";
|
|
2287
|
-
columnType: "SQLiteText";
|
|
2288
|
-
data: string;
|
|
2289
|
-
driverParam: string;
|
|
2290
|
-
notNull: true;
|
|
2291
|
-
hasDefault: false;
|
|
2292
|
-
isPrimaryKey: false;
|
|
2293
|
-
isAutoincrement: false;
|
|
2294
|
-
hasRuntimeDefault: false;
|
|
2295
|
-
enumValues: [string, ...string[]];
|
|
2296
|
-
baseColumn: never;
|
|
2297
|
-
identity: undefined;
|
|
2298
|
-
generated: undefined;
|
|
2299
|
-
}, {}, {
|
|
2300
|
-
length: number | undefined;
|
|
2301
|
-
}>;
|
|
2302
|
-
description: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2303
|
-
name: "description";
|
|
2304
|
-
tableName: "collection_definitions";
|
|
2305
|
-
dataType: "string";
|
|
2306
|
-
columnType: "SQLiteText";
|
|
2307
|
-
data: string;
|
|
2308
|
-
driverParam: string;
|
|
2309
|
-
notNull: false;
|
|
2310
|
-
hasDefault: false;
|
|
2311
|
-
isPrimaryKey: false;
|
|
2312
|
-
isAutoincrement: false;
|
|
2313
|
-
hasRuntimeDefault: false;
|
|
2314
|
-
enumValues: [string, ...string[]];
|
|
2315
|
-
baseColumn: never;
|
|
2316
|
-
identity: undefined;
|
|
2317
|
-
generated: undefined;
|
|
2318
|
-
}, {}, {
|
|
2319
|
-
length: number | undefined;
|
|
2320
|
-
}>;
|
|
2321
|
-
fields: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2322
|
-
name: "fields";
|
|
2323
|
-
tableName: "collection_definitions";
|
|
2324
|
-
dataType: "json";
|
|
2325
|
-
columnType: "SQLiteTextJson";
|
|
2326
|
-
data: {
|
|
2327
|
-
name: string;
|
|
2328
|
-
label: string;
|
|
2329
|
-
type: "number" | "boolean" | "text" | "rich-text" | "date" | "media" | "relation" | "select" | "steps" | "json";
|
|
2330
|
-
required: boolean;
|
|
2331
|
-
hidden: boolean;
|
|
2332
|
-
options?: string[] | undefined;
|
|
2333
|
-
target?: string | undefined;
|
|
2334
|
-
}[];
|
|
2335
|
-
driverParam: string;
|
|
2336
|
-
notNull: true;
|
|
2337
|
-
hasDefault: false;
|
|
2338
|
-
isPrimaryKey: false;
|
|
2339
|
-
isAutoincrement: false;
|
|
2340
|
-
hasRuntimeDefault: false;
|
|
2341
|
-
enumValues: undefined;
|
|
2342
|
-
baseColumn: never;
|
|
2343
|
-
identity: undefined;
|
|
2344
|
-
generated: undefined;
|
|
2345
|
-
}, {}, {
|
|
2346
|
-
$type: {
|
|
2347
|
-
name: string;
|
|
2348
|
-
label: string;
|
|
2349
|
-
type: "number" | "boolean" | "text" | "rich-text" | "date" | "media" | "relation" | "select" | "steps" | "json";
|
|
2350
|
-
required: boolean;
|
|
2351
|
-
hidden: boolean;
|
|
2352
|
-
options?: string[] | undefined;
|
|
2353
|
-
target?: string | undefined;
|
|
2354
|
-
}[];
|
|
2355
|
-
}>;
|
|
2356
|
-
editor: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2357
|
-
name: "editor";
|
|
2358
|
-
tableName: "collection_definitions";
|
|
2359
|
-
dataType: "json";
|
|
2360
|
-
columnType: "SQLiteTextJson";
|
|
2361
|
-
data: Record<string, unknown>;
|
|
2362
|
-
driverParam: string;
|
|
2363
|
-
notNull: false;
|
|
2364
|
-
hasDefault: false;
|
|
2365
|
-
isPrimaryKey: false;
|
|
2366
|
-
isAutoincrement: false;
|
|
2367
|
-
hasRuntimeDefault: false;
|
|
2368
|
-
enumValues: undefined;
|
|
2369
|
-
baseColumn: never;
|
|
2370
|
-
identity: undefined;
|
|
2371
|
-
generated: undefined;
|
|
2372
|
-
}, {}, {
|
|
2373
|
-
$type: Record<string, unknown>;
|
|
2374
|
-
}>;
|
|
2375
|
-
display: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2376
|
-
name: "display";
|
|
2377
|
-
tableName: "collection_definitions";
|
|
2378
|
-
dataType: "json";
|
|
2379
|
-
columnType: "SQLiteTextJson";
|
|
2380
|
-
data: Record<string, unknown>;
|
|
2381
|
-
driverParam: string;
|
|
2382
|
-
notNull: false;
|
|
2383
|
-
hasDefault: false;
|
|
2384
|
-
isPrimaryKey: false;
|
|
2385
|
-
isAutoincrement: false;
|
|
2386
|
-
hasRuntimeDefault: false;
|
|
2387
|
-
enumValues: undefined;
|
|
2388
|
-
baseColumn: never;
|
|
2389
|
-
identity: undefined;
|
|
2390
|
-
generated: undefined;
|
|
2391
|
-
}, {}, {
|
|
2392
|
-
$type: Record<string, unknown>;
|
|
2393
|
-
}>;
|
|
2394
|
-
headings: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2395
|
-
name: "headings";
|
|
2396
|
-
tableName: "collection_definitions";
|
|
2397
|
-
dataType: "json";
|
|
2398
|
-
columnType: "SQLiteTextJson";
|
|
2399
|
-
data: Record<string, unknown>;
|
|
2400
|
-
driverParam: string;
|
|
2401
|
-
notNull: false;
|
|
2402
|
-
hasDefault: false;
|
|
2403
|
-
isPrimaryKey: false;
|
|
2404
|
-
isAutoincrement: false;
|
|
2405
|
-
hasRuntimeDefault: false;
|
|
2406
|
-
enumValues: undefined;
|
|
2407
|
-
baseColumn: never;
|
|
2408
|
-
identity: undefined;
|
|
2409
|
-
generated: undefined;
|
|
2410
|
-
}, {}, {
|
|
2411
|
-
$type: Record<string, unknown>;
|
|
2412
|
-
}>;
|
|
2413
|
-
createdBy: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2414
|
-
name: "created_by";
|
|
2415
|
-
tableName: "collection_definitions";
|
|
2416
|
-
dataType: "string";
|
|
2417
|
-
columnType: "SQLiteText";
|
|
2418
|
-
data: string;
|
|
2419
|
-
driverParam: string;
|
|
2420
|
-
notNull: false;
|
|
2421
|
-
hasDefault: false;
|
|
2422
|
-
isPrimaryKey: false;
|
|
2423
|
-
isAutoincrement: false;
|
|
2424
|
-
hasRuntimeDefault: false;
|
|
2425
|
-
enumValues: [string, ...string[]];
|
|
2426
|
-
baseColumn: never;
|
|
2427
|
-
identity: undefined;
|
|
2428
|
-
generated: undefined;
|
|
2429
|
-
}, {}, {
|
|
2430
|
-
length: number | undefined;
|
|
2431
|
-
}>;
|
|
2432
|
-
updatedBy: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2433
|
-
name: "updated_by";
|
|
2434
|
-
tableName: "collection_definitions";
|
|
2435
|
-
dataType: "string";
|
|
2436
|
-
columnType: "SQLiteText";
|
|
2437
|
-
data: string;
|
|
2438
|
-
driverParam: string;
|
|
2439
|
-
notNull: false;
|
|
2440
|
-
hasDefault: false;
|
|
2441
|
-
isPrimaryKey: false;
|
|
2442
|
-
isAutoincrement: false;
|
|
2443
|
-
hasRuntimeDefault: false;
|
|
2444
|
-
enumValues: [string, ...string[]];
|
|
2445
|
-
baseColumn: never;
|
|
2446
|
-
identity: undefined;
|
|
2447
|
-
generated: undefined;
|
|
2448
|
-
}, {}, {
|
|
2449
|
-
length: number | undefined;
|
|
2450
|
-
}>;
|
|
2451
|
-
legacyExtra: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2452
|
-
name: "legacy_extra";
|
|
2453
|
-
tableName: "collection_definitions";
|
|
2454
|
-
dataType: "json";
|
|
2455
|
-
columnType: "SQLiteTextJson";
|
|
2456
|
-
data: Record<string, unknown> | null;
|
|
2457
|
-
driverParam: string;
|
|
2458
|
-
notNull: false;
|
|
2459
|
-
hasDefault: false;
|
|
2460
|
-
isPrimaryKey: false;
|
|
2461
|
-
isAutoincrement: false;
|
|
2462
|
-
hasRuntimeDefault: false;
|
|
2463
|
-
enumValues: undefined;
|
|
2464
|
-
baseColumn: never;
|
|
2465
|
-
identity: undefined;
|
|
2466
|
-
generated: undefined;
|
|
2467
|
-
}, {}, {
|
|
2468
|
-
$type: Record<string, unknown> | null;
|
|
2469
|
-
}>;
|
|
2470
|
-
createdAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2471
|
-
name: "created_at";
|
|
2472
|
-
tableName: "collection_definitions";
|
|
2473
|
-
dataType: "string";
|
|
2474
|
-
columnType: "SQLiteText";
|
|
2475
|
-
data: string;
|
|
2476
|
-
driverParam: string;
|
|
2477
|
-
notNull: true;
|
|
2478
|
-
hasDefault: true;
|
|
2479
|
-
isPrimaryKey: false;
|
|
2480
|
-
isAutoincrement: false;
|
|
2481
|
-
hasRuntimeDefault: true;
|
|
2482
|
-
enumValues: [string, ...string[]];
|
|
2483
|
-
baseColumn: never;
|
|
2484
|
-
identity: undefined;
|
|
2485
|
-
generated: undefined;
|
|
2486
|
-
}, {}, {
|
|
2487
|
-
length: number | undefined;
|
|
2488
|
-
}>;
|
|
2489
|
-
updatedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2490
|
-
name: "updated_at";
|
|
2491
|
-
tableName: "collection_definitions";
|
|
2492
|
-
dataType: "string";
|
|
2493
|
-
columnType: "SQLiteText";
|
|
2494
|
-
data: string;
|
|
2495
|
-
driverParam: string;
|
|
2496
|
-
notNull: true;
|
|
2497
|
-
hasDefault: true;
|
|
2498
|
-
isPrimaryKey: false;
|
|
2499
|
-
isAutoincrement: false;
|
|
2500
|
-
hasRuntimeDefault: true;
|
|
2501
|
-
enumValues: [string, ...string[]];
|
|
2502
|
-
baseColumn: never;
|
|
2503
|
-
identity: undefined;
|
|
2504
|
-
generated: undefined;
|
|
2505
|
-
}, {}, {
|
|
2506
|
-
length: number | undefined;
|
|
2507
|
-
}>;
|
|
2508
|
-
}, {
|
|
2509
|
-
fields: z.ZodArray<z.ZodObject<{
|
|
2510
|
-
name: z.ZodString;
|
|
2511
|
-
label: z.ZodString;
|
|
2512
|
-
type: z.ZodUnion<[z.ZodEnum<{
|
|
2513
|
-
number: "number";
|
|
2514
|
-
boolean: "boolean";
|
|
2515
|
-
text: "text";
|
|
2516
|
-
"rich-text": "rich-text";
|
|
2517
|
-
date: "date";
|
|
2518
|
-
media: "media";
|
|
2519
|
-
relation: "relation";
|
|
2520
|
-
select: "select";
|
|
2521
|
-
steps: "steps";
|
|
2522
|
-
json: "json";
|
|
2523
|
-
}>, z.ZodString]>;
|
|
2524
|
-
required: z.ZodDefault<z.ZodBoolean>;
|
|
2525
|
-
hidden: z.ZodDefault<z.ZodBoolean>;
|
|
2526
|
-
options: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2527
|
-
target: z.ZodOptional<z.ZodString>;
|
|
2528
|
-
}, z.core.$loose>>;
|
|
2529
|
-
}, undefined>;
|
|
2530
|
-
type DefinitionCreateDto = z.infer<typeof definitionCreateDto>;
|
|
2531
|
-
type DefinitionUpdateDto = z.infer<typeof definitionUpdateDto>;
|
|
2532
|
-
|
|
2533
|
-
declare const entryCreateDto: z.ZodObject<{
|
|
2534
|
-
data: z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
|
|
2535
|
-
title: z.ZodString;
|
|
2536
|
-
status: z.ZodOptional<z.ZodEnum<{
|
|
2537
|
-
draft: "draft";
|
|
2538
|
-
waiting: "waiting";
|
|
2539
|
-
ready: "ready";
|
|
2540
|
-
scheduled: "scheduled";
|
|
2541
|
-
published: "published";
|
|
2542
|
-
}>>;
|
|
2543
|
-
publishedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2544
|
-
slug: z.ZodOptional<z.ZodString>;
|
|
2545
|
-
}, {
|
|
2546
|
-
out: {};
|
|
2547
|
-
in: {};
|
|
2548
|
-
}>;
|
|
2549
|
-
declare const entryUpdateDto: z.ZodObject<{
|
|
2550
|
-
data: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
|
|
2551
|
-
slug: z.ZodOptional<z.ZodString>;
|
|
2552
|
-
title: z.ZodOptional<z.ZodString>;
|
|
2553
|
-
status: z.ZodOptional<z.ZodEnum<{
|
|
2554
|
-
draft: "draft";
|
|
2555
|
-
waiting: "waiting";
|
|
2556
|
-
ready: "ready";
|
|
2557
|
-
scheduled: "scheduled";
|
|
2558
|
-
published: "published";
|
|
2559
|
-
}>>;
|
|
2560
|
-
publishedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2561
|
-
related: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2562
|
-
}, {
|
|
2563
|
-
out: {};
|
|
2564
|
-
in: {};
|
|
2565
|
-
}>;
|
|
2566
|
-
declare const entryDto: drizzle_zod.BuildSchema<"select", {
|
|
2567
|
-
id: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2568
|
-
name: "id";
|
|
2569
|
-
tableName: "entries";
|
|
2570
|
-
dataType: "string";
|
|
2571
|
-
columnType: "SQLiteText";
|
|
2572
|
-
data: string;
|
|
2573
|
-
driverParam: string;
|
|
2574
|
-
notNull: true;
|
|
2575
|
-
hasDefault: true;
|
|
2576
|
-
isPrimaryKey: true;
|
|
2577
|
-
isAutoincrement: false;
|
|
2578
|
-
hasRuntimeDefault: true;
|
|
2579
|
-
enumValues: [string, ...string[]];
|
|
2580
|
-
baseColumn: never;
|
|
2581
|
-
identity: undefined;
|
|
2582
|
-
generated: undefined;
|
|
2583
|
-
}, {}, {
|
|
2584
|
-
length: number | undefined;
|
|
2585
|
-
}>;
|
|
2586
|
-
collectionId: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2587
|
-
name: "collection_id";
|
|
2588
|
-
tableName: "entries";
|
|
2589
|
-
dataType: "string";
|
|
2590
|
-
columnType: "SQLiteText";
|
|
2591
|
-
data: string;
|
|
2592
|
-
driverParam: string;
|
|
2593
|
-
notNull: true;
|
|
2594
|
-
hasDefault: false;
|
|
2595
|
-
isPrimaryKey: false;
|
|
2596
|
-
isAutoincrement: false;
|
|
2597
|
-
hasRuntimeDefault: false;
|
|
2598
|
-
enumValues: [string, ...string[]];
|
|
2599
|
-
baseColumn: never;
|
|
2600
|
-
identity: undefined;
|
|
2601
|
-
generated: undefined;
|
|
2602
|
-
}, {}, {
|
|
2603
|
-
length: number | undefined;
|
|
2604
|
-
}>;
|
|
2605
|
-
title: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2606
|
-
name: "title";
|
|
2607
|
-
tableName: "entries";
|
|
2608
|
-
dataType: "string";
|
|
2609
|
-
columnType: "SQLiteText";
|
|
2610
|
-
data: string;
|
|
2611
|
-
driverParam: string;
|
|
2612
|
-
notNull: true;
|
|
2613
|
-
hasDefault: false;
|
|
2614
|
-
isPrimaryKey: false;
|
|
2615
|
-
isAutoincrement: false;
|
|
2616
|
-
hasRuntimeDefault: false;
|
|
2617
|
-
enumValues: [string, ...string[]];
|
|
2618
|
-
baseColumn: never;
|
|
2619
|
-
identity: undefined;
|
|
2620
|
-
generated: undefined;
|
|
2621
|
-
}, {}, {
|
|
2622
|
-
length: number | undefined;
|
|
2623
|
-
}>;
|
|
2624
|
-
slug: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2625
|
-
name: "slug";
|
|
2626
|
-
tableName: "entries";
|
|
2627
|
-
dataType: "string";
|
|
2628
|
-
columnType: "SQLiteText";
|
|
2629
|
-
data: string;
|
|
2630
|
-
driverParam: string;
|
|
2631
|
-
notNull: true;
|
|
2632
|
-
hasDefault: false;
|
|
2633
|
-
isPrimaryKey: false;
|
|
2634
|
-
isAutoincrement: false;
|
|
2635
|
-
hasRuntimeDefault: false;
|
|
2636
|
-
enumValues: [string, ...string[]];
|
|
2637
|
-
baseColumn: never;
|
|
2638
|
-
identity: undefined;
|
|
2639
|
-
generated: undefined;
|
|
2640
|
-
}, {}, {
|
|
2641
|
-
length: number | undefined;
|
|
2642
|
-
}>;
|
|
2643
|
-
data: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2644
|
-
name: "data";
|
|
2645
|
-
tableName: "entries";
|
|
2646
|
-
dataType: "json";
|
|
2647
|
-
columnType: "SQLiteTextJson";
|
|
2648
|
-
data: Record<string, unknown>;
|
|
2649
|
-
driverParam: string;
|
|
2650
|
-
notNull: true;
|
|
2651
|
-
hasDefault: false;
|
|
2652
|
-
isPrimaryKey: false;
|
|
2653
|
-
isAutoincrement: false;
|
|
2654
|
-
hasRuntimeDefault: false;
|
|
2655
|
-
enumValues: undefined;
|
|
2656
|
-
baseColumn: never;
|
|
2657
|
-
identity: undefined;
|
|
2658
|
-
generated: undefined;
|
|
2659
|
-
}, {}, {
|
|
2660
|
-
$type: Record<string, unknown>;
|
|
2661
|
-
}>;
|
|
2662
|
-
related: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2663
|
-
name: "related";
|
|
2664
|
-
tableName: "entries";
|
|
2665
|
-
dataType: "json";
|
|
2666
|
-
columnType: "SQLiteTextJson";
|
|
2667
|
-
data: string[];
|
|
2668
|
-
driverParam: string;
|
|
2669
|
-
notNull: false;
|
|
2670
|
-
hasDefault: false;
|
|
2671
|
-
isPrimaryKey: false;
|
|
2672
|
-
isAutoincrement: false;
|
|
2673
|
-
hasRuntimeDefault: false;
|
|
2674
|
-
enumValues: undefined;
|
|
2675
|
-
baseColumn: never;
|
|
2676
|
-
identity: undefined;
|
|
2677
|
-
generated: undefined;
|
|
2678
|
-
}, {}, {
|
|
2679
|
-
$type: string[];
|
|
2680
|
-
}>;
|
|
2681
|
-
createdBy: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2682
|
-
name: "created_by";
|
|
2683
|
-
tableName: "entries";
|
|
2684
|
-
dataType: "string";
|
|
2685
|
-
columnType: "SQLiteText";
|
|
2686
|
-
data: string;
|
|
2687
|
-
driverParam: string;
|
|
2688
|
-
notNull: false;
|
|
2689
|
-
hasDefault: false;
|
|
2690
|
-
isPrimaryKey: false;
|
|
2691
|
-
isAutoincrement: false;
|
|
2692
|
-
hasRuntimeDefault: false;
|
|
2693
|
-
enumValues: [string, ...string[]];
|
|
2694
|
-
baseColumn: never;
|
|
2695
|
-
identity: undefined;
|
|
2696
|
-
generated: undefined;
|
|
2697
|
-
}, {}, {
|
|
2698
|
-
length: number | undefined;
|
|
2699
|
-
}>;
|
|
2700
|
-
updatedBy: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2701
|
-
name: "updated_by";
|
|
2702
|
-
tableName: "entries";
|
|
2703
|
-
dataType: "string";
|
|
2704
|
-
columnType: "SQLiteText";
|
|
2705
|
-
data: string;
|
|
2706
|
-
driverParam: string;
|
|
2707
|
-
notNull: false;
|
|
2708
|
-
hasDefault: false;
|
|
2709
|
-
isPrimaryKey: false;
|
|
2710
|
-
isAutoincrement: false;
|
|
2711
|
-
hasRuntimeDefault: false;
|
|
2712
|
-
enumValues: [string, ...string[]];
|
|
2713
|
-
baseColumn: never;
|
|
2714
|
-
identity: undefined;
|
|
2715
|
-
generated: undefined;
|
|
2716
|
-
}, {}, {
|
|
2717
|
-
length: number | undefined;
|
|
2718
|
-
}>;
|
|
2719
|
-
status: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2720
|
-
name: "status";
|
|
2721
|
-
tableName: "entries";
|
|
2722
|
-
dataType: "string";
|
|
2723
|
-
columnType: "SQLiteText";
|
|
2724
|
-
data: "draft" | "waiting" | "ready" | "scheduled" | "published";
|
|
2725
|
-
driverParam: string;
|
|
2726
|
-
notNull: true;
|
|
2727
|
-
hasDefault: true;
|
|
2728
|
-
isPrimaryKey: false;
|
|
2729
|
-
isAutoincrement: false;
|
|
2730
|
-
hasRuntimeDefault: false;
|
|
2731
|
-
enumValues: ["draft", "waiting", "ready", "scheduled", "published"];
|
|
2732
|
-
baseColumn: never;
|
|
2733
|
-
identity: undefined;
|
|
2734
|
-
generated: undefined;
|
|
2735
|
-
}, {}, {
|
|
2736
|
-
length: number | undefined;
|
|
2737
|
-
}>;
|
|
2738
|
-
publishedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2739
|
-
name: "published_at";
|
|
2740
|
-
tableName: "entries";
|
|
2741
|
-
dataType: "string";
|
|
2742
|
-
columnType: "SQLiteText";
|
|
2743
|
-
data: string;
|
|
2744
|
-
driverParam: string;
|
|
2745
|
-
notNull: false;
|
|
2746
|
-
hasDefault: false;
|
|
2747
|
-
isPrimaryKey: false;
|
|
2748
|
-
isAutoincrement: false;
|
|
2749
|
-
hasRuntimeDefault: false;
|
|
2750
|
-
enumValues: [string, ...string[]];
|
|
2751
|
-
baseColumn: never;
|
|
2752
|
-
identity: undefined;
|
|
2753
|
-
generated: undefined;
|
|
2754
|
-
}, {}, {
|
|
2755
|
-
length: number | undefined;
|
|
2756
|
-
}>;
|
|
2757
|
-
legacyExtra: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2758
|
-
name: "legacy_extra";
|
|
2759
|
-
tableName: "entries";
|
|
2760
|
-
dataType: "json";
|
|
2761
|
-
columnType: "SQLiteTextJson";
|
|
2762
|
-
data: Record<string, unknown> | null;
|
|
2763
|
-
driverParam: string;
|
|
2764
|
-
notNull: false;
|
|
2765
|
-
hasDefault: false;
|
|
2766
|
-
isPrimaryKey: false;
|
|
2767
|
-
isAutoincrement: false;
|
|
2768
|
-
hasRuntimeDefault: false;
|
|
2769
|
-
enumValues: undefined;
|
|
2770
|
-
baseColumn: never;
|
|
2771
|
-
identity: undefined;
|
|
2772
|
-
generated: undefined;
|
|
2773
|
-
}, {}, {
|
|
2774
|
-
$type: Record<string, unknown> | null;
|
|
2775
|
-
}>;
|
|
2776
|
-
createdAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2777
|
-
name: "created_at";
|
|
2778
|
-
tableName: "entries";
|
|
2779
|
-
dataType: "string";
|
|
2780
|
-
columnType: "SQLiteText";
|
|
2781
|
-
data: string;
|
|
2782
|
-
driverParam: string;
|
|
2783
|
-
notNull: true;
|
|
2784
|
-
hasDefault: true;
|
|
2785
|
-
isPrimaryKey: false;
|
|
2786
|
-
isAutoincrement: false;
|
|
2787
|
-
hasRuntimeDefault: true;
|
|
2788
|
-
enumValues: [string, ...string[]];
|
|
2789
|
-
baseColumn: never;
|
|
2790
|
-
identity: undefined;
|
|
2791
|
-
generated: undefined;
|
|
2792
|
-
}, {}, {
|
|
2793
|
-
length: number | undefined;
|
|
2794
|
-
}>;
|
|
2795
|
-
updatedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2796
|
-
name: "updated_at";
|
|
2797
|
-
tableName: "entries";
|
|
2798
|
-
dataType: "string";
|
|
2799
|
-
columnType: "SQLiteText";
|
|
2800
|
-
data: string;
|
|
2801
|
-
driverParam: string;
|
|
2802
|
-
notNull: true;
|
|
2803
|
-
hasDefault: true;
|
|
2804
|
-
isPrimaryKey: false;
|
|
2805
|
-
isAutoincrement: false;
|
|
2806
|
-
hasRuntimeDefault: true;
|
|
2807
|
-
enumValues: [string, ...string[]];
|
|
2808
|
-
baseColumn: never;
|
|
2809
|
-
identity: undefined;
|
|
2810
|
-
generated: undefined;
|
|
2811
|
-
}, {}, {
|
|
2812
|
-
length: number | undefined;
|
|
2813
|
-
}>;
|
|
2814
|
-
}, {
|
|
2815
|
-
collectionId: (schema: z.ZodString) => z.ZodString;
|
|
2816
|
-
slug: (schema: z.ZodString) => z.ZodString;
|
|
2817
|
-
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2818
|
-
related: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
2819
|
-
status: (schema: z.ZodEnum<{
|
|
2820
|
-
draft: "draft";
|
|
2821
|
-
waiting: "waiting";
|
|
2822
|
-
ready: "ready";
|
|
2823
|
-
scheduled: "scheduled";
|
|
2824
|
-
published: "published";
|
|
2825
|
-
}>) => z.ZodEnum<{
|
|
2826
|
-
draft: "draft";
|
|
2827
|
-
waiting: "waiting";
|
|
2828
|
-
ready: "ready";
|
|
2829
|
-
scheduled: "scheduled";
|
|
2830
|
-
published: "published";
|
|
2831
|
-
}>;
|
|
2832
|
-
}, undefined>;
|
|
2833
|
-
/** A search hit: the entry, and which collection it comes from. */
|
|
2834
|
-
declare const entrySearchHitDto: z.ZodObject<{
|
|
2835
|
-
id: z.ZodString;
|
|
2836
|
-
collectionId: z.ZodString;
|
|
2837
|
-
title: z.ZodString;
|
|
2838
|
-
slug: z.ZodString;
|
|
2839
|
-
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2840
|
-
related: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
2841
|
-
createdBy: z.ZodNullable<z.ZodString>;
|
|
2842
|
-
updatedBy: z.ZodNullable<z.ZodString>;
|
|
2843
|
-
status: z.ZodEnum<{
|
|
2844
|
-
draft: "draft";
|
|
2845
|
-
waiting: "waiting";
|
|
2846
|
-
ready: "ready";
|
|
2847
|
-
scheduled: "scheduled";
|
|
2848
|
-
published: "published";
|
|
2849
|
-
}>;
|
|
2850
|
-
publishedAt: z.ZodNullable<z.ZodString>;
|
|
2851
|
-
legacyExtra: z.ZodNullable<z.ZodType<drizzle_zod.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod.Json, unknown>>>;
|
|
2852
|
-
createdAt: z.ZodString;
|
|
2853
|
-
updatedAt: z.ZodString;
|
|
2854
|
-
collectionSlug: z.ZodString;
|
|
2855
|
-
}, {
|
|
2856
|
-
out: {};
|
|
2857
|
-
in: {};
|
|
2858
|
-
}>;
|
|
2859
|
-
type EntryCreateDto = z.infer<typeof entryCreateDto>;
|
|
2860
|
-
type EntryUpdateDto = z.infer<typeof entryUpdateDto>;
|
|
2861
|
-
type EntrySearchHit = z.infer<typeof entrySearchHitDto>;
|
|
2862
|
-
|
|
2863
462
|
/**
|
|
2864
463
|
* The content engine: collection definitions over a closed field-type set, and
|
|
2865
464
|
* their entries, validated against the Zod schema generated from each definition.
|
|
@@ -2905,7 +504,9 @@ declare class CollectionsService {
|
|
|
2905
504
|
/** PARTIAL update: `data` is merged field by field with what already exists. */
|
|
2906
505
|
updateEntry(id: string, input: EntryUpdateDto, actorId?: string): Promise<Entry>;
|
|
2907
506
|
removeEntry(id: string): Promise<void>;
|
|
2908
|
-
|
|
507
|
+
/** A slug chosen by hand and already taken is a refusal, not a crash. */
|
|
508
|
+
private definitionSlugConflict;
|
|
509
|
+
private entrySlugConflict;
|
|
2909
510
|
/** Incremental suffix -1/-2… until the slug is unique within the collection. */
|
|
2910
511
|
private uniqueEntrySlug;
|
|
2911
512
|
private uniqueDefinitionSlug;
|
|
@@ -2942,6 +543,7 @@ interface CoreContext {
|
|
|
2942
543
|
* `trpcCode` carries the transport code, `type` the client-readable
|
|
2943
544
|
* discriminant the UI matches on.
|
|
2944
545
|
*/
|
|
546
|
+
|
|
2945
547
|
declare const TRPC_CODES: {
|
|
2946
548
|
readonly NOT_FOUND: "NOT_FOUND";
|
|
2947
549
|
readonly BAD_REQUEST: "BAD_REQUEST";
|
|
@@ -2954,73 +556,21 @@ declare const TRPC_CODES: {
|
|
|
2954
556
|
type TrpcErrorCode = (typeof TRPC_CODES)[keyof typeof TRPC_CODES];
|
|
2955
557
|
/** Base class — lets the tRPC mapper test `instanceof DomainError`. */
|
|
2956
558
|
declare abstract class DomainError extends Error {
|
|
2957
|
-
abstract readonly type:
|
|
559
|
+
abstract readonly type: ErrorType;
|
|
2958
560
|
abstract readonly trpcCode: TrpcErrorCode;
|
|
2959
561
|
}
|
|
2960
562
|
/**
|
|
2961
563
|
* A type and a transport code fully identify an error; the message is optional
|
|
2962
564
|
* context for logs, never user-facing copy — the interface owns the wording.
|
|
565
|
+
* The type comes from the catalogue (`./types.ts`), never from a literal.
|
|
2963
566
|
*
|
|
2964
567
|
* export const EntryNotFoundError = createTypedError(
|
|
2965
|
-
*
|
|
568
|
+
* ERROR_TYPES.ENTRY_NOT_FOUND, TRPC_CODES.NOT_FOUND);
|
|
2966
569
|
* throw new EntryNotFoundError(`entry not found: ${id}`);
|
|
2967
570
|
*/
|
|
2968
|
-
declare function createTypedError(type:
|
|
2969
|
-
new (message?: string): {
|
|
2970
|
-
readonly type: string;
|
|
2971
|
-
readonly trpcCode: TrpcErrorCode;
|
|
2972
|
-
name: string;
|
|
2973
|
-
message: string;
|
|
2974
|
-
stack?: string;
|
|
2975
|
-
cause?: unknown;
|
|
2976
|
-
};
|
|
2977
|
-
isError(error: unknown): error is Error;
|
|
2978
|
-
isError(value: unknown): value is Error;
|
|
2979
|
-
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
2980
|
-
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
2981
|
-
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
2982
|
-
stackTraceLimit: number;
|
|
2983
|
-
};
|
|
2984
|
-
|
|
2985
|
-
/**
|
|
2986
|
-
* What turns a tRPC procedure into an agent tool. A capability is declared
|
|
2987
|
-
* ONCE, on its procedure: this meta names and describes it, the procedure's
|
|
2988
|
-
* `.input()` and `.output()` give its schemas, its middleware gives its access
|
|
2989
|
-
* rules. The same declaration serves the admin, the internal agent and any MCP
|
|
2990
|
-
* server — the core itself depends on no MCP library.
|
|
2991
|
-
*
|
|
2992
|
-
* entries: router({
|
|
2993
|
-
* get: protectedProcedure
|
|
2994
|
-
* .meta({ agent: { name: 'entries_get', description: '…', annotations: { readOnlyHint: true } } })
|
|
2995
|
-
* .input(z.object({ id: z.string().describe('…') }))
|
|
2996
|
-
* .output(entryDto)
|
|
2997
|
-
* .query(…),
|
|
2998
|
-
* })
|
|
2999
|
-
*/
|
|
3000
|
-
interface AgentToolMeta {
|
|
3001
|
-
/** The tool name the model sees. `snake_case`, unique across the router. */
|
|
3002
|
-
name: string;
|
|
3003
|
-
/** A short human-readable title, shown by assistants that list tools. */
|
|
3004
|
-
title?: string;
|
|
3005
|
-
/** What the tool does and when to use it — written for the model. */
|
|
3006
|
-
description: string;
|
|
3007
|
-
/** MCP behaviour hints. They inform the assistant; they enforce nothing. */
|
|
3008
|
-
annotations?: {
|
|
3009
|
-
readOnlyHint?: boolean;
|
|
3010
|
-
destructiveHint?: boolean;
|
|
3011
|
-
idempotentHint?: boolean;
|
|
3012
|
-
openWorldHint?: boolean;
|
|
3013
|
-
};
|
|
3014
|
-
}
|
|
3015
|
-
/** The meta every procedure of the core may carry. */
|
|
3016
|
-
interface CoreMeta {
|
|
3017
|
-
/** Present when the procedure is exposed to agents. */
|
|
3018
|
-
agent?: AgentToolMeta;
|
|
3019
|
-
}
|
|
3020
|
-
|
|
3021
|
-
declare const AgentToolNotFoundError: {
|
|
571
|
+
declare function createTypedError(type: ErrorType, trpcCode: TrpcErrorCode): {
|
|
3022
572
|
new (message?: string): {
|
|
3023
|
-
readonly type:
|
|
573
|
+
readonly type: ErrorType;
|
|
3024
574
|
readonly trpcCode: TrpcErrorCode;
|
|
3025
575
|
name: string;
|
|
3026
576
|
message: string;
|
|
@@ -3035,32 +585,18 @@ declare const AgentToolNotFoundError: {
|
|
|
3035
585
|
stackTraceLimit: number;
|
|
3036
586
|
};
|
|
3037
587
|
/**
|
|
3038
|
-
*
|
|
3039
|
-
*
|
|
3040
|
-
*
|
|
3041
|
-
*/
|
|
3042
|
-
interface AgentTool extends AgentToolMeta {
|
|
3043
|
-
/** Where the procedure sits in the router, e.g. `collections.entries.get`. */
|
|
3044
|
-
path: string;
|
|
3045
|
-
input: z.ZodObject;
|
|
3046
|
-
/** MCP wants an object: a list result is carried under `result`. */
|
|
3047
|
-
output?: z.ZodObject;
|
|
3048
|
-
}
|
|
3049
|
-
/** The tools a router exposes to agents: every procedure carrying `agent` meta. */
|
|
3050
|
-
declare function agentTools(router: AnyRouter): AgentTool[];
|
|
3051
|
-
/**
|
|
3052
|
-
* Runs a tool through its procedure, middlewares included: the caller has
|
|
3053
|
-
* exactly the rights its session gives in the admin. A list result comes back
|
|
3054
|
-
* as `{ result: [...] }`, as the tool's output schema says.
|
|
588
|
+
* True when `error` is the store refusing a duplicate on `column`
|
|
589
|
+
* (`table.column`, as SQLite names it). The one place that reads the driver's
|
|
590
|
+
* wording: a domain turns it into its own typed refusal.
|
|
3055
591
|
*/
|
|
3056
|
-
declare
|
|
592
|
+
declare const isUniqueViolation: (error: unknown, column: string) => boolean;
|
|
3057
593
|
|
|
3058
594
|
declare const organizationRouter: _trpc_server.TRPCBuiltRouter<{
|
|
3059
595
|
ctx: CoreContext;
|
|
3060
|
-
meta:
|
|
596
|
+
meta: object;
|
|
3061
597
|
errorShape: {
|
|
3062
598
|
data: {
|
|
3063
|
-
type?:
|
|
599
|
+
type?: ErrorType | undefined;
|
|
3064
600
|
code: _trpc_server.TRPC_ERROR_CODE_KEY;
|
|
3065
601
|
httpStatus: number;
|
|
3066
602
|
path?: string;
|
|
@@ -3075,10 +611,14 @@ declare const organizationRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3075
611
|
input: void;
|
|
3076
612
|
output: {
|
|
3077
613
|
type: "commune" | "intercommunality" | "syndicate" | "other";
|
|
3078
|
-
name: string;
|
|
3079
614
|
id: number;
|
|
615
|
+
name: string;
|
|
3080
616
|
slug: string;
|
|
3081
617
|
description: string | null;
|
|
618
|
+
updatedBy: string | null;
|
|
619
|
+
legacyExtra: Record<string, unknown> | null;
|
|
620
|
+
createdAt: string;
|
|
621
|
+
updatedAt: string;
|
|
3082
622
|
address: {
|
|
3083
623
|
street?: string | undefined;
|
|
3084
624
|
postalCode?: string | undefined;
|
|
@@ -3086,12 +626,8 @@ declare const organizationRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3086
626
|
} | null;
|
|
3087
627
|
deployment: Record<string, unknown> | null;
|
|
3088
628
|
settings: Record<string, unknown> | null;
|
|
3089
|
-
updatedBy: string | null;
|
|
3090
|
-
legacyExtra: Record<string, unknown> | null;
|
|
3091
|
-
createdAt: string;
|
|
3092
|
-
updatedAt: string;
|
|
3093
629
|
} | null;
|
|
3094
|
-
meta:
|
|
630
|
+
meta: object;
|
|
3095
631
|
}>;
|
|
3096
632
|
init: _trpc_server.TRPCMutationProcedure<{
|
|
3097
633
|
input: {
|
|
@@ -3109,10 +645,14 @@ declare const organizationRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3109
645
|
};
|
|
3110
646
|
output: {
|
|
3111
647
|
type: "commune" | "intercommunality" | "syndicate" | "other";
|
|
3112
|
-
name: string;
|
|
3113
648
|
id: number;
|
|
649
|
+
name: string;
|
|
3114
650
|
slug: string;
|
|
3115
651
|
description: string | null;
|
|
652
|
+
updatedBy: string | null;
|
|
653
|
+
legacyExtra: Record<string, unknown> | null;
|
|
654
|
+
createdAt: string;
|
|
655
|
+
updatedAt: string;
|
|
3116
656
|
address: {
|
|
3117
657
|
street?: string | undefined;
|
|
3118
658
|
postalCode?: string | undefined;
|
|
@@ -3120,12 +660,8 @@ declare const organizationRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3120
660
|
} | null;
|
|
3121
661
|
deployment: Record<string, unknown> | null;
|
|
3122
662
|
settings: Record<string, unknown> | null;
|
|
3123
|
-
updatedBy: string | null;
|
|
3124
|
-
legacyExtra: Record<string, unknown> | null;
|
|
3125
|
-
createdAt: string;
|
|
3126
|
-
updatedAt: string;
|
|
3127
663
|
};
|
|
3128
|
-
meta:
|
|
664
|
+
meta: object;
|
|
3129
665
|
}>;
|
|
3130
666
|
update: _trpc_server.TRPCMutationProcedure<{
|
|
3131
667
|
input: {
|
|
@@ -3143,10 +679,14 @@ declare const organizationRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3143
679
|
};
|
|
3144
680
|
output: {
|
|
3145
681
|
type: "commune" | "intercommunality" | "syndicate" | "other";
|
|
3146
|
-
name: string;
|
|
3147
682
|
id: number;
|
|
683
|
+
name: string;
|
|
3148
684
|
slug: string;
|
|
3149
685
|
description: string | null;
|
|
686
|
+
updatedBy: string | null;
|
|
687
|
+
legacyExtra: Record<string, unknown> | null;
|
|
688
|
+
createdAt: string;
|
|
689
|
+
updatedAt: string;
|
|
3150
690
|
address: {
|
|
3151
691
|
street?: string | undefined;
|
|
3152
692
|
postalCode?: string | undefined;
|
|
@@ -3154,25 +694,21 @@ declare const organizationRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3154
694
|
} | null;
|
|
3155
695
|
deployment: Record<string, unknown> | null;
|
|
3156
696
|
settings: Record<string, unknown> | null;
|
|
3157
|
-
updatedBy: string | null;
|
|
3158
|
-
legacyExtra: Record<string, unknown> | null;
|
|
3159
|
-
createdAt: string;
|
|
3160
|
-
updatedAt: string;
|
|
3161
697
|
};
|
|
3162
|
-
meta:
|
|
698
|
+
meta: object;
|
|
3163
699
|
}>;
|
|
3164
700
|
deploy: _trpc_server.TRPCMutationProcedure<{
|
|
3165
701
|
input: void;
|
|
3166
702
|
output: {
|
|
3167
703
|
status: number;
|
|
3168
704
|
};
|
|
3169
|
-
meta:
|
|
705
|
+
meta: object;
|
|
3170
706
|
}>;
|
|
3171
707
|
}>>;
|
|
3172
708
|
|
|
3173
709
|
declare const OrganizationNotInitializedError: {
|
|
3174
710
|
new (message?: string): {
|
|
3175
|
-
readonly type:
|
|
711
|
+
readonly type: ErrorType;
|
|
3176
712
|
readonly trpcCode: TrpcErrorCode;
|
|
3177
713
|
name: string;
|
|
3178
714
|
message: string;
|
|
@@ -3188,7 +724,7 @@ declare const OrganizationNotInitializedError: {
|
|
|
3188
724
|
};
|
|
3189
725
|
declare const OrganizationAlreadyInitializedError: {
|
|
3190
726
|
new (message?: string): {
|
|
3191
|
-
readonly type:
|
|
727
|
+
readonly type: ErrorType;
|
|
3192
728
|
readonly trpcCode: TrpcErrorCode;
|
|
3193
729
|
name: string;
|
|
3194
730
|
message: string;
|
|
@@ -3204,7 +740,7 @@ declare const OrganizationAlreadyInitializedError: {
|
|
|
3204
740
|
};
|
|
3205
741
|
declare const DeployHookMissingError: {
|
|
3206
742
|
new (message?: string): {
|
|
3207
|
-
readonly type:
|
|
743
|
+
readonly type: ErrorType;
|
|
3208
744
|
readonly trpcCode: TrpcErrorCode;
|
|
3209
745
|
name: string;
|
|
3210
746
|
message: string;
|
|
@@ -3220,7 +756,7 @@ declare const DeployHookMissingError: {
|
|
|
3220
756
|
};
|
|
3221
757
|
declare const DeployFailedError: {
|
|
3222
758
|
new (message?: string): {
|
|
3223
|
-
readonly type:
|
|
759
|
+
readonly type: ErrorType;
|
|
3224
760
|
readonly trpcCode: TrpcErrorCode;
|
|
3225
761
|
name: string;
|
|
3226
762
|
message: string;
|
|
@@ -3235,71 +771,12 @@ declare const DeployFailedError: {
|
|
|
3235
771
|
stackTraceLimit: number;
|
|
3236
772
|
};
|
|
3237
773
|
|
|
3238
|
-
declare const loginDto: z.ZodObject<{
|
|
3239
|
-
email: z.ZodEmail;
|
|
3240
|
-
password: z.ZodString;
|
|
3241
|
-
}, z.core.$strip>;
|
|
3242
|
-
declare const acceptInvitationDto: z.ZodObject<{
|
|
3243
|
-
token: z.ZodString;
|
|
3244
|
-
name: z.ZodOptional<z.ZodString>;
|
|
3245
|
-
password: z.ZodString;
|
|
3246
|
-
}, z.core.$strip>;
|
|
3247
|
-
declare const requestPasswordResetDto: z.ZodObject<{
|
|
3248
|
-
email: z.ZodEmail;
|
|
3249
|
-
}, z.core.$strip>;
|
|
3250
|
-
type LoginDto = z.infer<typeof loginDto>;
|
|
3251
|
-
type AcceptInvitationDto = z.infer<typeof acceptInvitationDto>;
|
|
3252
|
-
type RequestPasswordResetDto = z.infer<typeof requestPasswordResetDto>;
|
|
3253
|
-
|
|
3254
|
-
declare const inviteDto: z.ZodObject<{
|
|
3255
|
-
email: z.ZodEmail;
|
|
3256
|
-
role: z.ZodEnum<{
|
|
3257
|
-
admin: "admin";
|
|
3258
|
-
redacteur: "redacteur";
|
|
3259
|
-
}>;
|
|
3260
|
-
}, z.core.$strip>;
|
|
3261
|
-
declare const userUpdateDto: z.ZodObject<{
|
|
3262
|
-
id: z.ZodString;
|
|
3263
|
-
data: z.ZodObject<{
|
|
3264
|
-
name: z.ZodOptional<z.ZodString>;
|
|
3265
|
-
role: z.ZodOptional<z.ZodEnum<{
|
|
3266
|
-
admin: "admin";
|
|
3267
|
-
redacteur: "redacteur";
|
|
3268
|
-
}>>;
|
|
3269
|
-
email: z.ZodOptional<z.ZodEmail>;
|
|
3270
|
-
}, z.core.$strip>;
|
|
3271
|
-
}, z.core.$strip>;
|
|
3272
|
-
/**
|
|
3273
|
-
* What a person may change on THEIR OWN account: their name, nothing else.
|
|
3274
|
-
* Not the role (they would promote themselves), not the address (it is the
|
|
3275
|
-
* login identifier). `strictObject`, so one field too many refuses the input.
|
|
3276
|
-
*/
|
|
3277
|
-
declare const updateOwnProfileDto: z.ZodObject<{
|
|
3278
|
-
name: z.ZodString;
|
|
3279
|
-
}, z.core.$strict>;
|
|
3280
|
-
/** Public projection of a user — the ONLY user shape transport layers return. */
|
|
3281
|
-
declare const toPublicUser: ({ id, email, name, role }: User) => {
|
|
3282
|
-
id: string;
|
|
3283
|
-
email: string;
|
|
3284
|
-
name: string;
|
|
3285
|
-
role: "admin" | "redacteur";
|
|
3286
|
-
};
|
|
3287
|
-
type PublicUser = ReturnType<typeof toPublicUser>;
|
|
3288
|
-
type InviteDto = z.infer<typeof inviteDto>;
|
|
3289
|
-
type UserUpdateDto = z.infer<typeof userUpdateDto>;
|
|
3290
|
-
type UpdateOwnProfileDto = z.infer<typeof updateOwnProfileDto>;
|
|
3291
|
-
|
|
3292
|
-
declare const apiTokenCreateDto: z.ZodObject<{
|
|
3293
|
-
name: z.ZodString;
|
|
3294
|
-
}, z.core.$strip>;
|
|
3295
|
-
type ApiTokenCreateDto = z.infer<typeof apiTokenCreateDto>;
|
|
3296
|
-
|
|
3297
774
|
declare const authRouter: _trpc_server.TRPCBuiltRouter<{
|
|
3298
775
|
ctx: CoreContext;
|
|
3299
|
-
meta:
|
|
776
|
+
meta: object;
|
|
3300
777
|
errorShape: {
|
|
3301
778
|
data: {
|
|
3302
|
-
type?:
|
|
779
|
+
type?: ErrorType | undefined;
|
|
3303
780
|
code: _trpc_server.TRPC_ERROR_CODE_KEY;
|
|
3304
781
|
httpStatus: number;
|
|
3305
782
|
path?: string;
|
|
@@ -3327,14 +804,14 @@ declare const authRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3327
804
|
role: "admin" | "redacteur";
|
|
3328
805
|
};
|
|
3329
806
|
};
|
|
3330
|
-
meta:
|
|
807
|
+
meta: object;
|
|
3331
808
|
}>;
|
|
3332
809
|
logout: _trpc_server.TRPCMutationProcedure<{
|
|
3333
810
|
input: void;
|
|
3334
811
|
output: {
|
|
3335
812
|
loggedOut: boolean;
|
|
3336
813
|
};
|
|
3337
|
-
meta:
|
|
814
|
+
meta: object;
|
|
3338
815
|
}>;
|
|
3339
816
|
me: _trpc_server.TRPCQueryProcedure<{
|
|
3340
817
|
input: void;
|
|
@@ -3346,15 +823,15 @@ declare const authRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3346
823
|
role: "admin" | "redacteur";
|
|
3347
824
|
};
|
|
3348
825
|
};
|
|
3349
|
-
meta:
|
|
826
|
+
meta: object;
|
|
3350
827
|
}>;
|
|
3351
828
|
/** Device management: the sessions listed on the account page. */
|
|
3352
829
|
sessions: _trpc_server.TRPCBuiltRouter<{
|
|
3353
830
|
ctx: CoreContext;
|
|
3354
|
-
meta:
|
|
831
|
+
meta: object;
|
|
3355
832
|
errorShape: {
|
|
3356
833
|
data: {
|
|
3357
|
-
type?:
|
|
834
|
+
type?: ErrorType | undefined;
|
|
3358
835
|
code: _trpc_server.TRPC_ERROR_CODE_KEY;
|
|
3359
836
|
httpStatus: number;
|
|
3360
837
|
path?: string;
|
|
@@ -3375,7 +852,7 @@ declare const authRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3375
852
|
ip: string | null;
|
|
3376
853
|
current: boolean;
|
|
3377
854
|
}[];
|
|
3378
|
-
meta:
|
|
855
|
+
meta: object;
|
|
3379
856
|
}>;
|
|
3380
857
|
revoke: _trpc_server.TRPCMutationProcedure<{
|
|
3381
858
|
input: {
|
|
@@ -3384,7 +861,7 @@ declare const authRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3384
861
|
output: {
|
|
3385
862
|
revoked: string;
|
|
3386
863
|
};
|
|
3387
|
-
meta:
|
|
864
|
+
meta: object;
|
|
3388
865
|
}>;
|
|
3389
866
|
}>>;
|
|
3390
867
|
/** Consume an invitation link and set the password (public, single-use). */
|
|
@@ -3402,7 +879,7 @@ declare const authRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3402
879
|
role: "admin" | "redacteur";
|
|
3403
880
|
};
|
|
3404
881
|
};
|
|
3405
|
-
meta:
|
|
882
|
+
meta: object;
|
|
3406
883
|
}>;
|
|
3407
884
|
/**
|
|
3408
885
|
* « Forgotten password » — public, and the response is ALWAYS { ok: true }
|
|
@@ -3416,15 +893,15 @@ declare const authRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3416
893
|
output: {
|
|
3417
894
|
ok: boolean;
|
|
3418
895
|
};
|
|
3419
|
-
meta:
|
|
896
|
+
meta: object;
|
|
3420
897
|
}>;
|
|
3421
898
|
}>>;
|
|
3422
899
|
declare const usersRouter: _trpc_server.TRPCBuiltRouter<{
|
|
3423
900
|
ctx: CoreContext;
|
|
3424
|
-
meta:
|
|
901
|
+
meta: object;
|
|
3425
902
|
errorShape: {
|
|
3426
903
|
data: {
|
|
3427
|
-
type?:
|
|
904
|
+
type?: ErrorType | undefined;
|
|
3428
905
|
code: _trpc_server.TRPC_ERROR_CODE_KEY;
|
|
3429
906
|
httpStatus: number;
|
|
3430
907
|
path?: string;
|
|
@@ -3443,7 +920,7 @@ declare const usersRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3443
920
|
name: string;
|
|
3444
921
|
role: "admin" | "redacteur";
|
|
3445
922
|
}[];
|
|
3446
|
-
meta:
|
|
923
|
+
meta: object;
|
|
3447
924
|
}>;
|
|
3448
925
|
/**
|
|
3449
926
|
* A {id, name} directory readable by any signed-in member: the admin shows
|
|
@@ -3456,7 +933,7 @@ declare const usersRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3456
933
|
id: string;
|
|
3457
934
|
name: string;
|
|
3458
935
|
}[];
|
|
3459
|
-
meta:
|
|
936
|
+
meta: object;
|
|
3460
937
|
}>;
|
|
3461
938
|
/** Read a single user. */
|
|
3462
939
|
get: _trpc_server.TRPCQueryProcedure<{
|
|
@@ -3469,7 +946,7 @@ declare const usersRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3469
946
|
name: string;
|
|
3470
947
|
role: "admin" | "redacteur";
|
|
3471
948
|
};
|
|
3472
|
-
meta:
|
|
949
|
+
meta: object;
|
|
3473
950
|
}>;
|
|
3474
951
|
/** Invite a new member — the single-use link is returned to the admin. */
|
|
3475
952
|
invite: _trpc_server.TRPCMutationProcedure<{
|
|
@@ -3481,7 +958,7 @@ declare const usersRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3481
958
|
token: string;
|
|
3482
959
|
expiresAt: string;
|
|
3483
960
|
};
|
|
3484
|
-
meta:
|
|
961
|
+
meta: object;
|
|
3485
962
|
}>;
|
|
3486
963
|
update: _trpc_server.TRPCMutationProcedure<{
|
|
3487
964
|
input: {
|
|
@@ -3498,7 +975,7 @@ declare const usersRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3498
975
|
name: string;
|
|
3499
976
|
role: "admin" | "redacteur";
|
|
3500
977
|
};
|
|
3501
|
-
meta:
|
|
978
|
+
meta: object;
|
|
3502
979
|
}>;
|
|
3503
980
|
/**
|
|
3504
981
|
* One's own name, and only that. An administrator goes through `update`;
|
|
@@ -3516,7 +993,7 @@ declare const usersRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3516
993
|
role: "admin" | "redacteur";
|
|
3517
994
|
};
|
|
3518
995
|
};
|
|
3519
|
-
meta:
|
|
996
|
+
meta: object;
|
|
3520
997
|
}>;
|
|
3521
998
|
remove: _trpc_server.TRPCMutationProcedure<{
|
|
3522
999
|
input: {
|
|
@@ -3525,15 +1002,15 @@ declare const usersRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3525
1002
|
output: {
|
|
3526
1003
|
removed: string;
|
|
3527
1004
|
};
|
|
3528
|
-
meta:
|
|
1005
|
+
meta: object;
|
|
3529
1006
|
}>;
|
|
3530
1007
|
}>>;
|
|
3531
1008
|
declare const apiTokensRouter: _trpc_server.TRPCBuiltRouter<{
|
|
3532
1009
|
ctx: CoreContext;
|
|
3533
|
-
meta:
|
|
1010
|
+
meta: object;
|
|
3534
1011
|
errorShape: {
|
|
3535
1012
|
data: {
|
|
3536
|
-
type?:
|
|
1013
|
+
type?: ErrorType | undefined;
|
|
3537
1014
|
code: _trpc_server.TRPC_ERROR_CODE_KEY;
|
|
3538
1015
|
httpStatus: number;
|
|
3539
1016
|
path?: string;
|
|
@@ -3547,14 +1024,14 @@ declare const apiTokensRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3547
1024
|
list: _trpc_server.TRPCQueryProcedure<{
|
|
3548
1025
|
input: void;
|
|
3549
1026
|
output: Pick<{
|
|
3550
|
-
name: string;
|
|
3551
1027
|
id: string;
|
|
1028
|
+
name: string;
|
|
3552
1029
|
createdAt: string;
|
|
3553
1030
|
revokedAt: string | null;
|
|
3554
1031
|
tokenHash: string;
|
|
3555
1032
|
lastUsedAt: string | null;
|
|
3556
|
-
}, "
|
|
3557
|
-
meta:
|
|
1033
|
+
}, "id" | "name" | "createdAt" | "revokedAt" | "lastUsedAt">[];
|
|
1034
|
+
meta: object;
|
|
3558
1035
|
}>;
|
|
3559
1036
|
/** The plaintext token is returned ONCE — only its hash is stored. */
|
|
3560
1037
|
create: _trpc_server.TRPCMutationProcedure<{
|
|
@@ -3566,7 +1043,7 @@ declare const apiTokensRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3566
1043
|
id: string;
|
|
3567
1044
|
name: string;
|
|
3568
1045
|
};
|
|
3569
|
-
meta:
|
|
1046
|
+
meta: object;
|
|
3570
1047
|
}>;
|
|
3571
1048
|
revoke: _trpc_server.TRPCMutationProcedure<{
|
|
3572
1049
|
input: {
|
|
@@ -3575,7 +1052,7 @@ declare const apiTokensRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3575
1052
|
output: {
|
|
3576
1053
|
revoked: string;
|
|
3577
1054
|
};
|
|
3578
|
-
meta:
|
|
1055
|
+
meta: object;
|
|
3579
1056
|
}>;
|
|
3580
1057
|
}>>;
|
|
3581
1058
|
/**
|
|
@@ -3589,10 +1066,10 @@ declare const apiTokensRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3589
1066
|
*/
|
|
3590
1067
|
declare const invitationsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
3591
1068
|
ctx: CoreContext;
|
|
3592
|
-
meta:
|
|
1069
|
+
meta: object;
|
|
3593
1070
|
errorShape: {
|
|
3594
1071
|
data: {
|
|
3595
|
-
type?:
|
|
1072
|
+
type?: ErrorType | undefined;
|
|
3596
1073
|
code: _trpc_server.TRPC_ERROR_CODE_KEY;
|
|
3597
1074
|
httpStatus: number;
|
|
3598
1075
|
path?: string;
|
|
@@ -3612,7 +1089,7 @@ declare const invitationsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3612
1089
|
token: string;
|
|
3613
1090
|
expiresAt: string;
|
|
3614
1091
|
};
|
|
3615
|
-
meta:
|
|
1092
|
+
meta: object;
|
|
3616
1093
|
}>;
|
|
3617
1094
|
/** Invited members who have not joined yet: nothing else shows them. */
|
|
3618
1095
|
list: _trpc_server.TRPCQueryProcedure<{
|
|
@@ -3623,7 +1100,7 @@ declare const invitationsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3623
1100
|
role: "admin" | "redacteur";
|
|
3624
1101
|
expiresAt: string;
|
|
3625
1102
|
}[];
|
|
3626
|
-
meta:
|
|
1103
|
+
meta: object;
|
|
3627
1104
|
}>;
|
|
3628
1105
|
revoke: _trpc_server.TRPCMutationProcedure<{
|
|
3629
1106
|
input: {
|
|
@@ -3632,7 +1109,7 @@ declare const invitationsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3632
1109
|
output: {
|
|
3633
1110
|
revoked: string;
|
|
3634
1111
|
};
|
|
3635
|
-
meta:
|
|
1112
|
+
meta: object;
|
|
3636
1113
|
}>;
|
|
3637
1114
|
accept: _trpc_server.TRPCMutationProcedure<{
|
|
3638
1115
|
input: {
|
|
@@ -3648,7 +1125,7 @@ declare const invitationsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3648
1125
|
role: "admin" | "redacteur";
|
|
3649
1126
|
};
|
|
3650
1127
|
};
|
|
3651
|
-
meta:
|
|
1128
|
+
meta: object;
|
|
3652
1129
|
}>;
|
|
3653
1130
|
requestPasswordReset: _trpc_server.TRPCMutationProcedure<{
|
|
3654
1131
|
input: {
|
|
@@ -3657,13 +1134,13 @@ declare const invitationsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3657
1134
|
output: {
|
|
3658
1135
|
ok: boolean;
|
|
3659
1136
|
};
|
|
3660
|
-
meta:
|
|
1137
|
+
meta: object;
|
|
3661
1138
|
}>;
|
|
3662
1139
|
}>>;
|
|
3663
1140
|
|
|
3664
1141
|
declare const UserNotFoundError: {
|
|
3665
1142
|
new (message?: string): {
|
|
3666
|
-
readonly type:
|
|
1143
|
+
readonly type: ErrorType;
|
|
3667
1144
|
readonly trpcCode: TrpcErrorCode;
|
|
3668
1145
|
name: string;
|
|
3669
1146
|
message: string;
|
|
@@ -3679,7 +1156,7 @@ declare const UserNotFoundError: {
|
|
|
3679
1156
|
};
|
|
3680
1157
|
declare const SessionNotFoundError: {
|
|
3681
1158
|
new (message?: string): {
|
|
3682
|
-
readonly type:
|
|
1159
|
+
readonly type: ErrorType;
|
|
3683
1160
|
readonly trpcCode: TrpcErrorCode;
|
|
3684
1161
|
name: string;
|
|
3685
1162
|
message: string;
|
|
@@ -3695,7 +1172,7 @@ declare const SessionNotFoundError: {
|
|
|
3695
1172
|
};
|
|
3696
1173
|
declare const InvitationInvalidError: {
|
|
3697
1174
|
new (message?: string): {
|
|
3698
|
-
readonly type:
|
|
1175
|
+
readonly type: ErrorType;
|
|
3699
1176
|
readonly trpcCode: TrpcErrorCode;
|
|
3700
1177
|
name: string;
|
|
3701
1178
|
message: string;
|
|
@@ -3711,7 +1188,7 @@ declare const InvitationInvalidError: {
|
|
|
3711
1188
|
};
|
|
3712
1189
|
declare const CannotRemoveSelfError: {
|
|
3713
1190
|
new (message?: string): {
|
|
3714
|
-
readonly type:
|
|
1191
|
+
readonly type: ErrorType;
|
|
3715
1192
|
readonly trpcCode: TrpcErrorCode;
|
|
3716
1193
|
name: string;
|
|
3717
1194
|
message: string;
|
|
@@ -3728,7 +1205,7 @@ declare const CannotRemoveSelfError: {
|
|
|
3728
1205
|
/** Throttled on ONE account — distinct from bad credentials: we refuse to try. */
|
|
3729
1206
|
declare const TooManyAttemptsError: {
|
|
3730
1207
|
new (message?: string): {
|
|
3731
|
-
readonly type:
|
|
1208
|
+
readonly type: ErrorType;
|
|
3732
1209
|
readonly trpcCode: TrpcErrorCode;
|
|
3733
1210
|
name: string;
|
|
3734
1211
|
message: string;
|
|
@@ -3745,10 +1222,10 @@ declare const TooManyAttemptsError: {
|
|
|
3745
1222
|
|
|
3746
1223
|
declare const mediaRouter: _trpc_server.TRPCBuiltRouter<{
|
|
3747
1224
|
ctx: CoreContext;
|
|
3748
|
-
meta:
|
|
1225
|
+
meta: object;
|
|
3749
1226
|
errorShape: {
|
|
3750
1227
|
data: {
|
|
3751
|
-
type?:
|
|
1228
|
+
type?: ErrorType | undefined;
|
|
3752
1229
|
code: _trpc_server.TRPC_ERROR_CODE_KEY;
|
|
3753
1230
|
httpStatus: number;
|
|
3754
1231
|
path?: string;
|
|
@@ -3769,7 +1246,7 @@ declare const mediaRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3769
1246
|
key: string;
|
|
3770
1247
|
url: string;
|
|
3771
1248
|
};
|
|
3772
|
-
meta:
|
|
1249
|
+
meta: object;
|
|
3773
1250
|
}>;
|
|
3774
1251
|
finalize: _trpc_server.TRPCMutationProcedure<{
|
|
3775
1252
|
input: {
|
|
@@ -3780,65 +1257,65 @@ declare const mediaRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3780
1257
|
metaData?: Record<string, unknown> | undefined;
|
|
3781
1258
|
};
|
|
3782
1259
|
output: {
|
|
3783
|
-
filename: string;
|
|
3784
1260
|
id: string;
|
|
1261
|
+
createdBy: string | null;
|
|
3785
1262
|
updatedBy: string | null;
|
|
3786
1263
|
legacyExtra: Record<string, unknown> | null;
|
|
3787
1264
|
createdAt: string;
|
|
3788
1265
|
updatedAt: string;
|
|
1266
|
+
filename: string;
|
|
3789
1267
|
mime: string;
|
|
3790
|
-
|
|
1268
|
+
metaData: Record<string, unknown> | null;
|
|
3791
1269
|
alt: string | null;
|
|
1270
|
+
size: number;
|
|
3792
1271
|
caption: string | null;
|
|
3793
1272
|
objects: Record<string, unknown>;
|
|
3794
|
-
metaData: Record<string, unknown> | null;
|
|
3795
|
-
createdBy: string | null;
|
|
3796
1273
|
};
|
|
3797
|
-
meta:
|
|
1274
|
+
meta: object;
|
|
3798
1275
|
}>;
|
|
3799
1276
|
list: _trpc_server.TRPCQueryProcedure<{
|
|
3800
1277
|
input: void;
|
|
3801
1278
|
output: ({
|
|
3802
|
-
filename: string;
|
|
3803
1279
|
id: string;
|
|
1280
|
+
createdBy: string | null;
|
|
3804
1281
|
updatedBy: string | null;
|
|
3805
1282
|
legacyExtra: Record<string, unknown> | null;
|
|
3806
1283
|
createdAt: string;
|
|
3807
1284
|
updatedAt: string;
|
|
1285
|
+
filename: string;
|
|
3808
1286
|
mime: string;
|
|
3809
|
-
|
|
1287
|
+
metaData: Record<string, unknown> | null;
|
|
3810
1288
|
alt: string | null;
|
|
1289
|
+
size: number;
|
|
3811
1290
|
caption: string | null;
|
|
3812
1291
|
objects: Record<string, unknown>;
|
|
3813
|
-
metaData: Record<string, unknown> | null;
|
|
3814
|
-
createdBy: string | null;
|
|
3815
1292
|
} & {
|
|
3816
1293
|
objects: Record<string, string>;
|
|
3817
1294
|
})[];
|
|
3818
|
-
meta:
|
|
1295
|
+
meta: object;
|
|
3819
1296
|
}>;
|
|
3820
1297
|
get: _trpc_server.TRPCQueryProcedure<{
|
|
3821
1298
|
input: {
|
|
3822
1299
|
id: string;
|
|
3823
1300
|
};
|
|
3824
1301
|
output: {
|
|
3825
|
-
filename: string;
|
|
3826
1302
|
id: string;
|
|
1303
|
+
createdBy: string | null;
|
|
3827
1304
|
updatedBy: string | null;
|
|
3828
1305
|
legacyExtra: Record<string, unknown> | null;
|
|
3829
1306
|
createdAt: string;
|
|
3830
1307
|
updatedAt: string;
|
|
1308
|
+
filename: string;
|
|
3831
1309
|
mime: string;
|
|
3832
|
-
|
|
1310
|
+
metaData: Record<string, unknown> | null;
|
|
3833
1311
|
alt: string | null;
|
|
1312
|
+
size: number;
|
|
3834
1313
|
caption: string | null;
|
|
3835
1314
|
objects: Record<string, unknown>;
|
|
3836
|
-
metaData: Record<string, unknown> | null;
|
|
3837
|
-
createdBy: string | null;
|
|
3838
1315
|
} & {
|
|
3839
1316
|
objects: Record<string, string>;
|
|
3840
1317
|
};
|
|
3841
|
-
meta:
|
|
1318
|
+
meta: object;
|
|
3842
1319
|
}>;
|
|
3843
1320
|
update: _trpc_server.TRPCMutationProcedure<{
|
|
3844
1321
|
input: {
|
|
@@ -3850,21 +1327,21 @@ declare const mediaRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3850
1327
|
};
|
|
3851
1328
|
};
|
|
3852
1329
|
output: {
|
|
3853
|
-
filename: string;
|
|
3854
1330
|
id: string;
|
|
1331
|
+
createdBy: string | null;
|
|
3855
1332
|
updatedBy: string | null;
|
|
3856
1333
|
legacyExtra: Record<string, unknown> | null;
|
|
3857
1334
|
createdAt: string;
|
|
3858
1335
|
updatedAt: string;
|
|
1336
|
+
filename: string;
|
|
3859
1337
|
mime: string;
|
|
3860
|
-
|
|
1338
|
+
metaData: Record<string, unknown> | null;
|
|
3861
1339
|
alt: string | null;
|
|
1340
|
+
size: number;
|
|
3862
1341
|
caption: string | null;
|
|
3863
1342
|
objects: Record<string, unknown>;
|
|
3864
|
-
metaData: Record<string, unknown> | null;
|
|
3865
|
-
createdBy: string | null;
|
|
3866
1343
|
};
|
|
3867
|
-
meta:
|
|
1344
|
+
meta: object;
|
|
3868
1345
|
}>;
|
|
3869
1346
|
remove: _trpc_server.TRPCMutationProcedure<{
|
|
3870
1347
|
input: {
|
|
@@ -3873,13 +1350,13 @@ declare const mediaRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3873
1350
|
output: {
|
|
3874
1351
|
removed: string;
|
|
3875
1352
|
};
|
|
3876
|
-
meta:
|
|
1353
|
+
meta: object;
|
|
3877
1354
|
}>;
|
|
3878
1355
|
}>>;
|
|
3879
1356
|
|
|
3880
1357
|
declare const MediaNotFoundError: {
|
|
3881
1358
|
new (message?: string): {
|
|
3882
|
-
readonly type:
|
|
1359
|
+
readonly type: ErrorType;
|
|
3883
1360
|
readonly trpcCode: TrpcErrorCode;
|
|
3884
1361
|
name: string;
|
|
3885
1362
|
message: string;
|
|
@@ -3895,7 +1372,7 @@ declare const MediaNotFoundError: {
|
|
|
3895
1372
|
};
|
|
3896
1373
|
declare const UnsupportedMimeError: {
|
|
3897
1374
|
new (message?: string): {
|
|
3898
|
-
readonly type:
|
|
1375
|
+
readonly type: ErrorType;
|
|
3899
1376
|
readonly trpcCode: TrpcErrorCode;
|
|
3900
1377
|
name: string;
|
|
3901
1378
|
message: string;
|
|
@@ -3911,7 +1388,7 @@ declare const UnsupportedMimeError: {
|
|
|
3911
1388
|
};
|
|
3912
1389
|
declare const UploadIncompleteError: {
|
|
3913
1390
|
new (message?: string): {
|
|
3914
|
-
readonly type:
|
|
1391
|
+
readonly type: ErrorType;
|
|
3915
1392
|
readonly trpcCode: TrpcErrorCode;
|
|
3916
1393
|
name: string;
|
|
3917
1394
|
message: string;
|
|
@@ -3928,10 +1405,10 @@ declare const UploadIncompleteError: {
|
|
|
3928
1405
|
|
|
3929
1406
|
declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
3930
1407
|
ctx: CoreContext;
|
|
3931
|
-
meta:
|
|
1408
|
+
meta: object;
|
|
3932
1409
|
errorShape: {
|
|
3933
1410
|
data: {
|
|
3934
|
-
type?:
|
|
1411
|
+
type?: ErrorType | undefined;
|
|
3935
1412
|
code: _trpc_server.TRPC_ERROR_CODE_KEY;
|
|
3936
1413
|
httpStatus: number;
|
|
3937
1414
|
path?: string;
|
|
@@ -3945,19 +1422,14 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3945
1422
|
list: _trpc_server.TRPCQueryProcedure<{
|
|
3946
1423
|
input: void;
|
|
3947
1424
|
output: {
|
|
3948
|
-
name: string;
|
|
3949
1425
|
id: string;
|
|
1426
|
+
name: string;
|
|
3950
1427
|
slug: string;
|
|
3951
1428
|
description: string | null;
|
|
3952
|
-
updatedBy: string | null;
|
|
3953
|
-
legacyExtra: Record<string, unknown> | null;
|
|
3954
|
-
createdAt: string;
|
|
3955
|
-
updatedAt: string;
|
|
3956
|
-
createdBy: string | null;
|
|
3957
1429
|
fields: {
|
|
3958
1430
|
name: string;
|
|
3959
1431
|
label: string;
|
|
3960
|
-
type: "number" | "boolean" | "
|
|
1432
|
+
type: "number" | "boolean" | "json" | "date" | "text" | "rich-text" | "media" | "relation" | "select" | "steps";
|
|
3961
1433
|
required: boolean;
|
|
3962
1434
|
hidden: boolean;
|
|
3963
1435
|
options?: string[] | undefined;
|
|
@@ -3966,8 +1438,13 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3966
1438
|
editor: Record<string, unknown> | null;
|
|
3967
1439
|
display: Record<string, unknown> | null;
|
|
3968
1440
|
headings: Record<string, unknown> | null;
|
|
1441
|
+
createdBy: string | null;
|
|
1442
|
+
updatedBy: string | null;
|
|
1443
|
+
legacyExtra: Record<string, unknown> | null;
|
|
1444
|
+
createdAt: string;
|
|
1445
|
+
updatedAt: string;
|
|
3969
1446
|
}[];
|
|
3970
|
-
meta:
|
|
1447
|
+
meta: object;
|
|
3971
1448
|
}>;
|
|
3972
1449
|
get: _trpc_server.TRPCQueryProcedure<{
|
|
3973
1450
|
input: {
|
|
@@ -3997,7 +1474,7 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3997
1474
|
createdAt: string;
|
|
3998
1475
|
updatedAt: string;
|
|
3999
1476
|
};
|
|
4000
|
-
meta:
|
|
1477
|
+
meta: object;
|
|
4001
1478
|
}>;
|
|
4002
1479
|
create: _trpc_server.TRPCMutationProcedure<{
|
|
4003
1480
|
input: {
|
|
@@ -4005,7 +1482,7 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4005
1482
|
fields: {
|
|
4006
1483
|
name: string;
|
|
4007
1484
|
label: string;
|
|
4008
|
-
type: "number" | "boolean" | "
|
|
1485
|
+
type: "number" | "boolean" | "json" | "date" | "text" | "rich-text" | "media" | "relation" | "select" | "steps";
|
|
4009
1486
|
required?: boolean | undefined;
|
|
4010
1487
|
hidden?: boolean | undefined;
|
|
4011
1488
|
options?: string[] | undefined;
|
|
@@ -4018,19 +1495,14 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4018
1495
|
slug?: string | undefined;
|
|
4019
1496
|
};
|
|
4020
1497
|
output: {
|
|
4021
|
-
name: string;
|
|
4022
1498
|
id: string;
|
|
1499
|
+
name: string;
|
|
4023
1500
|
slug: string;
|
|
4024
1501
|
description: string | null;
|
|
4025
|
-
updatedBy: string | null;
|
|
4026
|
-
legacyExtra: Record<string, unknown> | null;
|
|
4027
|
-
createdAt: string;
|
|
4028
|
-
updatedAt: string;
|
|
4029
|
-
createdBy: string | null;
|
|
4030
1502
|
fields: {
|
|
4031
1503
|
name: string;
|
|
4032
1504
|
label: string;
|
|
4033
|
-
type: "number" | "boolean" | "
|
|
1505
|
+
type: "number" | "boolean" | "json" | "date" | "text" | "rich-text" | "media" | "relation" | "select" | "steps";
|
|
4034
1506
|
required: boolean;
|
|
4035
1507
|
hidden: boolean;
|
|
4036
1508
|
options?: string[] | undefined;
|
|
@@ -4039,8 +1511,13 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4039
1511
|
editor: Record<string, unknown> | null;
|
|
4040
1512
|
display: Record<string, unknown> | null;
|
|
4041
1513
|
headings: Record<string, unknown> | null;
|
|
1514
|
+
createdBy: string | null;
|
|
1515
|
+
updatedBy: string | null;
|
|
1516
|
+
legacyExtra: Record<string, unknown> | null;
|
|
1517
|
+
createdAt: string;
|
|
1518
|
+
updatedAt: string;
|
|
4042
1519
|
};
|
|
4043
|
-
meta:
|
|
1520
|
+
meta: object;
|
|
4044
1521
|
}>;
|
|
4045
1522
|
update: _trpc_server.TRPCMutationProcedure<{
|
|
4046
1523
|
input: {
|
|
@@ -4055,7 +1532,7 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4055
1532
|
fields?: {
|
|
4056
1533
|
name: string;
|
|
4057
1534
|
label: string;
|
|
4058
|
-
type: "number" | "boolean" | "
|
|
1535
|
+
type: "number" | "boolean" | "json" | "date" | "text" | "rich-text" | "media" | "relation" | "select" | "steps";
|
|
4059
1536
|
required?: boolean | undefined;
|
|
4060
1537
|
hidden?: boolean | undefined;
|
|
4061
1538
|
options?: string[] | undefined;
|
|
@@ -4064,19 +1541,14 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4064
1541
|
};
|
|
4065
1542
|
};
|
|
4066
1543
|
output: {
|
|
4067
|
-
name: string;
|
|
4068
1544
|
id: string;
|
|
1545
|
+
name: string;
|
|
4069
1546
|
slug: string;
|
|
4070
1547
|
description: string | null;
|
|
4071
|
-
updatedBy: string | null;
|
|
4072
|
-
legacyExtra: Record<string, unknown> | null;
|
|
4073
|
-
createdAt: string;
|
|
4074
|
-
updatedAt: string;
|
|
4075
|
-
createdBy: string | null;
|
|
4076
1548
|
fields: {
|
|
4077
1549
|
name: string;
|
|
4078
1550
|
label: string;
|
|
4079
|
-
type: "number" | "boolean" | "
|
|
1551
|
+
type: "number" | "boolean" | "json" | "date" | "text" | "rich-text" | "media" | "relation" | "select" | "steps";
|
|
4080
1552
|
required: boolean;
|
|
4081
1553
|
hidden: boolean;
|
|
4082
1554
|
options?: string[] | undefined;
|
|
@@ -4085,8 +1557,13 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4085
1557
|
editor: Record<string, unknown> | null;
|
|
4086
1558
|
display: Record<string, unknown> | null;
|
|
4087
1559
|
headings: Record<string, unknown> | null;
|
|
1560
|
+
createdBy: string | null;
|
|
1561
|
+
updatedBy: string | null;
|
|
1562
|
+
legacyExtra: Record<string, unknown> | null;
|
|
1563
|
+
createdAt: string;
|
|
1564
|
+
updatedAt: string;
|
|
4088
1565
|
};
|
|
4089
|
-
meta:
|
|
1566
|
+
meta: object;
|
|
4090
1567
|
}>;
|
|
4091
1568
|
remove: _trpc_server.TRPCMutationProcedure<{
|
|
4092
1569
|
input: {
|
|
@@ -4095,14 +1572,14 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4095
1572
|
output: {
|
|
4096
1573
|
removed: string;
|
|
4097
1574
|
};
|
|
4098
|
-
meta:
|
|
1575
|
+
meta: object;
|
|
4099
1576
|
}>;
|
|
4100
1577
|
entries: _trpc_server.TRPCBuiltRouter<{
|
|
4101
1578
|
ctx: CoreContext;
|
|
4102
|
-
meta:
|
|
1579
|
+
meta: object;
|
|
4103
1580
|
errorShape: {
|
|
4104
1581
|
data: {
|
|
4105
|
-
type?:
|
|
1582
|
+
type?: ErrorType | undefined;
|
|
4106
1583
|
code: _trpc_server.TRPC_ERROR_CODE_KEY;
|
|
4107
1584
|
httpStatus: number;
|
|
4108
1585
|
path?: string;
|
|
@@ -4132,9 +1609,9 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4132
1609
|
createdAt: string;
|
|
4133
1610
|
updatedAt: string;
|
|
4134
1611
|
};
|
|
4135
|
-
meta:
|
|
1612
|
+
meta: object;
|
|
4136
1613
|
}>;
|
|
4137
|
-
/** Across collections:
|
|
1614
|
+
/** Across collections: finds content without knowing where it lives. */
|
|
4138
1615
|
search: _trpc_server.TRPCQueryProcedure<{
|
|
4139
1616
|
input: {
|
|
4140
1617
|
query: string;
|
|
@@ -4158,7 +1635,7 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4158
1635
|
updatedAt: string;
|
|
4159
1636
|
collectionSlug: string;
|
|
4160
1637
|
}[];
|
|
4161
|
-
meta:
|
|
1638
|
+
meta: object;
|
|
4162
1639
|
}>;
|
|
4163
1640
|
/** Narrowing is optional: a caller that ignores it keeps the old behaviour. */
|
|
4164
1641
|
list: _trpc_server.TRPCQueryProcedure<{
|
|
@@ -4185,7 +1662,7 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4185
1662
|
createdAt: string;
|
|
4186
1663
|
updatedAt: string;
|
|
4187
1664
|
}[];
|
|
4188
|
-
meta:
|
|
1665
|
+
meta: object;
|
|
4189
1666
|
}>;
|
|
4190
1667
|
/** The total a listing is a window onto, under the same narrowing. */
|
|
4191
1668
|
count: _trpc_server.TRPCQueryProcedure<{
|
|
@@ -4195,7 +1672,7 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4195
1672
|
search?: string | undefined;
|
|
4196
1673
|
};
|
|
4197
1674
|
output: number;
|
|
4198
|
-
meta:
|
|
1675
|
+
meta: object;
|
|
4199
1676
|
}>;
|
|
4200
1677
|
create: _trpc_server.TRPCMutationProcedure<{
|
|
4201
1678
|
input: {
|
|
@@ -4212,18 +1689,18 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4212
1689
|
id: string;
|
|
4213
1690
|
data: Record<string, unknown>;
|
|
4214
1691
|
slug: string;
|
|
1692
|
+
createdBy: string | null;
|
|
4215
1693
|
updatedBy: string | null;
|
|
4216
1694
|
legacyExtra: Record<string, unknown> | null;
|
|
4217
1695
|
createdAt: string;
|
|
4218
1696
|
updatedAt: string;
|
|
4219
|
-
createdBy: string | null;
|
|
4220
|
-
collectionId: string;
|
|
4221
1697
|
title: string;
|
|
1698
|
+
collectionId: string;
|
|
4222
1699
|
related: string[] | null;
|
|
4223
1700
|
status: "draft" | "waiting" | "ready" | "scheduled" | "published";
|
|
4224
1701
|
publishedAt: string | null;
|
|
4225
1702
|
};
|
|
4226
|
-
meta:
|
|
1703
|
+
meta: object;
|
|
4227
1704
|
}>;
|
|
4228
1705
|
update: _trpc_server.TRPCMutationProcedure<{
|
|
4229
1706
|
input: {
|
|
@@ -4241,18 +1718,18 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4241
1718
|
id: string;
|
|
4242
1719
|
data: Record<string, unknown>;
|
|
4243
1720
|
slug: string;
|
|
1721
|
+
createdBy: string | null;
|
|
4244
1722
|
updatedBy: string | null;
|
|
4245
1723
|
legacyExtra: Record<string, unknown> | null;
|
|
4246
1724
|
createdAt: string;
|
|
4247
1725
|
updatedAt: string;
|
|
4248
|
-
createdBy: string | null;
|
|
4249
|
-
collectionId: string;
|
|
4250
1726
|
title: string;
|
|
1727
|
+
collectionId: string;
|
|
4251
1728
|
related: string[] | null;
|
|
4252
1729
|
status: "draft" | "waiting" | "ready" | "scheduled" | "published";
|
|
4253
1730
|
publishedAt: string | null;
|
|
4254
1731
|
};
|
|
4255
|
-
meta:
|
|
1732
|
+
meta: object;
|
|
4256
1733
|
}>;
|
|
4257
1734
|
remove: _trpc_server.TRPCMutationProcedure<{
|
|
4258
1735
|
input: {
|
|
@@ -4261,14 +1738,14 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4261
1738
|
output: {
|
|
4262
1739
|
removed: string;
|
|
4263
1740
|
};
|
|
4264
|
-
meta:
|
|
1741
|
+
meta: object;
|
|
4265
1742
|
}>;
|
|
4266
1743
|
}>>;
|
|
4267
1744
|
}>>;
|
|
4268
1745
|
|
|
4269
1746
|
declare const CollectionNotFoundError: {
|
|
4270
1747
|
new (message?: string): {
|
|
4271
|
-
readonly type:
|
|
1748
|
+
readonly type: ErrorType;
|
|
4272
1749
|
readonly trpcCode: TrpcErrorCode;
|
|
4273
1750
|
name: string;
|
|
4274
1751
|
message: string;
|
|
@@ -4284,7 +1761,7 @@ declare const CollectionNotFoundError: {
|
|
|
4284
1761
|
};
|
|
4285
1762
|
declare const EntryNotFoundError: {
|
|
4286
1763
|
new (message?: string): {
|
|
4287
|
-
readonly type:
|
|
1764
|
+
readonly type: ErrorType;
|
|
4288
1765
|
readonly trpcCode: TrpcErrorCode;
|
|
4289
1766
|
name: string;
|
|
4290
1767
|
message: string;
|
|
@@ -4300,7 +1777,7 @@ declare const EntryNotFoundError: {
|
|
|
4300
1777
|
};
|
|
4301
1778
|
declare const InvalidEntryDataError: {
|
|
4302
1779
|
new (message?: string): {
|
|
4303
|
-
readonly type:
|
|
1780
|
+
readonly type: ErrorType;
|
|
4304
1781
|
readonly trpcCode: TrpcErrorCode;
|
|
4305
1782
|
name: string;
|
|
4306
1783
|
message: string;
|
|
@@ -4316,7 +1793,7 @@ declare const InvalidEntryDataError: {
|
|
|
4316
1793
|
};
|
|
4317
1794
|
declare const DuplicateSlugError: {
|
|
4318
1795
|
new (message?: string): {
|
|
4319
|
-
readonly type:
|
|
1796
|
+
readonly type: ErrorType;
|
|
4320
1797
|
readonly trpcCode: TrpcErrorCode;
|
|
4321
1798
|
name: string;
|
|
4322
1799
|
message: string;
|
|
@@ -4336,10 +1813,10 @@ declare function createCore({ env }?: {
|
|
|
4336
1813
|
}): Core;
|
|
4337
1814
|
declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
4338
1815
|
ctx: CoreContext;
|
|
4339
|
-
meta:
|
|
1816
|
+
meta: object;
|
|
4340
1817
|
errorShape: {
|
|
4341
1818
|
data: {
|
|
4342
|
-
type?:
|
|
1819
|
+
type?: ErrorType | undefined;
|
|
4343
1820
|
code: _trpc_server.TRPC_ERROR_CODE_KEY;
|
|
4344
1821
|
httpStatus: number;
|
|
4345
1822
|
path?: string;
|
|
@@ -4352,10 +1829,10 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4352
1829
|
}, _trpc_server.TRPCDecorateCreateRouterOptions<{
|
|
4353
1830
|
health: _trpc_server.TRPCBuiltRouter<{
|
|
4354
1831
|
ctx: CoreContext;
|
|
4355
|
-
meta:
|
|
1832
|
+
meta: object;
|
|
4356
1833
|
errorShape: {
|
|
4357
1834
|
data: {
|
|
4358
|
-
type?:
|
|
1835
|
+
type?: ErrorType | undefined;
|
|
4359
1836
|
code: _trpc_server.TRPC_ERROR_CODE_KEY;
|
|
4360
1837
|
httpStatus: number;
|
|
4361
1838
|
path?: string;
|
|
@@ -4369,15 +1846,15 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4369
1846
|
ping: _trpc_server.TRPCQueryProcedure<{
|
|
4370
1847
|
input: void;
|
|
4371
1848
|
output: HealthStatus;
|
|
4372
|
-
meta:
|
|
1849
|
+
meta: object;
|
|
4373
1850
|
}>;
|
|
4374
1851
|
}>>;
|
|
4375
1852
|
auth: _trpc_server.TRPCBuiltRouter<{
|
|
4376
1853
|
ctx: CoreContext;
|
|
4377
|
-
meta:
|
|
1854
|
+
meta: object;
|
|
4378
1855
|
errorShape: {
|
|
4379
1856
|
data: {
|
|
4380
|
-
type?:
|
|
1857
|
+
type?: ErrorType | undefined;
|
|
4381
1858
|
code: _trpc_server.TRPC_ERROR_CODE_KEY;
|
|
4382
1859
|
httpStatus: number;
|
|
4383
1860
|
path?: string;
|
|
@@ -4403,14 +1880,14 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4403
1880
|
role: "admin" | "redacteur";
|
|
4404
1881
|
};
|
|
4405
1882
|
};
|
|
4406
|
-
meta:
|
|
1883
|
+
meta: object;
|
|
4407
1884
|
}>;
|
|
4408
1885
|
logout: _trpc_server.TRPCMutationProcedure<{
|
|
4409
1886
|
input: void;
|
|
4410
1887
|
output: {
|
|
4411
1888
|
loggedOut: boolean;
|
|
4412
1889
|
};
|
|
4413
|
-
meta:
|
|
1890
|
+
meta: object;
|
|
4414
1891
|
}>;
|
|
4415
1892
|
me: _trpc_server.TRPCQueryProcedure<{
|
|
4416
1893
|
input: void;
|
|
@@ -4422,14 +1899,14 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4422
1899
|
role: "admin" | "redacteur";
|
|
4423
1900
|
};
|
|
4424
1901
|
};
|
|
4425
|
-
meta:
|
|
1902
|
+
meta: object;
|
|
4426
1903
|
}>;
|
|
4427
1904
|
sessions: _trpc_server.TRPCBuiltRouter<{
|
|
4428
1905
|
ctx: CoreContext;
|
|
4429
|
-
meta:
|
|
1906
|
+
meta: object;
|
|
4430
1907
|
errorShape: {
|
|
4431
1908
|
data: {
|
|
4432
|
-
type?:
|
|
1909
|
+
type?: ErrorType | undefined;
|
|
4433
1910
|
code: _trpc_server.TRPC_ERROR_CODE_KEY;
|
|
4434
1911
|
httpStatus: number;
|
|
4435
1912
|
path?: string;
|
|
@@ -4450,7 +1927,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4450
1927
|
ip: string | null;
|
|
4451
1928
|
current: boolean;
|
|
4452
1929
|
}[];
|
|
4453
|
-
meta:
|
|
1930
|
+
meta: object;
|
|
4454
1931
|
}>;
|
|
4455
1932
|
revoke: _trpc_server.TRPCMutationProcedure<{
|
|
4456
1933
|
input: {
|
|
@@ -4459,7 +1936,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4459
1936
|
output: {
|
|
4460
1937
|
revoked: string;
|
|
4461
1938
|
};
|
|
4462
|
-
meta:
|
|
1939
|
+
meta: object;
|
|
4463
1940
|
}>;
|
|
4464
1941
|
}>>;
|
|
4465
1942
|
acceptInvitation: _trpc_server.TRPCMutationProcedure<{
|
|
@@ -4476,7 +1953,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4476
1953
|
role: "admin" | "redacteur";
|
|
4477
1954
|
};
|
|
4478
1955
|
};
|
|
4479
|
-
meta:
|
|
1956
|
+
meta: object;
|
|
4480
1957
|
}>;
|
|
4481
1958
|
requestPasswordReset: _trpc_server.TRPCMutationProcedure<{
|
|
4482
1959
|
input: {
|
|
@@ -4485,15 +1962,15 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4485
1962
|
output: {
|
|
4486
1963
|
ok: boolean;
|
|
4487
1964
|
};
|
|
4488
|
-
meta:
|
|
1965
|
+
meta: object;
|
|
4489
1966
|
}>;
|
|
4490
1967
|
}>>;
|
|
4491
1968
|
users: _trpc_server.TRPCBuiltRouter<{
|
|
4492
1969
|
ctx: CoreContext;
|
|
4493
|
-
meta:
|
|
1970
|
+
meta: object;
|
|
4494
1971
|
errorShape: {
|
|
4495
1972
|
data: {
|
|
4496
|
-
type?:
|
|
1973
|
+
type?: ErrorType | undefined;
|
|
4497
1974
|
code: _trpc_server.TRPC_ERROR_CODE_KEY;
|
|
4498
1975
|
httpStatus: number;
|
|
4499
1976
|
path?: string;
|
|
@@ -4512,7 +1989,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4512
1989
|
name: string;
|
|
4513
1990
|
role: "admin" | "redacteur";
|
|
4514
1991
|
}[];
|
|
4515
|
-
meta:
|
|
1992
|
+
meta: object;
|
|
4516
1993
|
}>;
|
|
4517
1994
|
directory: _trpc_server.TRPCQueryProcedure<{
|
|
4518
1995
|
input: void;
|
|
@@ -4520,7 +1997,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4520
1997
|
id: string;
|
|
4521
1998
|
name: string;
|
|
4522
1999
|
}[];
|
|
4523
|
-
meta:
|
|
2000
|
+
meta: object;
|
|
4524
2001
|
}>;
|
|
4525
2002
|
get: _trpc_server.TRPCQueryProcedure<{
|
|
4526
2003
|
input: {
|
|
@@ -4532,7 +2009,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4532
2009
|
name: string;
|
|
4533
2010
|
role: "admin" | "redacteur";
|
|
4534
2011
|
};
|
|
4535
|
-
meta:
|
|
2012
|
+
meta: object;
|
|
4536
2013
|
}>;
|
|
4537
2014
|
invite: _trpc_server.TRPCMutationProcedure<{
|
|
4538
2015
|
input: {
|
|
@@ -4543,7 +2020,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4543
2020
|
token: string;
|
|
4544
2021
|
expiresAt: string;
|
|
4545
2022
|
};
|
|
4546
|
-
meta:
|
|
2023
|
+
meta: object;
|
|
4547
2024
|
}>;
|
|
4548
2025
|
update: _trpc_server.TRPCMutationProcedure<{
|
|
4549
2026
|
input: {
|
|
@@ -4560,7 +2037,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4560
2037
|
name: string;
|
|
4561
2038
|
role: "admin" | "redacteur";
|
|
4562
2039
|
};
|
|
4563
|
-
meta:
|
|
2040
|
+
meta: object;
|
|
4564
2041
|
}>;
|
|
4565
2042
|
updateOwnProfile: _trpc_server.TRPCMutationProcedure<{
|
|
4566
2043
|
input: {
|
|
@@ -4574,7 +2051,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4574
2051
|
role: "admin" | "redacteur";
|
|
4575
2052
|
};
|
|
4576
2053
|
};
|
|
4577
|
-
meta:
|
|
2054
|
+
meta: object;
|
|
4578
2055
|
}>;
|
|
4579
2056
|
remove: _trpc_server.TRPCMutationProcedure<{
|
|
4580
2057
|
input: {
|
|
@@ -4583,15 +2060,15 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4583
2060
|
output: {
|
|
4584
2061
|
removed: string;
|
|
4585
2062
|
};
|
|
4586
|
-
meta:
|
|
2063
|
+
meta: object;
|
|
4587
2064
|
}>;
|
|
4588
2065
|
}>>;
|
|
4589
2066
|
invitations: _trpc_server.TRPCBuiltRouter<{
|
|
4590
2067
|
ctx: CoreContext;
|
|
4591
|
-
meta:
|
|
2068
|
+
meta: object;
|
|
4592
2069
|
errorShape: {
|
|
4593
2070
|
data: {
|
|
4594
|
-
type?:
|
|
2071
|
+
type?: ErrorType | undefined;
|
|
4595
2072
|
code: _trpc_server.TRPC_ERROR_CODE_KEY;
|
|
4596
2073
|
httpStatus: number;
|
|
4597
2074
|
path?: string;
|
|
@@ -4611,7 +2088,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4611
2088
|
token: string;
|
|
4612
2089
|
expiresAt: string;
|
|
4613
2090
|
};
|
|
4614
|
-
meta:
|
|
2091
|
+
meta: object;
|
|
4615
2092
|
}>;
|
|
4616
2093
|
list: _trpc_server.TRPCQueryProcedure<{
|
|
4617
2094
|
input: void;
|
|
@@ -4621,7 +2098,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4621
2098
|
role: "admin" | "redacteur";
|
|
4622
2099
|
expiresAt: string;
|
|
4623
2100
|
}[];
|
|
4624
|
-
meta:
|
|
2101
|
+
meta: object;
|
|
4625
2102
|
}>;
|
|
4626
2103
|
revoke: _trpc_server.TRPCMutationProcedure<{
|
|
4627
2104
|
input: {
|
|
@@ -4630,7 +2107,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4630
2107
|
output: {
|
|
4631
2108
|
revoked: string;
|
|
4632
2109
|
};
|
|
4633
|
-
meta:
|
|
2110
|
+
meta: object;
|
|
4634
2111
|
}>;
|
|
4635
2112
|
accept: _trpc_server.TRPCMutationProcedure<{
|
|
4636
2113
|
input: {
|
|
@@ -4646,7 +2123,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4646
2123
|
role: "admin" | "redacteur";
|
|
4647
2124
|
};
|
|
4648
2125
|
};
|
|
4649
|
-
meta:
|
|
2126
|
+
meta: object;
|
|
4650
2127
|
}>;
|
|
4651
2128
|
requestPasswordReset: _trpc_server.TRPCMutationProcedure<{
|
|
4652
2129
|
input: {
|
|
@@ -4655,15 +2132,15 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4655
2132
|
output: {
|
|
4656
2133
|
ok: boolean;
|
|
4657
2134
|
};
|
|
4658
|
-
meta:
|
|
2135
|
+
meta: object;
|
|
4659
2136
|
}>;
|
|
4660
2137
|
}>>;
|
|
4661
2138
|
apiTokens: _trpc_server.TRPCBuiltRouter<{
|
|
4662
2139
|
ctx: CoreContext;
|
|
4663
|
-
meta:
|
|
2140
|
+
meta: object;
|
|
4664
2141
|
errorShape: {
|
|
4665
2142
|
data: {
|
|
4666
|
-
type?:
|
|
2143
|
+
type?: ErrorType | undefined;
|
|
4667
2144
|
code: _trpc_server.TRPC_ERROR_CODE_KEY;
|
|
4668
2145
|
httpStatus: number;
|
|
4669
2146
|
path?: string;
|
|
@@ -4684,7 +2161,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4684
2161
|
tokenHash: string;
|
|
4685
2162
|
lastUsedAt: string | null;
|
|
4686
2163
|
}, "id" | "name" | "createdAt" | "revokedAt" | "lastUsedAt">[];
|
|
4687
|
-
meta:
|
|
2164
|
+
meta: object;
|
|
4688
2165
|
}>;
|
|
4689
2166
|
create: _trpc_server.TRPCMutationProcedure<{
|
|
4690
2167
|
input: {
|
|
@@ -4695,7 +2172,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4695
2172
|
id: string;
|
|
4696
2173
|
name: string;
|
|
4697
2174
|
};
|
|
4698
|
-
meta:
|
|
2175
|
+
meta: object;
|
|
4699
2176
|
}>;
|
|
4700
2177
|
revoke: _trpc_server.TRPCMutationProcedure<{
|
|
4701
2178
|
input: {
|
|
@@ -4704,15 +2181,15 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4704
2181
|
output: {
|
|
4705
2182
|
revoked: string;
|
|
4706
2183
|
};
|
|
4707
|
-
meta:
|
|
2184
|
+
meta: object;
|
|
4708
2185
|
}>;
|
|
4709
2186
|
}>>;
|
|
4710
2187
|
organization: _trpc_server.TRPCBuiltRouter<{
|
|
4711
2188
|
ctx: CoreContext;
|
|
4712
|
-
meta:
|
|
2189
|
+
meta: object;
|
|
4713
2190
|
errorShape: {
|
|
4714
2191
|
data: {
|
|
4715
|
-
type?:
|
|
2192
|
+
type?: ErrorType | undefined;
|
|
4716
2193
|
code: _trpc_server.TRPC_ERROR_CODE_KEY;
|
|
4717
2194
|
httpStatus: number;
|
|
4718
2195
|
path?: string;
|
|
@@ -4743,7 +2220,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4743
2220
|
updatedBy: string | null;
|
|
4744
2221
|
legacyExtra: Record<string, unknown> | null;
|
|
4745
2222
|
} | null;
|
|
4746
|
-
meta:
|
|
2223
|
+
meta: object;
|
|
4747
2224
|
}>;
|
|
4748
2225
|
init: _trpc_server.TRPCMutationProcedure<{
|
|
4749
2226
|
input: {
|
|
@@ -4777,7 +2254,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4777
2254
|
updatedBy: string | null;
|
|
4778
2255
|
legacyExtra: Record<string, unknown> | null;
|
|
4779
2256
|
};
|
|
4780
|
-
meta:
|
|
2257
|
+
meta: object;
|
|
4781
2258
|
}>;
|
|
4782
2259
|
update: _trpc_server.TRPCMutationProcedure<{
|
|
4783
2260
|
input: {
|
|
@@ -4811,22 +2288,22 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4811
2288
|
updatedBy: string | null;
|
|
4812
2289
|
legacyExtra: Record<string, unknown> | null;
|
|
4813
2290
|
};
|
|
4814
|
-
meta:
|
|
2291
|
+
meta: object;
|
|
4815
2292
|
}>;
|
|
4816
2293
|
deploy: _trpc_server.TRPCMutationProcedure<{
|
|
4817
2294
|
input: void;
|
|
4818
2295
|
output: {
|
|
4819
2296
|
status: number;
|
|
4820
2297
|
};
|
|
4821
|
-
meta:
|
|
2298
|
+
meta: object;
|
|
4822
2299
|
}>;
|
|
4823
2300
|
}>>;
|
|
4824
2301
|
media: _trpc_server.TRPCBuiltRouter<{
|
|
4825
2302
|
ctx: CoreContext;
|
|
4826
|
-
meta:
|
|
2303
|
+
meta: object;
|
|
4827
2304
|
errorShape: {
|
|
4828
2305
|
data: {
|
|
4829
|
-
type?:
|
|
2306
|
+
type?: ErrorType | undefined;
|
|
4830
2307
|
code: _trpc_server.TRPC_ERROR_CODE_KEY;
|
|
4831
2308
|
httpStatus: number;
|
|
4832
2309
|
path?: string;
|
|
@@ -4847,7 +2324,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4847
2324
|
key: string;
|
|
4848
2325
|
url: string;
|
|
4849
2326
|
};
|
|
4850
|
-
meta:
|
|
2327
|
+
meta: object;
|
|
4851
2328
|
}>;
|
|
4852
2329
|
finalize: _trpc_server.TRPCMutationProcedure<{
|
|
4853
2330
|
input: {
|
|
@@ -4872,7 +2349,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4872
2349
|
objects: Record<string, unknown>;
|
|
4873
2350
|
createdBy: string | null;
|
|
4874
2351
|
};
|
|
4875
|
-
meta:
|
|
2352
|
+
meta: object;
|
|
4876
2353
|
}>;
|
|
4877
2354
|
list: _trpc_server.TRPCQueryProcedure<{
|
|
4878
2355
|
input: void;
|
|
@@ -4893,7 +2370,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4893
2370
|
} & {
|
|
4894
2371
|
objects: Record<string, string>;
|
|
4895
2372
|
})[];
|
|
4896
|
-
meta:
|
|
2373
|
+
meta: object;
|
|
4897
2374
|
}>;
|
|
4898
2375
|
get: _trpc_server.TRPCQueryProcedure<{
|
|
4899
2376
|
input: {
|
|
@@ -4916,7 +2393,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4916
2393
|
} & {
|
|
4917
2394
|
objects: Record<string, string>;
|
|
4918
2395
|
};
|
|
4919
|
-
meta:
|
|
2396
|
+
meta: object;
|
|
4920
2397
|
}>;
|
|
4921
2398
|
update: _trpc_server.TRPCMutationProcedure<{
|
|
4922
2399
|
input: {
|
|
@@ -4942,7 +2419,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4942
2419
|
objects: Record<string, unknown>;
|
|
4943
2420
|
createdBy: string | null;
|
|
4944
2421
|
};
|
|
4945
|
-
meta:
|
|
2422
|
+
meta: object;
|
|
4946
2423
|
}>;
|
|
4947
2424
|
remove: _trpc_server.TRPCMutationProcedure<{
|
|
4948
2425
|
input: {
|
|
@@ -4951,15 +2428,15 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4951
2428
|
output: {
|
|
4952
2429
|
removed: string;
|
|
4953
2430
|
};
|
|
4954
|
-
meta:
|
|
2431
|
+
meta: object;
|
|
4955
2432
|
}>;
|
|
4956
2433
|
}>>;
|
|
4957
2434
|
collections: _trpc_server.TRPCBuiltRouter<{
|
|
4958
2435
|
ctx: CoreContext;
|
|
4959
|
-
meta:
|
|
2436
|
+
meta: object;
|
|
4960
2437
|
errorShape: {
|
|
4961
2438
|
data: {
|
|
4962
|
-
type?:
|
|
2439
|
+
type?: ErrorType | undefined;
|
|
4963
2440
|
code: _trpc_server.TRPC_ERROR_CODE_KEY;
|
|
4964
2441
|
httpStatus: number;
|
|
4965
2442
|
path?: string;
|
|
@@ -4995,7 +2472,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4995
2472
|
display: Record<string, unknown> | null;
|
|
4996
2473
|
headings: Record<string, unknown> | null;
|
|
4997
2474
|
}[];
|
|
4998
|
-
meta:
|
|
2475
|
+
meta: object;
|
|
4999
2476
|
}>;
|
|
5000
2477
|
get: _trpc_server.TRPCQueryProcedure<{
|
|
5001
2478
|
input: {
|
|
@@ -5025,7 +2502,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
5025
2502
|
createdAt: string;
|
|
5026
2503
|
updatedAt: string;
|
|
5027
2504
|
};
|
|
5028
|
-
meta:
|
|
2505
|
+
meta: object;
|
|
5029
2506
|
}>;
|
|
5030
2507
|
create: _trpc_server.TRPCMutationProcedure<{
|
|
5031
2508
|
input: {
|
|
@@ -5068,7 +2545,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
5068
2545
|
display: Record<string, unknown> | null;
|
|
5069
2546
|
headings: Record<string, unknown> | null;
|
|
5070
2547
|
};
|
|
5071
|
-
meta:
|
|
2548
|
+
meta: object;
|
|
5072
2549
|
}>;
|
|
5073
2550
|
update: _trpc_server.TRPCMutationProcedure<{
|
|
5074
2551
|
input: {
|
|
@@ -5114,7 +2591,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
5114
2591
|
display: Record<string, unknown> | null;
|
|
5115
2592
|
headings: Record<string, unknown> | null;
|
|
5116
2593
|
};
|
|
5117
|
-
meta:
|
|
2594
|
+
meta: object;
|
|
5118
2595
|
}>;
|
|
5119
2596
|
remove: _trpc_server.TRPCMutationProcedure<{
|
|
5120
2597
|
input: {
|
|
@@ -5123,14 +2600,14 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
5123
2600
|
output: {
|
|
5124
2601
|
removed: string;
|
|
5125
2602
|
};
|
|
5126
|
-
meta:
|
|
2603
|
+
meta: object;
|
|
5127
2604
|
}>;
|
|
5128
2605
|
entries: _trpc_server.TRPCBuiltRouter<{
|
|
5129
2606
|
ctx: CoreContext;
|
|
5130
|
-
meta:
|
|
2607
|
+
meta: object;
|
|
5131
2608
|
errorShape: {
|
|
5132
2609
|
data: {
|
|
5133
|
-
type?:
|
|
2610
|
+
type?: ErrorType | undefined;
|
|
5134
2611
|
code: _trpc_server.TRPC_ERROR_CODE_KEY;
|
|
5135
2612
|
httpStatus: number;
|
|
5136
2613
|
path?: string;
|
|
@@ -5160,7 +2637,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
5160
2637
|
createdAt: string;
|
|
5161
2638
|
updatedAt: string;
|
|
5162
2639
|
};
|
|
5163
|
-
meta:
|
|
2640
|
+
meta: object;
|
|
5164
2641
|
}>;
|
|
5165
2642
|
search: _trpc_server.TRPCQueryProcedure<{
|
|
5166
2643
|
input: {
|
|
@@ -5185,7 +2662,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
5185
2662
|
updatedAt: string;
|
|
5186
2663
|
collectionSlug: string;
|
|
5187
2664
|
}[];
|
|
5188
|
-
meta:
|
|
2665
|
+
meta: object;
|
|
5189
2666
|
}>;
|
|
5190
2667
|
list: _trpc_server.TRPCQueryProcedure<{
|
|
5191
2668
|
input: {
|
|
@@ -5211,7 +2688,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
5211
2688
|
createdAt: string;
|
|
5212
2689
|
updatedAt: string;
|
|
5213
2690
|
}[];
|
|
5214
|
-
meta:
|
|
2691
|
+
meta: object;
|
|
5215
2692
|
}>;
|
|
5216
2693
|
count: _trpc_server.TRPCQueryProcedure<{
|
|
5217
2694
|
input: {
|
|
@@ -5220,7 +2697,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
5220
2697
|
search?: string | undefined;
|
|
5221
2698
|
};
|
|
5222
2699
|
output: number;
|
|
5223
|
-
meta:
|
|
2700
|
+
meta: object;
|
|
5224
2701
|
}>;
|
|
5225
2702
|
create: _trpc_server.TRPCMutationProcedure<{
|
|
5226
2703
|
input: {
|
|
@@ -5241,14 +2718,14 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
5241
2718
|
slug: string;
|
|
5242
2719
|
updatedBy: string | null;
|
|
5243
2720
|
legacyExtra: Record<string, unknown> | null;
|
|
5244
|
-
createdBy: string | null;
|
|
5245
2721
|
title: string;
|
|
2722
|
+
createdBy: string | null;
|
|
5246
2723
|
collectionId: string;
|
|
5247
2724
|
related: string[] | null;
|
|
5248
2725
|
status: "draft" | "waiting" | "ready" | "scheduled" | "published";
|
|
5249
2726
|
publishedAt: string | null;
|
|
5250
2727
|
};
|
|
5251
|
-
meta:
|
|
2728
|
+
meta: object;
|
|
5252
2729
|
}>;
|
|
5253
2730
|
update: _trpc_server.TRPCMutationProcedure<{
|
|
5254
2731
|
input: {
|
|
@@ -5270,14 +2747,14 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
5270
2747
|
slug: string;
|
|
5271
2748
|
updatedBy: string | null;
|
|
5272
2749
|
legacyExtra: Record<string, unknown> | null;
|
|
5273
|
-
createdBy: string | null;
|
|
5274
2750
|
title: string;
|
|
2751
|
+
createdBy: string | null;
|
|
5275
2752
|
collectionId: string;
|
|
5276
2753
|
related: string[] | null;
|
|
5277
2754
|
status: "draft" | "waiting" | "ready" | "scheduled" | "published";
|
|
5278
2755
|
publishedAt: string | null;
|
|
5279
2756
|
};
|
|
5280
|
-
meta:
|
|
2757
|
+
meta: object;
|
|
5281
2758
|
}>;
|
|
5282
2759
|
remove: _trpc_server.TRPCMutationProcedure<{
|
|
5283
2760
|
input: {
|
|
@@ -5286,12 +2763,12 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
5286
2763
|
output: {
|
|
5287
2764
|
removed: string;
|
|
5288
2765
|
};
|
|
5289
|
-
meta:
|
|
2766
|
+
meta: object;
|
|
5290
2767
|
}>;
|
|
5291
2768
|
}>>;
|
|
5292
2769
|
}>>;
|
|
5293
2770
|
}>>;
|
|
5294
2771
|
type AppRouter = typeof appRouter;
|
|
5295
2772
|
|
|
5296
|
-
export { ALLOWED_MIME,
|
|
5297
|
-
export type {
|
|
2773
|
+
export { ALLOWED_MIME, ApiToken, CannotRemoveSelfError, CollectionDefinition, CollectionNotFoundError, CollectionsService, DefinitionCreateDto, DefinitionRepository, DefinitionUpdateDto, DeployFailedError, DeployHookMissingError, DomainError, DuplicateSlugError, EmailService, Entry, EntryCreateDto, EntryNotFoundError, EntryRepository, EntrySearchHit, EntryUpdateDto, ErrorType, HealthService, InvalidEntryDataError, Invitation, InvitationInvalidError, Media, MediaFinalizeDto, MediaNotFoundError, MediaRepository, MediaService, MediaUpdateDto, NewCollectionDefinition, NewEntry, NewMedia, NewOrganization, Organization, OrganizationAlreadyInitializedError, OrganizationInitDto, OrganizationNotInitializedError, OrganizationRepository, OrganizationService, OrganizationUpdateDto, S3Storage, Session, SessionNotFoundError, TooManyAttemptsError, UnsupportedMimeError, UploadIncompleteError, User, UserNotFoundError, UsersRepository, UsersService, apiTokensRouter, appRouter, authRouter, collectionsRouter, connectDb, createCore, createStorage, createTypedError, invitationsRouter, isUniqueViolation, mediaRouter, organizationRouter, parseEnv, usersRouter };
|
|
2774
|
+
export type { AppRouter, AuthSession, Core, CoreContext, CoreEnv, CoreServices, EmailEvent, HealthStatus, S3Config, StorageDriver, StoreDb, TrpcErrorCode };
|