@open-commune/core 0.2.13 → 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 +423 -2729
- package/dist/index.d.ts +423 -2729
- 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;
|
|
@@ -1791,6 +165,15 @@ declare class UsersRepository {
|
|
|
1791
165
|
expiresAt: string;
|
|
1792
166
|
}): Promise<Invitation>;
|
|
1793
167
|
findValidInvitation(tokenHash: string, now: string): Promise<Invitation | undefined>;
|
|
168
|
+
/**
|
|
169
|
+
* Invitations sent and not honoured yet. The `notExists` is what tells
|
|
170
|
+
* "pending" from "already joined": an accepted invitation keeps its row, but
|
|
171
|
+
* its recipient now has an account, and showing it as pending would read as
|
|
172
|
+
* a lost email.
|
|
173
|
+
*/
|
|
174
|
+
listPendingInvitations(now: string): Promise<Invitation[]>;
|
|
175
|
+
/** Revoking an invitation: the link dies with the row. */
|
|
176
|
+
deleteInvitation(id: string): Promise<boolean>;
|
|
1794
177
|
markInvitationUsed(id: string, now: string): Promise<void>;
|
|
1795
178
|
insertApiToken(input: {
|
|
1796
179
|
name: string;
|
|
@@ -1862,6 +245,19 @@ declare class UsersService {
|
|
|
1862
245
|
token: string;
|
|
1863
246
|
expiresAt: string;
|
|
1864
247
|
}>;
|
|
248
|
+
/**
|
|
249
|
+
* Invitations sent and not honoured yet. Without this list a sent invitation
|
|
250
|
+
* existed NOWHERE in the admin: nobody could tell whether the link had been
|
|
251
|
+
* sent, to whom, or whether it had expired.
|
|
252
|
+
*/
|
|
253
|
+
listPendingInvitations(): Promise<Array<{
|
|
254
|
+
id: string;
|
|
255
|
+
email: string;
|
|
256
|
+
role: 'admin' | 'redacteur';
|
|
257
|
+
expiresAt: string;
|
|
258
|
+
}>>;
|
|
259
|
+
/** Revokes a pending invitation: its link can no longer be honoured. */
|
|
260
|
+
revokeInvitation(id: string): Promise<void>;
|
|
1865
261
|
/**
|
|
1866
262
|
* « Forgotten password »: reuses the invitation mechanism — a single-use
|
|
1867
263
|
* link that redefines the password of an existing account. The response is
|
|
@@ -1897,13 +293,13 @@ declare class UsersService {
|
|
|
1897
293
|
verifyApiToken(token: string): Promise<boolean>;
|
|
1898
294
|
revokeApiToken(id: string): Promise<void>;
|
|
1899
295
|
listApiTokens(): Promise<Pick<{
|
|
1900
|
-
name: string;
|
|
1901
296
|
id: string;
|
|
297
|
+
name: string;
|
|
1902
298
|
createdAt: string;
|
|
1903
299
|
revokedAt: string | null;
|
|
1904
300
|
tokenHash: string;
|
|
1905
301
|
lastUsedAt: string | null;
|
|
1906
|
-
}, "
|
|
302
|
+
}, "id" | "name" | "createdAt" | "revokedAt" | "lastUsedAt">[]>;
|
|
1907
303
|
}
|
|
1908
304
|
|
|
1909
305
|
/**
|
|
@@ -1918,75 +314,6 @@ declare class OrganizationRepository {
|
|
|
1918
314
|
update(input: Partial<NewOrganization>): Promise<Organization | undefined>;
|
|
1919
315
|
}
|
|
1920
316
|
|
|
1921
|
-
declare const organizationInitDto: z.ZodObject<{
|
|
1922
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
1923
|
-
commune: "commune";
|
|
1924
|
-
intercommunality: "intercommunality";
|
|
1925
|
-
syndicate: "syndicate";
|
|
1926
|
-
other: "other";
|
|
1927
|
-
}>>;
|
|
1928
|
-
name: z.ZodString;
|
|
1929
|
-
slug: z.ZodString;
|
|
1930
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1931
|
-
address: z.ZodOptional<z.ZodNullable<z.ZodType<{
|
|
1932
|
-
street?: string | undefined;
|
|
1933
|
-
postalCode?: string | undefined;
|
|
1934
|
-
city?: string | undefined;
|
|
1935
|
-
}, {
|
|
1936
|
-
street?: string | undefined;
|
|
1937
|
-
postalCode?: string | undefined;
|
|
1938
|
-
city?: string | undefined;
|
|
1939
|
-
}, z.core.$ZodTypeInternals<{
|
|
1940
|
-
street?: string | undefined;
|
|
1941
|
-
postalCode?: string | undefined;
|
|
1942
|
-
city?: string | undefined;
|
|
1943
|
-
}, {
|
|
1944
|
-
street?: string | undefined;
|
|
1945
|
-
postalCode?: string | undefined;
|
|
1946
|
-
city?: string | undefined;
|
|
1947
|
-
}>>>>;
|
|
1948
|
-
deployment: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
|
|
1949
|
-
settings: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
|
|
1950
|
-
}, {
|
|
1951
|
-
out: {};
|
|
1952
|
-
in: {};
|
|
1953
|
-
}>;
|
|
1954
|
-
declare const organizationUpdateDto: z.ZodObject<{
|
|
1955
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
1956
|
-
commune: "commune";
|
|
1957
|
-
intercommunality: "intercommunality";
|
|
1958
|
-
syndicate: "syndicate";
|
|
1959
|
-
other: "other";
|
|
1960
|
-
}>>;
|
|
1961
|
-
name: z.ZodOptional<z.ZodString>;
|
|
1962
|
-
slug: z.ZodOptional<z.ZodString>;
|
|
1963
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1964
|
-
address: z.ZodOptional<z.ZodNullable<z.ZodType<{
|
|
1965
|
-
street?: string | undefined;
|
|
1966
|
-
postalCode?: string | undefined;
|
|
1967
|
-
city?: string | undefined;
|
|
1968
|
-
}, {
|
|
1969
|
-
street?: string | undefined;
|
|
1970
|
-
postalCode?: string | undefined;
|
|
1971
|
-
city?: string | undefined;
|
|
1972
|
-
}, z.core.$ZodTypeInternals<{
|
|
1973
|
-
street?: string | undefined;
|
|
1974
|
-
postalCode?: string | undefined;
|
|
1975
|
-
city?: string | undefined;
|
|
1976
|
-
}, {
|
|
1977
|
-
street?: string | undefined;
|
|
1978
|
-
postalCode?: string | undefined;
|
|
1979
|
-
city?: string | undefined;
|
|
1980
|
-
}>>>>;
|
|
1981
|
-
deployment: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
|
|
1982
|
-
settings: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
|
|
1983
|
-
}, {
|
|
1984
|
-
out: {};
|
|
1985
|
-
in: {};
|
|
1986
|
-
}>;
|
|
1987
|
-
type OrganizationInitDto = z.infer<typeof organizationInitDto>;
|
|
1988
|
-
type OrganizationUpdateDto = z.infer<typeof organizationUpdateDto>;
|
|
1989
|
-
|
|
1990
317
|
/** Instance settings — a singleton: initialised once, then only updated. */
|
|
1991
318
|
declare class OrganizationService {
|
|
1992
319
|
private readonly repository;
|
|
@@ -2020,31 +347,6 @@ declare class MediaRepository {
|
|
|
2020
347
|
delete(id: string): Promise<void>;
|
|
2021
348
|
}
|
|
2022
349
|
|
|
2023
|
-
declare const mediaRequestUploadDto: z.ZodObject<{
|
|
2024
|
-
filename: z.ZodString;
|
|
2025
|
-
mime: z.ZodString;
|
|
2026
|
-
metaData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2027
|
-
}, z.core.$strip>;
|
|
2028
|
-
declare const mediaFinalizeDto: z.ZodObject<{
|
|
2029
|
-
key: z.ZodString;
|
|
2030
|
-
filename: z.ZodString;
|
|
2031
|
-
mime: z.ZodString;
|
|
2032
|
-
alt: z.ZodOptional<z.ZodString>;
|
|
2033
|
-
metaData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2034
|
-
}, z.core.$strip>;
|
|
2035
|
-
type MediaRequestUploadDto = z.infer<typeof mediaRequestUploadDto>;
|
|
2036
|
-
type MediaFinalizeDto = z.infer<typeof mediaFinalizeDto>;
|
|
2037
|
-
|
|
2038
|
-
declare const mediaUpdateDto: z.ZodObject<{
|
|
2039
|
-
filename: z.ZodOptional<z.ZodString>;
|
|
2040
|
-
alt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2041
|
-
caption: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2042
|
-
}, {
|
|
2043
|
-
out: {};
|
|
2044
|
-
in: {};
|
|
2045
|
-
}>;
|
|
2046
|
-
type MediaUpdateDto = z.infer<typeof mediaUpdateDto>;
|
|
2047
|
-
|
|
2048
350
|
/** Closed allowlist. SVG is excluded on purpose: it is an XSS surface. */
|
|
2049
351
|
declare const ALLOWED_MIME: Set<string>;
|
|
2050
352
|
/**
|
|
@@ -2124,7 +426,7 @@ declare class EntryRepository {
|
|
|
2124
426
|
*/
|
|
2125
427
|
private matching;
|
|
2126
428
|
/**
|
|
2127
|
-
* Text search across collections, most recently updated first — how
|
|
429
|
+
* Text search across collections, most recently updated first — how one
|
|
2128
430
|
* finds content without knowing where it lives.
|
|
2129
431
|
*/
|
|
2130
432
|
search(options: {
|
|
@@ -2157,687 +459,6 @@ declare class EntryRepository {
|
|
|
2157
459
|
delete(id: string): Promise<Entry | undefined>;
|
|
2158
460
|
}
|
|
2159
461
|
|
|
2160
|
-
declare const definitionCreateDto: z.ZodObject<{
|
|
2161
|
-
name: z.ZodString;
|
|
2162
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2163
|
-
editor: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
|
|
2164
|
-
display: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
|
|
2165
|
-
headings: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
|
|
2166
|
-
fields: z.ZodArray<z.ZodObject<{
|
|
2167
|
-
name: z.ZodString;
|
|
2168
|
-
label: z.ZodString;
|
|
2169
|
-
type: z.ZodEnum<{
|
|
2170
|
-
number: "number";
|
|
2171
|
-
boolean: "boolean";
|
|
2172
|
-
text: "text";
|
|
2173
|
-
"rich-text": "rich-text";
|
|
2174
|
-
date: "date";
|
|
2175
|
-
media: "media";
|
|
2176
|
-
relation: "relation";
|
|
2177
|
-
select: "select";
|
|
2178
|
-
steps: "steps";
|
|
2179
|
-
json: "json";
|
|
2180
|
-
}>;
|
|
2181
|
-
required: z.ZodDefault<z.ZodBoolean>;
|
|
2182
|
-
hidden: z.ZodDefault<z.ZodBoolean>;
|
|
2183
|
-
options: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2184
|
-
target: z.ZodOptional<z.ZodString>;
|
|
2185
|
-
}, z.core.$strip>>;
|
|
2186
|
-
slug: z.ZodOptional<z.ZodString>;
|
|
2187
|
-
}, {
|
|
2188
|
-
out: {};
|
|
2189
|
-
in: {};
|
|
2190
|
-
}>;
|
|
2191
|
-
declare const definitionUpdateDto: z.ZodObject<{
|
|
2192
|
-
name: z.ZodOptional<z.ZodString>;
|
|
2193
|
-
slug: z.ZodOptional<z.ZodString>;
|
|
2194
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2195
|
-
editor: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
|
|
2196
|
-
display: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
|
|
2197
|
-
headings: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
|
|
2198
|
-
fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2199
|
-
name: z.ZodString;
|
|
2200
|
-
label: z.ZodString;
|
|
2201
|
-
type: z.ZodEnum<{
|
|
2202
|
-
number: "number";
|
|
2203
|
-
boolean: "boolean";
|
|
2204
|
-
text: "text";
|
|
2205
|
-
"rich-text": "rich-text";
|
|
2206
|
-
date: "date";
|
|
2207
|
-
media: "media";
|
|
2208
|
-
relation: "relation";
|
|
2209
|
-
select: "select";
|
|
2210
|
-
steps: "steps";
|
|
2211
|
-
json: "json";
|
|
2212
|
-
}>;
|
|
2213
|
-
required: z.ZodDefault<z.ZodBoolean>;
|
|
2214
|
-
hidden: z.ZodDefault<z.ZodBoolean>;
|
|
2215
|
-
options: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2216
|
-
target: z.ZodOptional<z.ZodString>;
|
|
2217
|
-
}, z.core.$strip>>>;
|
|
2218
|
-
}, {
|
|
2219
|
-
out: {};
|
|
2220
|
-
in: {};
|
|
2221
|
-
}>;
|
|
2222
|
-
declare const definitionDto: drizzle_zod.BuildSchema<"select", {
|
|
2223
|
-
id: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2224
|
-
name: "id";
|
|
2225
|
-
tableName: "collection_definitions";
|
|
2226
|
-
dataType: "string";
|
|
2227
|
-
columnType: "SQLiteText";
|
|
2228
|
-
data: string;
|
|
2229
|
-
driverParam: string;
|
|
2230
|
-
notNull: true;
|
|
2231
|
-
hasDefault: true;
|
|
2232
|
-
isPrimaryKey: true;
|
|
2233
|
-
isAutoincrement: false;
|
|
2234
|
-
hasRuntimeDefault: true;
|
|
2235
|
-
enumValues: [string, ...string[]];
|
|
2236
|
-
baseColumn: never;
|
|
2237
|
-
identity: undefined;
|
|
2238
|
-
generated: undefined;
|
|
2239
|
-
}, {}, {
|
|
2240
|
-
length: number | undefined;
|
|
2241
|
-
}>;
|
|
2242
|
-
name: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2243
|
-
name: "name";
|
|
2244
|
-
tableName: "collection_definitions";
|
|
2245
|
-
dataType: "string";
|
|
2246
|
-
columnType: "SQLiteText";
|
|
2247
|
-
data: string;
|
|
2248
|
-
driverParam: string;
|
|
2249
|
-
notNull: true;
|
|
2250
|
-
hasDefault: false;
|
|
2251
|
-
isPrimaryKey: false;
|
|
2252
|
-
isAutoincrement: false;
|
|
2253
|
-
hasRuntimeDefault: false;
|
|
2254
|
-
enumValues: [string, ...string[]];
|
|
2255
|
-
baseColumn: never;
|
|
2256
|
-
identity: undefined;
|
|
2257
|
-
generated: undefined;
|
|
2258
|
-
}, {}, {
|
|
2259
|
-
length: number | undefined;
|
|
2260
|
-
}>;
|
|
2261
|
-
slug: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2262
|
-
name: "slug";
|
|
2263
|
-
tableName: "collection_definitions";
|
|
2264
|
-
dataType: "string";
|
|
2265
|
-
columnType: "SQLiteText";
|
|
2266
|
-
data: string;
|
|
2267
|
-
driverParam: string;
|
|
2268
|
-
notNull: true;
|
|
2269
|
-
hasDefault: false;
|
|
2270
|
-
isPrimaryKey: false;
|
|
2271
|
-
isAutoincrement: false;
|
|
2272
|
-
hasRuntimeDefault: false;
|
|
2273
|
-
enumValues: [string, ...string[]];
|
|
2274
|
-
baseColumn: never;
|
|
2275
|
-
identity: undefined;
|
|
2276
|
-
generated: undefined;
|
|
2277
|
-
}, {}, {
|
|
2278
|
-
length: number | undefined;
|
|
2279
|
-
}>;
|
|
2280
|
-
description: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2281
|
-
name: "description";
|
|
2282
|
-
tableName: "collection_definitions";
|
|
2283
|
-
dataType: "string";
|
|
2284
|
-
columnType: "SQLiteText";
|
|
2285
|
-
data: string;
|
|
2286
|
-
driverParam: string;
|
|
2287
|
-
notNull: false;
|
|
2288
|
-
hasDefault: false;
|
|
2289
|
-
isPrimaryKey: false;
|
|
2290
|
-
isAutoincrement: false;
|
|
2291
|
-
hasRuntimeDefault: false;
|
|
2292
|
-
enumValues: [string, ...string[]];
|
|
2293
|
-
baseColumn: never;
|
|
2294
|
-
identity: undefined;
|
|
2295
|
-
generated: undefined;
|
|
2296
|
-
}, {}, {
|
|
2297
|
-
length: number | undefined;
|
|
2298
|
-
}>;
|
|
2299
|
-
fields: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2300
|
-
name: "fields";
|
|
2301
|
-
tableName: "collection_definitions";
|
|
2302
|
-
dataType: "json";
|
|
2303
|
-
columnType: "SQLiteTextJson";
|
|
2304
|
-
data: {
|
|
2305
|
-
name: string;
|
|
2306
|
-
label: string;
|
|
2307
|
-
type: "number" | "boolean" | "text" | "rich-text" | "date" | "media" | "relation" | "select" | "steps" | "json";
|
|
2308
|
-
required: boolean;
|
|
2309
|
-
hidden: boolean;
|
|
2310
|
-
options?: string[] | undefined;
|
|
2311
|
-
target?: string | undefined;
|
|
2312
|
-
}[];
|
|
2313
|
-
driverParam: string;
|
|
2314
|
-
notNull: true;
|
|
2315
|
-
hasDefault: false;
|
|
2316
|
-
isPrimaryKey: false;
|
|
2317
|
-
isAutoincrement: false;
|
|
2318
|
-
hasRuntimeDefault: false;
|
|
2319
|
-
enumValues: undefined;
|
|
2320
|
-
baseColumn: never;
|
|
2321
|
-
identity: undefined;
|
|
2322
|
-
generated: undefined;
|
|
2323
|
-
}, {}, {
|
|
2324
|
-
$type: {
|
|
2325
|
-
name: string;
|
|
2326
|
-
label: string;
|
|
2327
|
-
type: "number" | "boolean" | "text" | "rich-text" | "date" | "media" | "relation" | "select" | "steps" | "json";
|
|
2328
|
-
required: boolean;
|
|
2329
|
-
hidden: boolean;
|
|
2330
|
-
options?: string[] | undefined;
|
|
2331
|
-
target?: string | undefined;
|
|
2332
|
-
}[];
|
|
2333
|
-
}>;
|
|
2334
|
-
editor: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2335
|
-
name: "editor";
|
|
2336
|
-
tableName: "collection_definitions";
|
|
2337
|
-
dataType: "json";
|
|
2338
|
-
columnType: "SQLiteTextJson";
|
|
2339
|
-
data: Record<string, unknown>;
|
|
2340
|
-
driverParam: string;
|
|
2341
|
-
notNull: false;
|
|
2342
|
-
hasDefault: false;
|
|
2343
|
-
isPrimaryKey: false;
|
|
2344
|
-
isAutoincrement: false;
|
|
2345
|
-
hasRuntimeDefault: false;
|
|
2346
|
-
enumValues: undefined;
|
|
2347
|
-
baseColumn: never;
|
|
2348
|
-
identity: undefined;
|
|
2349
|
-
generated: undefined;
|
|
2350
|
-
}, {}, {
|
|
2351
|
-
$type: Record<string, unknown>;
|
|
2352
|
-
}>;
|
|
2353
|
-
display: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2354
|
-
name: "display";
|
|
2355
|
-
tableName: "collection_definitions";
|
|
2356
|
-
dataType: "json";
|
|
2357
|
-
columnType: "SQLiteTextJson";
|
|
2358
|
-
data: Record<string, unknown>;
|
|
2359
|
-
driverParam: string;
|
|
2360
|
-
notNull: false;
|
|
2361
|
-
hasDefault: false;
|
|
2362
|
-
isPrimaryKey: false;
|
|
2363
|
-
isAutoincrement: false;
|
|
2364
|
-
hasRuntimeDefault: false;
|
|
2365
|
-
enumValues: undefined;
|
|
2366
|
-
baseColumn: never;
|
|
2367
|
-
identity: undefined;
|
|
2368
|
-
generated: undefined;
|
|
2369
|
-
}, {}, {
|
|
2370
|
-
$type: Record<string, unknown>;
|
|
2371
|
-
}>;
|
|
2372
|
-
headings: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2373
|
-
name: "headings";
|
|
2374
|
-
tableName: "collection_definitions";
|
|
2375
|
-
dataType: "json";
|
|
2376
|
-
columnType: "SQLiteTextJson";
|
|
2377
|
-
data: Record<string, unknown>;
|
|
2378
|
-
driverParam: string;
|
|
2379
|
-
notNull: false;
|
|
2380
|
-
hasDefault: false;
|
|
2381
|
-
isPrimaryKey: false;
|
|
2382
|
-
isAutoincrement: false;
|
|
2383
|
-
hasRuntimeDefault: false;
|
|
2384
|
-
enumValues: undefined;
|
|
2385
|
-
baseColumn: never;
|
|
2386
|
-
identity: undefined;
|
|
2387
|
-
generated: undefined;
|
|
2388
|
-
}, {}, {
|
|
2389
|
-
$type: Record<string, unknown>;
|
|
2390
|
-
}>;
|
|
2391
|
-
createdBy: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2392
|
-
name: "created_by";
|
|
2393
|
-
tableName: "collection_definitions";
|
|
2394
|
-
dataType: "string";
|
|
2395
|
-
columnType: "SQLiteText";
|
|
2396
|
-
data: string;
|
|
2397
|
-
driverParam: string;
|
|
2398
|
-
notNull: false;
|
|
2399
|
-
hasDefault: false;
|
|
2400
|
-
isPrimaryKey: false;
|
|
2401
|
-
isAutoincrement: false;
|
|
2402
|
-
hasRuntimeDefault: false;
|
|
2403
|
-
enumValues: [string, ...string[]];
|
|
2404
|
-
baseColumn: never;
|
|
2405
|
-
identity: undefined;
|
|
2406
|
-
generated: undefined;
|
|
2407
|
-
}, {}, {
|
|
2408
|
-
length: number | undefined;
|
|
2409
|
-
}>;
|
|
2410
|
-
updatedBy: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2411
|
-
name: "updated_by";
|
|
2412
|
-
tableName: "collection_definitions";
|
|
2413
|
-
dataType: "string";
|
|
2414
|
-
columnType: "SQLiteText";
|
|
2415
|
-
data: string;
|
|
2416
|
-
driverParam: string;
|
|
2417
|
-
notNull: false;
|
|
2418
|
-
hasDefault: false;
|
|
2419
|
-
isPrimaryKey: false;
|
|
2420
|
-
isAutoincrement: false;
|
|
2421
|
-
hasRuntimeDefault: false;
|
|
2422
|
-
enumValues: [string, ...string[]];
|
|
2423
|
-
baseColumn: never;
|
|
2424
|
-
identity: undefined;
|
|
2425
|
-
generated: undefined;
|
|
2426
|
-
}, {}, {
|
|
2427
|
-
length: number | undefined;
|
|
2428
|
-
}>;
|
|
2429
|
-
legacyExtra: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2430
|
-
name: "legacy_extra";
|
|
2431
|
-
tableName: "collection_definitions";
|
|
2432
|
-
dataType: "json";
|
|
2433
|
-
columnType: "SQLiteTextJson";
|
|
2434
|
-
data: Record<string, unknown> | null;
|
|
2435
|
-
driverParam: string;
|
|
2436
|
-
notNull: false;
|
|
2437
|
-
hasDefault: false;
|
|
2438
|
-
isPrimaryKey: false;
|
|
2439
|
-
isAutoincrement: false;
|
|
2440
|
-
hasRuntimeDefault: false;
|
|
2441
|
-
enumValues: undefined;
|
|
2442
|
-
baseColumn: never;
|
|
2443
|
-
identity: undefined;
|
|
2444
|
-
generated: undefined;
|
|
2445
|
-
}, {}, {
|
|
2446
|
-
$type: Record<string, unknown> | null;
|
|
2447
|
-
}>;
|
|
2448
|
-
createdAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2449
|
-
name: "created_at";
|
|
2450
|
-
tableName: "collection_definitions";
|
|
2451
|
-
dataType: "string";
|
|
2452
|
-
columnType: "SQLiteText";
|
|
2453
|
-
data: string;
|
|
2454
|
-
driverParam: string;
|
|
2455
|
-
notNull: true;
|
|
2456
|
-
hasDefault: true;
|
|
2457
|
-
isPrimaryKey: false;
|
|
2458
|
-
isAutoincrement: false;
|
|
2459
|
-
hasRuntimeDefault: true;
|
|
2460
|
-
enumValues: [string, ...string[]];
|
|
2461
|
-
baseColumn: never;
|
|
2462
|
-
identity: undefined;
|
|
2463
|
-
generated: undefined;
|
|
2464
|
-
}, {}, {
|
|
2465
|
-
length: number | undefined;
|
|
2466
|
-
}>;
|
|
2467
|
-
updatedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2468
|
-
name: "updated_at";
|
|
2469
|
-
tableName: "collection_definitions";
|
|
2470
|
-
dataType: "string";
|
|
2471
|
-
columnType: "SQLiteText";
|
|
2472
|
-
data: string;
|
|
2473
|
-
driverParam: string;
|
|
2474
|
-
notNull: true;
|
|
2475
|
-
hasDefault: true;
|
|
2476
|
-
isPrimaryKey: false;
|
|
2477
|
-
isAutoincrement: false;
|
|
2478
|
-
hasRuntimeDefault: true;
|
|
2479
|
-
enumValues: [string, ...string[]];
|
|
2480
|
-
baseColumn: never;
|
|
2481
|
-
identity: undefined;
|
|
2482
|
-
generated: undefined;
|
|
2483
|
-
}, {}, {
|
|
2484
|
-
length: number | undefined;
|
|
2485
|
-
}>;
|
|
2486
|
-
}, {
|
|
2487
|
-
fields: z.ZodArray<z.ZodObject<{
|
|
2488
|
-
name: z.ZodString;
|
|
2489
|
-
label: z.ZodString;
|
|
2490
|
-
type: z.ZodUnion<[z.ZodEnum<{
|
|
2491
|
-
number: "number";
|
|
2492
|
-
boolean: "boolean";
|
|
2493
|
-
text: "text";
|
|
2494
|
-
"rich-text": "rich-text";
|
|
2495
|
-
date: "date";
|
|
2496
|
-
media: "media";
|
|
2497
|
-
relation: "relation";
|
|
2498
|
-
select: "select";
|
|
2499
|
-
steps: "steps";
|
|
2500
|
-
json: "json";
|
|
2501
|
-
}>, z.ZodString]>;
|
|
2502
|
-
required: z.ZodDefault<z.ZodBoolean>;
|
|
2503
|
-
hidden: z.ZodDefault<z.ZodBoolean>;
|
|
2504
|
-
options: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2505
|
-
target: z.ZodOptional<z.ZodString>;
|
|
2506
|
-
}, z.core.$loose>>;
|
|
2507
|
-
}, undefined>;
|
|
2508
|
-
type DefinitionCreateDto = z.infer<typeof definitionCreateDto>;
|
|
2509
|
-
type DefinitionUpdateDto = z.infer<typeof definitionUpdateDto>;
|
|
2510
|
-
|
|
2511
|
-
declare const entryCreateDto: z.ZodObject<{
|
|
2512
|
-
data: z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
|
|
2513
|
-
title: z.ZodString;
|
|
2514
|
-
status: z.ZodOptional<z.ZodEnum<{
|
|
2515
|
-
draft: "draft";
|
|
2516
|
-
waiting: "waiting";
|
|
2517
|
-
ready: "ready";
|
|
2518
|
-
scheduled: "scheduled";
|
|
2519
|
-
published: "published";
|
|
2520
|
-
}>>;
|
|
2521
|
-
publishedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2522
|
-
slug: z.ZodOptional<z.ZodString>;
|
|
2523
|
-
}, {
|
|
2524
|
-
out: {};
|
|
2525
|
-
in: {};
|
|
2526
|
-
}>;
|
|
2527
|
-
declare const entryUpdateDto: z.ZodObject<{
|
|
2528
|
-
data: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
|
|
2529
|
-
slug: z.ZodOptional<z.ZodString>;
|
|
2530
|
-
title: z.ZodOptional<z.ZodString>;
|
|
2531
|
-
status: z.ZodOptional<z.ZodEnum<{
|
|
2532
|
-
draft: "draft";
|
|
2533
|
-
waiting: "waiting";
|
|
2534
|
-
ready: "ready";
|
|
2535
|
-
scheduled: "scheduled";
|
|
2536
|
-
published: "published";
|
|
2537
|
-
}>>;
|
|
2538
|
-
publishedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2539
|
-
related: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2540
|
-
}, {
|
|
2541
|
-
out: {};
|
|
2542
|
-
in: {};
|
|
2543
|
-
}>;
|
|
2544
|
-
declare const entryDto: drizzle_zod.BuildSchema<"select", {
|
|
2545
|
-
id: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2546
|
-
name: "id";
|
|
2547
|
-
tableName: "entries";
|
|
2548
|
-
dataType: "string";
|
|
2549
|
-
columnType: "SQLiteText";
|
|
2550
|
-
data: string;
|
|
2551
|
-
driverParam: string;
|
|
2552
|
-
notNull: true;
|
|
2553
|
-
hasDefault: true;
|
|
2554
|
-
isPrimaryKey: true;
|
|
2555
|
-
isAutoincrement: false;
|
|
2556
|
-
hasRuntimeDefault: true;
|
|
2557
|
-
enumValues: [string, ...string[]];
|
|
2558
|
-
baseColumn: never;
|
|
2559
|
-
identity: undefined;
|
|
2560
|
-
generated: undefined;
|
|
2561
|
-
}, {}, {
|
|
2562
|
-
length: number | undefined;
|
|
2563
|
-
}>;
|
|
2564
|
-
collectionId: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2565
|
-
name: "collection_id";
|
|
2566
|
-
tableName: "entries";
|
|
2567
|
-
dataType: "string";
|
|
2568
|
-
columnType: "SQLiteText";
|
|
2569
|
-
data: string;
|
|
2570
|
-
driverParam: string;
|
|
2571
|
-
notNull: true;
|
|
2572
|
-
hasDefault: false;
|
|
2573
|
-
isPrimaryKey: false;
|
|
2574
|
-
isAutoincrement: false;
|
|
2575
|
-
hasRuntimeDefault: false;
|
|
2576
|
-
enumValues: [string, ...string[]];
|
|
2577
|
-
baseColumn: never;
|
|
2578
|
-
identity: undefined;
|
|
2579
|
-
generated: undefined;
|
|
2580
|
-
}, {}, {
|
|
2581
|
-
length: number | undefined;
|
|
2582
|
-
}>;
|
|
2583
|
-
title: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2584
|
-
name: "title";
|
|
2585
|
-
tableName: "entries";
|
|
2586
|
-
dataType: "string";
|
|
2587
|
-
columnType: "SQLiteText";
|
|
2588
|
-
data: string;
|
|
2589
|
-
driverParam: string;
|
|
2590
|
-
notNull: true;
|
|
2591
|
-
hasDefault: false;
|
|
2592
|
-
isPrimaryKey: false;
|
|
2593
|
-
isAutoincrement: false;
|
|
2594
|
-
hasRuntimeDefault: false;
|
|
2595
|
-
enumValues: [string, ...string[]];
|
|
2596
|
-
baseColumn: never;
|
|
2597
|
-
identity: undefined;
|
|
2598
|
-
generated: undefined;
|
|
2599
|
-
}, {}, {
|
|
2600
|
-
length: number | undefined;
|
|
2601
|
-
}>;
|
|
2602
|
-
slug: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2603
|
-
name: "slug";
|
|
2604
|
-
tableName: "entries";
|
|
2605
|
-
dataType: "string";
|
|
2606
|
-
columnType: "SQLiteText";
|
|
2607
|
-
data: string;
|
|
2608
|
-
driverParam: string;
|
|
2609
|
-
notNull: true;
|
|
2610
|
-
hasDefault: false;
|
|
2611
|
-
isPrimaryKey: false;
|
|
2612
|
-
isAutoincrement: false;
|
|
2613
|
-
hasRuntimeDefault: false;
|
|
2614
|
-
enumValues: [string, ...string[]];
|
|
2615
|
-
baseColumn: never;
|
|
2616
|
-
identity: undefined;
|
|
2617
|
-
generated: undefined;
|
|
2618
|
-
}, {}, {
|
|
2619
|
-
length: number | undefined;
|
|
2620
|
-
}>;
|
|
2621
|
-
data: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2622
|
-
name: "data";
|
|
2623
|
-
tableName: "entries";
|
|
2624
|
-
dataType: "json";
|
|
2625
|
-
columnType: "SQLiteTextJson";
|
|
2626
|
-
data: Record<string, unknown>;
|
|
2627
|
-
driverParam: string;
|
|
2628
|
-
notNull: true;
|
|
2629
|
-
hasDefault: false;
|
|
2630
|
-
isPrimaryKey: false;
|
|
2631
|
-
isAutoincrement: false;
|
|
2632
|
-
hasRuntimeDefault: false;
|
|
2633
|
-
enumValues: undefined;
|
|
2634
|
-
baseColumn: never;
|
|
2635
|
-
identity: undefined;
|
|
2636
|
-
generated: undefined;
|
|
2637
|
-
}, {}, {
|
|
2638
|
-
$type: Record<string, unknown>;
|
|
2639
|
-
}>;
|
|
2640
|
-
related: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2641
|
-
name: "related";
|
|
2642
|
-
tableName: "entries";
|
|
2643
|
-
dataType: "json";
|
|
2644
|
-
columnType: "SQLiteTextJson";
|
|
2645
|
-
data: string[];
|
|
2646
|
-
driverParam: string;
|
|
2647
|
-
notNull: false;
|
|
2648
|
-
hasDefault: false;
|
|
2649
|
-
isPrimaryKey: false;
|
|
2650
|
-
isAutoincrement: false;
|
|
2651
|
-
hasRuntimeDefault: false;
|
|
2652
|
-
enumValues: undefined;
|
|
2653
|
-
baseColumn: never;
|
|
2654
|
-
identity: undefined;
|
|
2655
|
-
generated: undefined;
|
|
2656
|
-
}, {}, {
|
|
2657
|
-
$type: string[];
|
|
2658
|
-
}>;
|
|
2659
|
-
createdBy: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2660
|
-
name: "created_by";
|
|
2661
|
-
tableName: "entries";
|
|
2662
|
-
dataType: "string";
|
|
2663
|
-
columnType: "SQLiteText";
|
|
2664
|
-
data: string;
|
|
2665
|
-
driverParam: string;
|
|
2666
|
-
notNull: false;
|
|
2667
|
-
hasDefault: false;
|
|
2668
|
-
isPrimaryKey: false;
|
|
2669
|
-
isAutoincrement: false;
|
|
2670
|
-
hasRuntimeDefault: false;
|
|
2671
|
-
enumValues: [string, ...string[]];
|
|
2672
|
-
baseColumn: never;
|
|
2673
|
-
identity: undefined;
|
|
2674
|
-
generated: undefined;
|
|
2675
|
-
}, {}, {
|
|
2676
|
-
length: number | undefined;
|
|
2677
|
-
}>;
|
|
2678
|
-
updatedBy: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2679
|
-
name: "updated_by";
|
|
2680
|
-
tableName: "entries";
|
|
2681
|
-
dataType: "string";
|
|
2682
|
-
columnType: "SQLiteText";
|
|
2683
|
-
data: string;
|
|
2684
|
-
driverParam: string;
|
|
2685
|
-
notNull: false;
|
|
2686
|
-
hasDefault: false;
|
|
2687
|
-
isPrimaryKey: false;
|
|
2688
|
-
isAutoincrement: false;
|
|
2689
|
-
hasRuntimeDefault: false;
|
|
2690
|
-
enumValues: [string, ...string[]];
|
|
2691
|
-
baseColumn: never;
|
|
2692
|
-
identity: undefined;
|
|
2693
|
-
generated: undefined;
|
|
2694
|
-
}, {}, {
|
|
2695
|
-
length: number | undefined;
|
|
2696
|
-
}>;
|
|
2697
|
-
status: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2698
|
-
name: "status";
|
|
2699
|
-
tableName: "entries";
|
|
2700
|
-
dataType: "string";
|
|
2701
|
-
columnType: "SQLiteText";
|
|
2702
|
-
data: "draft" | "waiting" | "ready" | "scheduled" | "published";
|
|
2703
|
-
driverParam: string;
|
|
2704
|
-
notNull: true;
|
|
2705
|
-
hasDefault: true;
|
|
2706
|
-
isPrimaryKey: false;
|
|
2707
|
-
isAutoincrement: false;
|
|
2708
|
-
hasRuntimeDefault: false;
|
|
2709
|
-
enumValues: ["draft", "waiting", "ready", "scheduled", "published"];
|
|
2710
|
-
baseColumn: never;
|
|
2711
|
-
identity: undefined;
|
|
2712
|
-
generated: undefined;
|
|
2713
|
-
}, {}, {
|
|
2714
|
-
length: number | undefined;
|
|
2715
|
-
}>;
|
|
2716
|
-
publishedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2717
|
-
name: "published_at";
|
|
2718
|
-
tableName: "entries";
|
|
2719
|
-
dataType: "string";
|
|
2720
|
-
columnType: "SQLiteText";
|
|
2721
|
-
data: string;
|
|
2722
|
-
driverParam: string;
|
|
2723
|
-
notNull: false;
|
|
2724
|
-
hasDefault: false;
|
|
2725
|
-
isPrimaryKey: false;
|
|
2726
|
-
isAutoincrement: false;
|
|
2727
|
-
hasRuntimeDefault: false;
|
|
2728
|
-
enumValues: [string, ...string[]];
|
|
2729
|
-
baseColumn: never;
|
|
2730
|
-
identity: undefined;
|
|
2731
|
-
generated: undefined;
|
|
2732
|
-
}, {}, {
|
|
2733
|
-
length: number | undefined;
|
|
2734
|
-
}>;
|
|
2735
|
-
legacyExtra: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2736
|
-
name: "legacy_extra";
|
|
2737
|
-
tableName: "entries";
|
|
2738
|
-
dataType: "json";
|
|
2739
|
-
columnType: "SQLiteTextJson";
|
|
2740
|
-
data: Record<string, unknown> | null;
|
|
2741
|
-
driverParam: string;
|
|
2742
|
-
notNull: false;
|
|
2743
|
-
hasDefault: false;
|
|
2744
|
-
isPrimaryKey: false;
|
|
2745
|
-
isAutoincrement: false;
|
|
2746
|
-
hasRuntimeDefault: false;
|
|
2747
|
-
enumValues: undefined;
|
|
2748
|
-
baseColumn: never;
|
|
2749
|
-
identity: undefined;
|
|
2750
|
-
generated: undefined;
|
|
2751
|
-
}, {}, {
|
|
2752
|
-
$type: Record<string, unknown> | null;
|
|
2753
|
-
}>;
|
|
2754
|
-
createdAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2755
|
-
name: "created_at";
|
|
2756
|
-
tableName: "entries";
|
|
2757
|
-
dataType: "string";
|
|
2758
|
-
columnType: "SQLiteText";
|
|
2759
|
-
data: string;
|
|
2760
|
-
driverParam: string;
|
|
2761
|
-
notNull: true;
|
|
2762
|
-
hasDefault: true;
|
|
2763
|
-
isPrimaryKey: false;
|
|
2764
|
-
isAutoincrement: false;
|
|
2765
|
-
hasRuntimeDefault: true;
|
|
2766
|
-
enumValues: [string, ...string[]];
|
|
2767
|
-
baseColumn: never;
|
|
2768
|
-
identity: undefined;
|
|
2769
|
-
generated: undefined;
|
|
2770
|
-
}, {}, {
|
|
2771
|
-
length: number | undefined;
|
|
2772
|
-
}>;
|
|
2773
|
-
updatedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2774
|
-
name: "updated_at";
|
|
2775
|
-
tableName: "entries";
|
|
2776
|
-
dataType: "string";
|
|
2777
|
-
columnType: "SQLiteText";
|
|
2778
|
-
data: string;
|
|
2779
|
-
driverParam: string;
|
|
2780
|
-
notNull: true;
|
|
2781
|
-
hasDefault: true;
|
|
2782
|
-
isPrimaryKey: false;
|
|
2783
|
-
isAutoincrement: false;
|
|
2784
|
-
hasRuntimeDefault: true;
|
|
2785
|
-
enumValues: [string, ...string[]];
|
|
2786
|
-
baseColumn: never;
|
|
2787
|
-
identity: undefined;
|
|
2788
|
-
generated: undefined;
|
|
2789
|
-
}, {}, {
|
|
2790
|
-
length: number | undefined;
|
|
2791
|
-
}>;
|
|
2792
|
-
}, {
|
|
2793
|
-
collectionId: (schema: z.ZodString) => z.ZodString;
|
|
2794
|
-
slug: (schema: z.ZodString) => z.ZodString;
|
|
2795
|
-
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2796
|
-
related: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
2797
|
-
status: (schema: z.ZodEnum<{
|
|
2798
|
-
draft: "draft";
|
|
2799
|
-
waiting: "waiting";
|
|
2800
|
-
ready: "ready";
|
|
2801
|
-
scheduled: "scheduled";
|
|
2802
|
-
published: "published";
|
|
2803
|
-
}>) => z.ZodEnum<{
|
|
2804
|
-
draft: "draft";
|
|
2805
|
-
waiting: "waiting";
|
|
2806
|
-
ready: "ready";
|
|
2807
|
-
scheduled: "scheduled";
|
|
2808
|
-
published: "published";
|
|
2809
|
-
}>;
|
|
2810
|
-
}, undefined>;
|
|
2811
|
-
/** A search hit: the entry, and which collection it comes from. */
|
|
2812
|
-
declare const entrySearchHitDto: z.ZodObject<{
|
|
2813
|
-
id: z.ZodString;
|
|
2814
|
-
collectionId: z.ZodString;
|
|
2815
|
-
title: z.ZodString;
|
|
2816
|
-
slug: z.ZodString;
|
|
2817
|
-
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2818
|
-
related: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
2819
|
-
createdBy: z.ZodNullable<z.ZodString>;
|
|
2820
|
-
updatedBy: z.ZodNullable<z.ZodString>;
|
|
2821
|
-
status: z.ZodEnum<{
|
|
2822
|
-
draft: "draft";
|
|
2823
|
-
waiting: "waiting";
|
|
2824
|
-
ready: "ready";
|
|
2825
|
-
scheduled: "scheduled";
|
|
2826
|
-
published: "published";
|
|
2827
|
-
}>;
|
|
2828
|
-
publishedAt: z.ZodNullable<z.ZodString>;
|
|
2829
|
-
legacyExtra: z.ZodNullable<z.ZodType<drizzle_zod.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod.Json, unknown>>>;
|
|
2830
|
-
createdAt: z.ZodString;
|
|
2831
|
-
updatedAt: z.ZodString;
|
|
2832
|
-
collectionSlug: z.ZodString;
|
|
2833
|
-
}, {
|
|
2834
|
-
out: {};
|
|
2835
|
-
in: {};
|
|
2836
|
-
}>;
|
|
2837
|
-
type EntryCreateDto = z.infer<typeof entryCreateDto>;
|
|
2838
|
-
type EntryUpdateDto = z.infer<typeof entryUpdateDto>;
|
|
2839
|
-
type EntrySearchHit = z.infer<typeof entrySearchHitDto>;
|
|
2840
|
-
|
|
2841
462
|
/**
|
|
2842
463
|
* The content engine: collection definitions over a closed field-type set, and
|
|
2843
464
|
* their entries, validated against the Zod schema generated from each definition.
|
|
@@ -2883,7 +504,9 @@ declare class CollectionsService {
|
|
|
2883
504
|
/** PARTIAL update: `data` is merged field by field with what already exists. */
|
|
2884
505
|
updateEntry(id: string, input: EntryUpdateDto, actorId?: string): Promise<Entry>;
|
|
2885
506
|
removeEntry(id: string): Promise<void>;
|
|
2886
|
-
|
|
507
|
+
/** A slug chosen by hand and already taken is a refusal, not a crash. */
|
|
508
|
+
private definitionSlugConflict;
|
|
509
|
+
private entrySlugConflict;
|
|
2887
510
|
/** Incremental suffix -1/-2… until the slug is unique within the collection. */
|
|
2888
511
|
private uniqueEntrySlug;
|
|
2889
512
|
private uniqueDefinitionSlug;
|
|
@@ -2920,6 +543,7 @@ interface CoreContext {
|
|
|
2920
543
|
* `trpcCode` carries the transport code, `type` the client-readable
|
|
2921
544
|
* discriminant the UI matches on.
|
|
2922
545
|
*/
|
|
546
|
+
|
|
2923
547
|
declare const TRPC_CODES: {
|
|
2924
548
|
readonly NOT_FOUND: "NOT_FOUND";
|
|
2925
549
|
readonly BAD_REQUEST: "BAD_REQUEST";
|
|
@@ -2932,73 +556,21 @@ declare const TRPC_CODES: {
|
|
|
2932
556
|
type TrpcErrorCode = (typeof TRPC_CODES)[keyof typeof TRPC_CODES];
|
|
2933
557
|
/** Base class — lets the tRPC mapper test `instanceof DomainError`. */
|
|
2934
558
|
declare abstract class DomainError extends Error {
|
|
2935
|
-
abstract readonly type:
|
|
559
|
+
abstract readonly type: ErrorType;
|
|
2936
560
|
abstract readonly trpcCode: TrpcErrorCode;
|
|
2937
561
|
}
|
|
2938
562
|
/**
|
|
2939
563
|
* A type and a transport code fully identify an error; the message is optional
|
|
2940
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.
|
|
2941
566
|
*
|
|
2942
567
|
* export const EntryNotFoundError = createTypedError(
|
|
2943
|
-
*
|
|
568
|
+
* ERROR_TYPES.ENTRY_NOT_FOUND, TRPC_CODES.NOT_FOUND);
|
|
2944
569
|
* throw new EntryNotFoundError(`entry not found: ${id}`);
|
|
2945
570
|
*/
|
|
2946
|
-
declare function createTypedError(type:
|
|
2947
|
-
new (message?: string): {
|
|
2948
|
-
readonly type: string;
|
|
2949
|
-
readonly trpcCode: TrpcErrorCode;
|
|
2950
|
-
name: string;
|
|
2951
|
-
message: string;
|
|
2952
|
-
stack?: string;
|
|
2953
|
-
cause?: unknown;
|
|
2954
|
-
};
|
|
2955
|
-
isError(error: unknown): error is Error;
|
|
2956
|
-
isError(value: unknown): value is Error;
|
|
2957
|
-
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
2958
|
-
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
2959
|
-
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
2960
|
-
stackTraceLimit: number;
|
|
2961
|
-
};
|
|
2962
|
-
|
|
2963
|
-
/**
|
|
2964
|
-
* What turns a tRPC procedure into an agent tool. A capability is declared
|
|
2965
|
-
* ONCE, on its procedure: this meta names and describes it, the procedure's
|
|
2966
|
-
* `.input()` and `.output()` give its schemas, its middleware gives its access
|
|
2967
|
-
* rules. The same declaration serves the admin, the internal agent and any MCP
|
|
2968
|
-
* server — the core itself depends on no MCP library.
|
|
2969
|
-
*
|
|
2970
|
-
* entries: router({
|
|
2971
|
-
* get: protectedProcedure
|
|
2972
|
-
* .meta({ agent: { name: 'entries_get', description: '…', annotations: { readOnlyHint: true } } })
|
|
2973
|
-
* .input(z.object({ id: z.string().describe('…') }))
|
|
2974
|
-
* .output(entryDto)
|
|
2975
|
-
* .query(…),
|
|
2976
|
-
* })
|
|
2977
|
-
*/
|
|
2978
|
-
interface AgentToolMeta {
|
|
2979
|
-
/** The tool name the model sees. `snake_case`, unique across the router. */
|
|
2980
|
-
name: string;
|
|
2981
|
-
/** A short human-readable title, shown by assistants that list tools. */
|
|
2982
|
-
title?: string;
|
|
2983
|
-
/** What the tool does and when to use it — written for the model. */
|
|
2984
|
-
description: string;
|
|
2985
|
-
/** MCP behaviour hints. They inform the assistant; they enforce nothing. */
|
|
2986
|
-
annotations?: {
|
|
2987
|
-
readOnlyHint?: boolean;
|
|
2988
|
-
destructiveHint?: boolean;
|
|
2989
|
-
idempotentHint?: boolean;
|
|
2990
|
-
openWorldHint?: boolean;
|
|
2991
|
-
};
|
|
2992
|
-
}
|
|
2993
|
-
/** The meta every procedure of the core may carry. */
|
|
2994
|
-
interface CoreMeta {
|
|
2995
|
-
/** Present when the procedure is exposed to agents. */
|
|
2996
|
-
agent?: AgentToolMeta;
|
|
2997
|
-
}
|
|
2998
|
-
|
|
2999
|
-
declare const AgentToolNotFoundError: {
|
|
571
|
+
declare function createTypedError(type: ErrorType, trpcCode: TrpcErrorCode): {
|
|
3000
572
|
new (message?: string): {
|
|
3001
|
-
readonly type:
|
|
573
|
+
readonly type: ErrorType;
|
|
3002
574
|
readonly trpcCode: TrpcErrorCode;
|
|
3003
575
|
name: string;
|
|
3004
576
|
message: string;
|
|
@@ -3013,32 +585,18 @@ declare const AgentToolNotFoundError: {
|
|
|
3013
585
|
stackTraceLimit: number;
|
|
3014
586
|
};
|
|
3015
587
|
/**
|
|
3016
|
-
*
|
|
3017
|
-
*
|
|
3018
|
-
*
|
|
3019
|
-
*/
|
|
3020
|
-
interface AgentTool extends AgentToolMeta {
|
|
3021
|
-
/** Where the procedure sits in the router, e.g. `collections.entries.get`. */
|
|
3022
|
-
path: string;
|
|
3023
|
-
input: z.ZodObject;
|
|
3024
|
-
/** MCP wants an object: a list result is carried under `result`. */
|
|
3025
|
-
output?: z.ZodObject;
|
|
3026
|
-
}
|
|
3027
|
-
/** The tools a router exposes to agents: every procedure carrying `agent` meta. */
|
|
3028
|
-
declare function agentTools(router: AnyRouter): AgentTool[];
|
|
3029
|
-
/**
|
|
3030
|
-
* Runs a tool through its procedure, middlewares included: the caller has
|
|
3031
|
-
* exactly the rights its session gives in the admin. A list result comes back
|
|
3032
|
-
* 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.
|
|
3033
591
|
*/
|
|
3034
|
-
declare
|
|
592
|
+
declare const isUniqueViolation: (error: unknown, column: string) => boolean;
|
|
3035
593
|
|
|
3036
594
|
declare const organizationRouter: _trpc_server.TRPCBuiltRouter<{
|
|
3037
595
|
ctx: CoreContext;
|
|
3038
|
-
meta:
|
|
596
|
+
meta: object;
|
|
3039
597
|
errorShape: {
|
|
3040
598
|
data: {
|
|
3041
|
-
type?:
|
|
599
|
+
type?: ErrorType | undefined;
|
|
3042
600
|
code: _trpc_server.TRPC_ERROR_CODE_KEY;
|
|
3043
601
|
httpStatus: number;
|
|
3044
602
|
path?: string;
|
|
@@ -3053,10 +611,14 @@ declare const organizationRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3053
611
|
input: void;
|
|
3054
612
|
output: {
|
|
3055
613
|
type: "commune" | "intercommunality" | "syndicate" | "other";
|
|
3056
|
-
name: string;
|
|
3057
614
|
id: number;
|
|
615
|
+
name: string;
|
|
3058
616
|
slug: string;
|
|
3059
617
|
description: string | null;
|
|
618
|
+
updatedBy: string | null;
|
|
619
|
+
legacyExtra: Record<string, unknown> | null;
|
|
620
|
+
createdAt: string;
|
|
621
|
+
updatedAt: string;
|
|
3060
622
|
address: {
|
|
3061
623
|
street?: string | undefined;
|
|
3062
624
|
postalCode?: string | undefined;
|
|
@@ -3064,12 +626,8 @@ declare const organizationRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3064
626
|
} | null;
|
|
3065
627
|
deployment: Record<string, unknown> | null;
|
|
3066
628
|
settings: Record<string, unknown> | null;
|
|
3067
|
-
updatedBy: string | null;
|
|
3068
|
-
legacyExtra: Record<string, unknown> | null;
|
|
3069
|
-
createdAt: string;
|
|
3070
|
-
updatedAt: string;
|
|
3071
629
|
} | null;
|
|
3072
|
-
meta:
|
|
630
|
+
meta: object;
|
|
3073
631
|
}>;
|
|
3074
632
|
init: _trpc_server.TRPCMutationProcedure<{
|
|
3075
633
|
input: {
|
|
@@ -3087,10 +645,14 @@ declare const organizationRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3087
645
|
};
|
|
3088
646
|
output: {
|
|
3089
647
|
type: "commune" | "intercommunality" | "syndicate" | "other";
|
|
3090
|
-
name: string;
|
|
3091
648
|
id: number;
|
|
649
|
+
name: string;
|
|
3092
650
|
slug: string;
|
|
3093
651
|
description: string | null;
|
|
652
|
+
updatedBy: string | null;
|
|
653
|
+
legacyExtra: Record<string, unknown> | null;
|
|
654
|
+
createdAt: string;
|
|
655
|
+
updatedAt: string;
|
|
3094
656
|
address: {
|
|
3095
657
|
street?: string | undefined;
|
|
3096
658
|
postalCode?: string | undefined;
|
|
@@ -3098,12 +660,8 @@ declare const organizationRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3098
660
|
} | null;
|
|
3099
661
|
deployment: Record<string, unknown> | null;
|
|
3100
662
|
settings: Record<string, unknown> | null;
|
|
3101
|
-
updatedBy: string | null;
|
|
3102
|
-
legacyExtra: Record<string, unknown> | null;
|
|
3103
|
-
createdAt: string;
|
|
3104
|
-
updatedAt: string;
|
|
3105
663
|
};
|
|
3106
|
-
meta:
|
|
664
|
+
meta: object;
|
|
3107
665
|
}>;
|
|
3108
666
|
update: _trpc_server.TRPCMutationProcedure<{
|
|
3109
667
|
input: {
|
|
@@ -3121,10 +679,14 @@ declare const organizationRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3121
679
|
};
|
|
3122
680
|
output: {
|
|
3123
681
|
type: "commune" | "intercommunality" | "syndicate" | "other";
|
|
3124
|
-
name: string;
|
|
3125
682
|
id: number;
|
|
683
|
+
name: string;
|
|
3126
684
|
slug: string;
|
|
3127
685
|
description: string | null;
|
|
686
|
+
updatedBy: string | null;
|
|
687
|
+
legacyExtra: Record<string, unknown> | null;
|
|
688
|
+
createdAt: string;
|
|
689
|
+
updatedAt: string;
|
|
3128
690
|
address: {
|
|
3129
691
|
street?: string | undefined;
|
|
3130
692
|
postalCode?: string | undefined;
|
|
@@ -3132,25 +694,21 @@ declare const organizationRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3132
694
|
} | null;
|
|
3133
695
|
deployment: Record<string, unknown> | null;
|
|
3134
696
|
settings: Record<string, unknown> | null;
|
|
3135
|
-
updatedBy: string | null;
|
|
3136
|
-
legacyExtra: Record<string, unknown> | null;
|
|
3137
|
-
createdAt: string;
|
|
3138
|
-
updatedAt: string;
|
|
3139
697
|
};
|
|
3140
|
-
meta:
|
|
698
|
+
meta: object;
|
|
3141
699
|
}>;
|
|
3142
700
|
deploy: _trpc_server.TRPCMutationProcedure<{
|
|
3143
701
|
input: void;
|
|
3144
702
|
output: {
|
|
3145
703
|
status: number;
|
|
3146
704
|
};
|
|
3147
|
-
meta:
|
|
705
|
+
meta: object;
|
|
3148
706
|
}>;
|
|
3149
707
|
}>>;
|
|
3150
708
|
|
|
3151
709
|
declare const OrganizationNotInitializedError: {
|
|
3152
710
|
new (message?: string): {
|
|
3153
|
-
readonly type:
|
|
711
|
+
readonly type: ErrorType;
|
|
3154
712
|
readonly trpcCode: TrpcErrorCode;
|
|
3155
713
|
name: string;
|
|
3156
714
|
message: string;
|
|
@@ -3166,7 +724,7 @@ declare const OrganizationNotInitializedError: {
|
|
|
3166
724
|
};
|
|
3167
725
|
declare const OrganizationAlreadyInitializedError: {
|
|
3168
726
|
new (message?: string): {
|
|
3169
|
-
readonly type:
|
|
727
|
+
readonly type: ErrorType;
|
|
3170
728
|
readonly trpcCode: TrpcErrorCode;
|
|
3171
729
|
name: string;
|
|
3172
730
|
message: string;
|
|
@@ -3182,7 +740,7 @@ declare const OrganizationAlreadyInitializedError: {
|
|
|
3182
740
|
};
|
|
3183
741
|
declare const DeployHookMissingError: {
|
|
3184
742
|
new (message?: string): {
|
|
3185
|
-
readonly type:
|
|
743
|
+
readonly type: ErrorType;
|
|
3186
744
|
readonly trpcCode: TrpcErrorCode;
|
|
3187
745
|
name: string;
|
|
3188
746
|
message: string;
|
|
@@ -3198,7 +756,7 @@ declare const DeployHookMissingError: {
|
|
|
3198
756
|
};
|
|
3199
757
|
declare const DeployFailedError: {
|
|
3200
758
|
new (message?: string): {
|
|
3201
|
-
readonly type:
|
|
759
|
+
readonly type: ErrorType;
|
|
3202
760
|
readonly trpcCode: TrpcErrorCode;
|
|
3203
761
|
name: string;
|
|
3204
762
|
message: string;
|
|
@@ -3213,62 +771,12 @@ declare const DeployFailedError: {
|
|
|
3213
771
|
stackTraceLimit: number;
|
|
3214
772
|
};
|
|
3215
773
|
|
|
3216
|
-
declare const loginDto: z.ZodObject<{
|
|
3217
|
-
email: z.ZodEmail;
|
|
3218
|
-
password: z.ZodString;
|
|
3219
|
-
}, z.core.$strip>;
|
|
3220
|
-
declare const acceptInvitationDto: z.ZodObject<{
|
|
3221
|
-
token: z.ZodString;
|
|
3222
|
-
name: z.ZodOptional<z.ZodString>;
|
|
3223
|
-
password: z.ZodString;
|
|
3224
|
-
}, z.core.$strip>;
|
|
3225
|
-
declare const requestPasswordResetDto: z.ZodObject<{
|
|
3226
|
-
email: z.ZodEmail;
|
|
3227
|
-
}, z.core.$strip>;
|
|
3228
|
-
type LoginDto = z.infer<typeof loginDto>;
|
|
3229
|
-
type AcceptInvitationDto = z.infer<typeof acceptInvitationDto>;
|
|
3230
|
-
type RequestPasswordResetDto = z.infer<typeof requestPasswordResetDto>;
|
|
3231
|
-
|
|
3232
|
-
declare const inviteDto: z.ZodObject<{
|
|
3233
|
-
email: z.ZodEmail;
|
|
3234
|
-
role: z.ZodEnum<{
|
|
3235
|
-
admin: "admin";
|
|
3236
|
-
redacteur: "redacteur";
|
|
3237
|
-
}>;
|
|
3238
|
-
}, z.core.$strip>;
|
|
3239
|
-
declare const userUpdateDto: z.ZodObject<{
|
|
3240
|
-
id: z.ZodString;
|
|
3241
|
-
data: z.ZodObject<{
|
|
3242
|
-
name: z.ZodOptional<z.ZodString>;
|
|
3243
|
-
role: z.ZodOptional<z.ZodEnum<{
|
|
3244
|
-
admin: "admin";
|
|
3245
|
-
redacteur: "redacteur";
|
|
3246
|
-
}>>;
|
|
3247
|
-
email: z.ZodOptional<z.ZodEmail>;
|
|
3248
|
-
}, z.core.$strip>;
|
|
3249
|
-
}, z.core.$strip>;
|
|
3250
|
-
/** Public projection of a user — the ONLY user shape transport layers return. */
|
|
3251
|
-
declare const toPublicUser: ({ id, email, name, role }: User) => {
|
|
3252
|
-
id: string;
|
|
3253
|
-
email: string;
|
|
3254
|
-
name: string;
|
|
3255
|
-
role: "admin" | "redacteur";
|
|
3256
|
-
};
|
|
3257
|
-
type PublicUser = ReturnType<typeof toPublicUser>;
|
|
3258
|
-
type InviteDto = z.infer<typeof inviteDto>;
|
|
3259
|
-
type UserUpdateDto = z.infer<typeof userUpdateDto>;
|
|
3260
|
-
|
|
3261
|
-
declare const apiTokenCreateDto: z.ZodObject<{
|
|
3262
|
-
name: z.ZodString;
|
|
3263
|
-
}, z.core.$strip>;
|
|
3264
|
-
type ApiTokenCreateDto = z.infer<typeof apiTokenCreateDto>;
|
|
3265
|
-
|
|
3266
774
|
declare const authRouter: _trpc_server.TRPCBuiltRouter<{
|
|
3267
775
|
ctx: CoreContext;
|
|
3268
|
-
meta:
|
|
776
|
+
meta: object;
|
|
3269
777
|
errorShape: {
|
|
3270
778
|
data: {
|
|
3271
|
-
type?:
|
|
779
|
+
type?: ErrorType | undefined;
|
|
3272
780
|
code: _trpc_server.TRPC_ERROR_CODE_KEY;
|
|
3273
781
|
httpStatus: number;
|
|
3274
782
|
path?: string;
|
|
@@ -3296,14 +804,14 @@ declare const authRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3296
804
|
role: "admin" | "redacteur";
|
|
3297
805
|
};
|
|
3298
806
|
};
|
|
3299
|
-
meta:
|
|
807
|
+
meta: object;
|
|
3300
808
|
}>;
|
|
3301
809
|
logout: _trpc_server.TRPCMutationProcedure<{
|
|
3302
810
|
input: void;
|
|
3303
811
|
output: {
|
|
3304
812
|
loggedOut: boolean;
|
|
3305
813
|
};
|
|
3306
|
-
meta:
|
|
814
|
+
meta: object;
|
|
3307
815
|
}>;
|
|
3308
816
|
me: _trpc_server.TRPCQueryProcedure<{
|
|
3309
817
|
input: void;
|
|
@@ -3315,15 +823,15 @@ declare const authRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3315
823
|
role: "admin" | "redacteur";
|
|
3316
824
|
};
|
|
3317
825
|
};
|
|
3318
|
-
meta:
|
|
826
|
+
meta: object;
|
|
3319
827
|
}>;
|
|
3320
828
|
/** Device management: the sessions listed on the account page. */
|
|
3321
829
|
sessions: _trpc_server.TRPCBuiltRouter<{
|
|
3322
830
|
ctx: CoreContext;
|
|
3323
|
-
meta:
|
|
831
|
+
meta: object;
|
|
3324
832
|
errorShape: {
|
|
3325
833
|
data: {
|
|
3326
|
-
type?:
|
|
834
|
+
type?: ErrorType | undefined;
|
|
3327
835
|
code: _trpc_server.TRPC_ERROR_CODE_KEY;
|
|
3328
836
|
httpStatus: number;
|
|
3329
837
|
path?: string;
|
|
@@ -3344,7 +852,7 @@ declare const authRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3344
852
|
ip: string | null;
|
|
3345
853
|
current: boolean;
|
|
3346
854
|
}[];
|
|
3347
|
-
meta:
|
|
855
|
+
meta: object;
|
|
3348
856
|
}>;
|
|
3349
857
|
revoke: _trpc_server.TRPCMutationProcedure<{
|
|
3350
858
|
input: {
|
|
@@ -3353,7 +861,7 @@ declare const authRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3353
861
|
output: {
|
|
3354
862
|
revoked: string;
|
|
3355
863
|
};
|
|
3356
|
-
meta:
|
|
864
|
+
meta: object;
|
|
3357
865
|
}>;
|
|
3358
866
|
}>>;
|
|
3359
867
|
/** Consume an invitation link and set the password (public, single-use). */
|
|
@@ -3371,7 +879,7 @@ declare const authRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3371
879
|
role: "admin" | "redacteur";
|
|
3372
880
|
};
|
|
3373
881
|
};
|
|
3374
|
-
meta:
|
|
882
|
+
meta: object;
|
|
3375
883
|
}>;
|
|
3376
884
|
/**
|
|
3377
885
|
* « Forgotten password » — public, and the response is ALWAYS { ok: true }
|
|
@@ -3385,15 +893,15 @@ declare const authRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3385
893
|
output: {
|
|
3386
894
|
ok: boolean;
|
|
3387
895
|
};
|
|
3388
|
-
meta:
|
|
896
|
+
meta: object;
|
|
3389
897
|
}>;
|
|
3390
898
|
}>>;
|
|
3391
899
|
declare const usersRouter: _trpc_server.TRPCBuiltRouter<{
|
|
3392
900
|
ctx: CoreContext;
|
|
3393
|
-
meta:
|
|
901
|
+
meta: object;
|
|
3394
902
|
errorShape: {
|
|
3395
903
|
data: {
|
|
3396
|
-
type?:
|
|
904
|
+
type?: ErrorType | undefined;
|
|
3397
905
|
code: _trpc_server.TRPC_ERROR_CODE_KEY;
|
|
3398
906
|
httpStatus: number;
|
|
3399
907
|
path?: string;
|
|
@@ -3412,7 +920,7 @@ declare const usersRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3412
920
|
name: string;
|
|
3413
921
|
role: "admin" | "redacteur";
|
|
3414
922
|
}[];
|
|
3415
|
-
meta:
|
|
923
|
+
meta: object;
|
|
3416
924
|
}>;
|
|
3417
925
|
/**
|
|
3418
926
|
* A {id, name} directory readable by any signed-in member: the admin shows
|
|
@@ -3425,7 +933,7 @@ declare const usersRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3425
933
|
id: string;
|
|
3426
934
|
name: string;
|
|
3427
935
|
}[];
|
|
3428
|
-
meta:
|
|
936
|
+
meta: object;
|
|
3429
937
|
}>;
|
|
3430
938
|
/** Read a single user. */
|
|
3431
939
|
get: _trpc_server.TRPCQueryProcedure<{
|
|
@@ -3438,7 +946,7 @@ declare const usersRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3438
946
|
name: string;
|
|
3439
947
|
role: "admin" | "redacteur";
|
|
3440
948
|
};
|
|
3441
|
-
meta:
|
|
949
|
+
meta: object;
|
|
3442
950
|
}>;
|
|
3443
951
|
/** Invite a new member — the single-use link is returned to the admin. */
|
|
3444
952
|
invite: _trpc_server.TRPCMutationProcedure<{
|
|
@@ -3450,7 +958,7 @@ declare const usersRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3450
958
|
token: string;
|
|
3451
959
|
expiresAt: string;
|
|
3452
960
|
};
|
|
3453
|
-
meta:
|
|
961
|
+
meta: object;
|
|
3454
962
|
}>;
|
|
3455
963
|
update: _trpc_server.TRPCMutationProcedure<{
|
|
3456
964
|
input: {
|
|
@@ -3467,7 +975,25 @@ declare const usersRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3467
975
|
name: string;
|
|
3468
976
|
role: "admin" | "redacteur";
|
|
3469
977
|
};
|
|
3470
|
-
meta:
|
|
978
|
+
meta: object;
|
|
979
|
+
}>;
|
|
980
|
+
/**
|
|
981
|
+
* One's own name, and only that. An administrator goes through `update`;
|
|
982
|
+
* here the target is not a parameter, it is the session.
|
|
983
|
+
*/
|
|
984
|
+
updateOwnProfile: _trpc_server.TRPCMutationProcedure<{
|
|
985
|
+
input: {
|
|
986
|
+
name: string;
|
|
987
|
+
};
|
|
988
|
+
output: {
|
|
989
|
+
user: {
|
|
990
|
+
id: string;
|
|
991
|
+
email: string;
|
|
992
|
+
name: string;
|
|
993
|
+
role: "admin" | "redacteur";
|
|
994
|
+
};
|
|
995
|
+
};
|
|
996
|
+
meta: object;
|
|
3471
997
|
}>;
|
|
3472
998
|
remove: _trpc_server.TRPCMutationProcedure<{
|
|
3473
999
|
input: {
|
|
@@ -3476,15 +1002,15 @@ declare const usersRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3476
1002
|
output: {
|
|
3477
1003
|
removed: string;
|
|
3478
1004
|
};
|
|
3479
|
-
meta:
|
|
1005
|
+
meta: object;
|
|
3480
1006
|
}>;
|
|
3481
1007
|
}>>;
|
|
3482
1008
|
declare const apiTokensRouter: _trpc_server.TRPCBuiltRouter<{
|
|
3483
1009
|
ctx: CoreContext;
|
|
3484
|
-
meta:
|
|
1010
|
+
meta: object;
|
|
3485
1011
|
errorShape: {
|
|
3486
1012
|
data: {
|
|
3487
|
-
type?:
|
|
1013
|
+
type?: ErrorType | undefined;
|
|
3488
1014
|
code: _trpc_server.TRPC_ERROR_CODE_KEY;
|
|
3489
1015
|
httpStatus: number;
|
|
3490
1016
|
path?: string;
|
|
@@ -3498,14 +1024,14 @@ declare const apiTokensRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3498
1024
|
list: _trpc_server.TRPCQueryProcedure<{
|
|
3499
1025
|
input: void;
|
|
3500
1026
|
output: Pick<{
|
|
3501
|
-
name: string;
|
|
3502
1027
|
id: string;
|
|
1028
|
+
name: string;
|
|
3503
1029
|
createdAt: string;
|
|
3504
1030
|
revokedAt: string | null;
|
|
3505
1031
|
tokenHash: string;
|
|
3506
1032
|
lastUsedAt: string | null;
|
|
3507
|
-
}, "
|
|
3508
|
-
meta:
|
|
1033
|
+
}, "id" | "name" | "createdAt" | "revokedAt" | "lastUsedAt">[];
|
|
1034
|
+
meta: object;
|
|
3509
1035
|
}>;
|
|
3510
1036
|
/** The plaintext token is returned ONCE — only its hash is stored. */
|
|
3511
1037
|
create: _trpc_server.TRPCMutationProcedure<{
|
|
@@ -3517,7 +1043,64 @@ declare const apiTokensRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3517
1043
|
id: string;
|
|
3518
1044
|
name: string;
|
|
3519
1045
|
};
|
|
3520
|
-
meta:
|
|
1046
|
+
meta: object;
|
|
1047
|
+
}>;
|
|
1048
|
+
revoke: _trpc_server.TRPCMutationProcedure<{
|
|
1049
|
+
input: {
|
|
1050
|
+
id: string;
|
|
1051
|
+
};
|
|
1052
|
+
output: {
|
|
1053
|
+
revoked: string;
|
|
1054
|
+
};
|
|
1055
|
+
meta: object;
|
|
1056
|
+
}>;
|
|
1057
|
+
}>>;
|
|
1058
|
+
/**
|
|
1059
|
+
* Invitations, gathered under the name that says what they are: the admin
|
|
1060
|
+
* manages them, and the two public flows (honouring a link, asking for a
|
|
1061
|
+
* password) live next to their creation instead of being scattered in `auth`.
|
|
1062
|
+
*
|
|
1063
|
+
* The public procedures stay exposed under `auth` too, the path existing
|
|
1064
|
+
* clients call: renaming a procedure breaks whoever calls it, and the write
|
|
1065
|
+
* contract has no version.
|
|
1066
|
+
*/
|
|
1067
|
+
declare const invitationsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
1068
|
+
ctx: CoreContext;
|
|
1069
|
+
meta: object;
|
|
1070
|
+
errorShape: {
|
|
1071
|
+
data: {
|
|
1072
|
+
type?: ErrorType | undefined;
|
|
1073
|
+
code: _trpc_server.TRPC_ERROR_CODE_KEY;
|
|
1074
|
+
httpStatus: number;
|
|
1075
|
+
path?: string;
|
|
1076
|
+
stack?: string;
|
|
1077
|
+
};
|
|
1078
|
+
message: string;
|
|
1079
|
+
code: _trpc_server.TRPC_ERROR_CODE_NUMBER;
|
|
1080
|
+
};
|
|
1081
|
+
transformer: false;
|
|
1082
|
+
}, _trpc_server.TRPCDecorateCreateRouterOptions<{
|
|
1083
|
+
create: _trpc_server.TRPCMutationProcedure<{
|
|
1084
|
+
input: {
|
|
1085
|
+
email: string;
|
|
1086
|
+
role: "admin" | "redacteur";
|
|
1087
|
+
};
|
|
1088
|
+
output: {
|
|
1089
|
+
token: string;
|
|
1090
|
+
expiresAt: string;
|
|
1091
|
+
};
|
|
1092
|
+
meta: object;
|
|
1093
|
+
}>;
|
|
1094
|
+
/** Invited members who have not joined yet: nothing else shows them. */
|
|
1095
|
+
list: _trpc_server.TRPCQueryProcedure<{
|
|
1096
|
+
input: void;
|
|
1097
|
+
output: {
|
|
1098
|
+
id: string;
|
|
1099
|
+
email: string;
|
|
1100
|
+
role: "admin" | "redacteur";
|
|
1101
|
+
expiresAt: string;
|
|
1102
|
+
}[];
|
|
1103
|
+
meta: object;
|
|
3521
1104
|
}>;
|
|
3522
1105
|
revoke: _trpc_server.TRPCMutationProcedure<{
|
|
3523
1106
|
input: {
|
|
@@ -3526,13 +1109,38 @@ declare const apiTokensRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3526
1109
|
output: {
|
|
3527
1110
|
revoked: string;
|
|
3528
1111
|
};
|
|
3529
|
-
meta:
|
|
1112
|
+
meta: object;
|
|
1113
|
+
}>;
|
|
1114
|
+
accept: _trpc_server.TRPCMutationProcedure<{
|
|
1115
|
+
input: {
|
|
1116
|
+
token: string;
|
|
1117
|
+
password: string;
|
|
1118
|
+
name?: string | undefined;
|
|
1119
|
+
};
|
|
1120
|
+
output: {
|
|
1121
|
+
user: {
|
|
1122
|
+
id: string;
|
|
1123
|
+
email: string;
|
|
1124
|
+
name: string;
|
|
1125
|
+
role: "admin" | "redacteur";
|
|
1126
|
+
};
|
|
1127
|
+
};
|
|
1128
|
+
meta: object;
|
|
1129
|
+
}>;
|
|
1130
|
+
requestPasswordReset: _trpc_server.TRPCMutationProcedure<{
|
|
1131
|
+
input: {
|
|
1132
|
+
email: string;
|
|
1133
|
+
};
|
|
1134
|
+
output: {
|
|
1135
|
+
ok: boolean;
|
|
1136
|
+
};
|
|
1137
|
+
meta: object;
|
|
3530
1138
|
}>;
|
|
3531
1139
|
}>>;
|
|
3532
1140
|
|
|
3533
1141
|
declare const UserNotFoundError: {
|
|
3534
1142
|
new (message?: string): {
|
|
3535
|
-
readonly type:
|
|
1143
|
+
readonly type: ErrorType;
|
|
3536
1144
|
readonly trpcCode: TrpcErrorCode;
|
|
3537
1145
|
name: string;
|
|
3538
1146
|
message: string;
|
|
@@ -3548,7 +1156,7 @@ declare const UserNotFoundError: {
|
|
|
3548
1156
|
};
|
|
3549
1157
|
declare const SessionNotFoundError: {
|
|
3550
1158
|
new (message?: string): {
|
|
3551
|
-
readonly type:
|
|
1159
|
+
readonly type: ErrorType;
|
|
3552
1160
|
readonly trpcCode: TrpcErrorCode;
|
|
3553
1161
|
name: string;
|
|
3554
1162
|
message: string;
|
|
@@ -3564,7 +1172,7 @@ declare const SessionNotFoundError: {
|
|
|
3564
1172
|
};
|
|
3565
1173
|
declare const InvitationInvalidError: {
|
|
3566
1174
|
new (message?: string): {
|
|
3567
|
-
readonly type:
|
|
1175
|
+
readonly type: ErrorType;
|
|
3568
1176
|
readonly trpcCode: TrpcErrorCode;
|
|
3569
1177
|
name: string;
|
|
3570
1178
|
message: string;
|
|
@@ -3580,7 +1188,7 @@ declare const InvitationInvalidError: {
|
|
|
3580
1188
|
};
|
|
3581
1189
|
declare const CannotRemoveSelfError: {
|
|
3582
1190
|
new (message?: string): {
|
|
3583
|
-
readonly type:
|
|
1191
|
+
readonly type: ErrorType;
|
|
3584
1192
|
readonly trpcCode: TrpcErrorCode;
|
|
3585
1193
|
name: string;
|
|
3586
1194
|
message: string;
|
|
@@ -3597,7 +1205,7 @@ declare const CannotRemoveSelfError: {
|
|
|
3597
1205
|
/** Throttled on ONE account — distinct from bad credentials: we refuse to try. */
|
|
3598
1206
|
declare const TooManyAttemptsError: {
|
|
3599
1207
|
new (message?: string): {
|
|
3600
|
-
readonly type:
|
|
1208
|
+
readonly type: ErrorType;
|
|
3601
1209
|
readonly trpcCode: TrpcErrorCode;
|
|
3602
1210
|
name: string;
|
|
3603
1211
|
message: string;
|
|
@@ -3614,10 +1222,10 @@ declare const TooManyAttemptsError: {
|
|
|
3614
1222
|
|
|
3615
1223
|
declare const mediaRouter: _trpc_server.TRPCBuiltRouter<{
|
|
3616
1224
|
ctx: CoreContext;
|
|
3617
|
-
meta:
|
|
1225
|
+
meta: object;
|
|
3618
1226
|
errorShape: {
|
|
3619
1227
|
data: {
|
|
3620
|
-
type?:
|
|
1228
|
+
type?: ErrorType | undefined;
|
|
3621
1229
|
code: _trpc_server.TRPC_ERROR_CODE_KEY;
|
|
3622
1230
|
httpStatus: number;
|
|
3623
1231
|
path?: string;
|
|
@@ -3638,7 +1246,7 @@ declare const mediaRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3638
1246
|
key: string;
|
|
3639
1247
|
url: string;
|
|
3640
1248
|
};
|
|
3641
|
-
meta:
|
|
1249
|
+
meta: object;
|
|
3642
1250
|
}>;
|
|
3643
1251
|
finalize: _trpc_server.TRPCMutationProcedure<{
|
|
3644
1252
|
input: {
|
|
@@ -3649,65 +1257,65 @@ declare const mediaRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3649
1257
|
metaData?: Record<string, unknown> | undefined;
|
|
3650
1258
|
};
|
|
3651
1259
|
output: {
|
|
3652
|
-
filename: string;
|
|
3653
1260
|
id: string;
|
|
1261
|
+
createdBy: string | null;
|
|
3654
1262
|
updatedBy: string | null;
|
|
3655
1263
|
legacyExtra: Record<string, unknown> | null;
|
|
3656
1264
|
createdAt: string;
|
|
3657
1265
|
updatedAt: string;
|
|
1266
|
+
filename: string;
|
|
3658
1267
|
mime: string;
|
|
3659
|
-
|
|
1268
|
+
metaData: Record<string, unknown> | null;
|
|
3660
1269
|
alt: string | null;
|
|
1270
|
+
size: number;
|
|
3661
1271
|
caption: string | null;
|
|
3662
1272
|
objects: Record<string, unknown>;
|
|
3663
|
-
metaData: Record<string, unknown> | null;
|
|
3664
|
-
createdBy: string | null;
|
|
3665
1273
|
};
|
|
3666
|
-
meta:
|
|
1274
|
+
meta: object;
|
|
3667
1275
|
}>;
|
|
3668
1276
|
list: _trpc_server.TRPCQueryProcedure<{
|
|
3669
1277
|
input: void;
|
|
3670
1278
|
output: ({
|
|
3671
|
-
filename: string;
|
|
3672
1279
|
id: string;
|
|
1280
|
+
createdBy: string | null;
|
|
3673
1281
|
updatedBy: string | null;
|
|
3674
1282
|
legacyExtra: Record<string, unknown> | null;
|
|
3675
1283
|
createdAt: string;
|
|
3676
1284
|
updatedAt: string;
|
|
1285
|
+
filename: string;
|
|
3677
1286
|
mime: string;
|
|
3678
|
-
|
|
1287
|
+
metaData: Record<string, unknown> | null;
|
|
3679
1288
|
alt: string | null;
|
|
1289
|
+
size: number;
|
|
3680
1290
|
caption: string | null;
|
|
3681
1291
|
objects: Record<string, unknown>;
|
|
3682
|
-
metaData: Record<string, unknown> | null;
|
|
3683
|
-
createdBy: string | null;
|
|
3684
1292
|
} & {
|
|
3685
1293
|
objects: Record<string, string>;
|
|
3686
1294
|
})[];
|
|
3687
|
-
meta:
|
|
1295
|
+
meta: object;
|
|
3688
1296
|
}>;
|
|
3689
1297
|
get: _trpc_server.TRPCQueryProcedure<{
|
|
3690
1298
|
input: {
|
|
3691
1299
|
id: string;
|
|
3692
1300
|
};
|
|
3693
1301
|
output: {
|
|
3694
|
-
filename: string;
|
|
3695
1302
|
id: string;
|
|
1303
|
+
createdBy: string | null;
|
|
3696
1304
|
updatedBy: string | null;
|
|
3697
1305
|
legacyExtra: Record<string, unknown> | null;
|
|
3698
1306
|
createdAt: string;
|
|
3699
1307
|
updatedAt: string;
|
|
1308
|
+
filename: string;
|
|
3700
1309
|
mime: string;
|
|
3701
|
-
|
|
1310
|
+
metaData: Record<string, unknown> | null;
|
|
3702
1311
|
alt: string | null;
|
|
1312
|
+
size: number;
|
|
3703
1313
|
caption: string | null;
|
|
3704
1314
|
objects: Record<string, unknown>;
|
|
3705
|
-
metaData: Record<string, unknown> | null;
|
|
3706
|
-
createdBy: string | null;
|
|
3707
1315
|
} & {
|
|
3708
1316
|
objects: Record<string, string>;
|
|
3709
1317
|
};
|
|
3710
|
-
meta:
|
|
1318
|
+
meta: object;
|
|
3711
1319
|
}>;
|
|
3712
1320
|
update: _trpc_server.TRPCMutationProcedure<{
|
|
3713
1321
|
input: {
|
|
@@ -3719,21 +1327,21 @@ declare const mediaRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3719
1327
|
};
|
|
3720
1328
|
};
|
|
3721
1329
|
output: {
|
|
3722
|
-
filename: string;
|
|
3723
1330
|
id: string;
|
|
1331
|
+
createdBy: string | null;
|
|
3724
1332
|
updatedBy: string | null;
|
|
3725
1333
|
legacyExtra: Record<string, unknown> | null;
|
|
3726
1334
|
createdAt: string;
|
|
3727
1335
|
updatedAt: string;
|
|
1336
|
+
filename: string;
|
|
3728
1337
|
mime: string;
|
|
3729
|
-
|
|
1338
|
+
metaData: Record<string, unknown> | null;
|
|
3730
1339
|
alt: string | null;
|
|
1340
|
+
size: number;
|
|
3731
1341
|
caption: string | null;
|
|
3732
1342
|
objects: Record<string, unknown>;
|
|
3733
|
-
metaData: Record<string, unknown> | null;
|
|
3734
|
-
createdBy: string | null;
|
|
3735
1343
|
};
|
|
3736
|
-
meta:
|
|
1344
|
+
meta: object;
|
|
3737
1345
|
}>;
|
|
3738
1346
|
remove: _trpc_server.TRPCMutationProcedure<{
|
|
3739
1347
|
input: {
|
|
@@ -3742,13 +1350,13 @@ declare const mediaRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3742
1350
|
output: {
|
|
3743
1351
|
removed: string;
|
|
3744
1352
|
};
|
|
3745
|
-
meta:
|
|
1353
|
+
meta: object;
|
|
3746
1354
|
}>;
|
|
3747
1355
|
}>>;
|
|
3748
1356
|
|
|
3749
1357
|
declare const MediaNotFoundError: {
|
|
3750
1358
|
new (message?: string): {
|
|
3751
|
-
readonly type:
|
|
1359
|
+
readonly type: ErrorType;
|
|
3752
1360
|
readonly trpcCode: TrpcErrorCode;
|
|
3753
1361
|
name: string;
|
|
3754
1362
|
message: string;
|
|
@@ -3764,7 +1372,7 @@ declare const MediaNotFoundError: {
|
|
|
3764
1372
|
};
|
|
3765
1373
|
declare const UnsupportedMimeError: {
|
|
3766
1374
|
new (message?: string): {
|
|
3767
|
-
readonly type:
|
|
1375
|
+
readonly type: ErrorType;
|
|
3768
1376
|
readonly trpcCode: TrpcErrorCode;
|
|
3769
1377
|
name: string;
|
|
3770
1378
|
message: string;
|
|
@@ -3780,7 +1388,7 @@ declare const UnsupportedMimeError: {
|
|
|
3780
1388
|
};
|
|
3781
1389
|
declare const UploadIncompleteError: {
|
|
3782
1390
|
new (message?: string): {
|
|
3783
|
-
readonly type:
|
|
1391
|
+
readonly type: ErrorType;
|
|
3784
1392
|
readonly trpcCode: TrpcErrorCode;
|
|
3785
1393
|
name: string;
|
|
3786
1394
|
message: string;
|
|
@@ -3797,10 +1405,10 @@ declare const UploadIncompleteError: {
|
|
|
3797
1405
|
|
|
3798
1406
|
declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
3799
1407
|
ctx: CoreContext;
|
|
3800
|
-
meta:
|
|
1408
|
+
meta: object;
|
|
3801
1409
|
errorShape: {
|
|
3802
1410
|
data: {
|
|
3803
|
-
type?:
|
|
1411
|
+
type?: ErrorType | undefined;
|
|
3804
1412
|
code: _trpc_server.TRPC_ERROR_CODE_KEY;
|
|
3805
1413
|
httpStatus: number;
|
|
3806
1414
|
path?: string;
|
|
@@ -3814,19 +1422,14 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3814
1422
|
list: _trpc_server.TRPCQueryProcedure<{
|
|
3815
1423
|
input: void;
|
|
3816
1424
|
output: {
|
|
3817
|
-
name: string;
|
|
3818
1425
|
id: string;
|
|
1426
|
+
name: string;
|
|
3819
1427
|
slug: string;
|
|
3820
1428
|
description: string | null;
|
|
3821
|
-
updatedBy: string | null;
|
|
3822
|
-
legacyExtra: Record<string, unknown> | null;
|
|
3823
|
-
createdAt: string;
|
|
3824
|
-
updatedAt: string;
|
|
3825
|
-
createdBy: string | null;
|
|
3826
1429
|
fields: {
|
|
3827
1430
|
name: string;
|
|
3828
1431
|
label: string;
|
|
3829
|
-
type: "number" | "boolean" | "
|
|
1432
|
+
type: "number" | "boolean" | "json" | "date" | "text" | "rich-text" | "media" | "relation" | "select" | "steps";
|
|
3830
1433
|
required: boolean;
|
|
3831
1434
|
hidden: boolean;
|
|
3832
1435
|
options?: string[] | undefined;
|
|
@@ -3835,8 +1438,13 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3835
1438
|
editor: Record<string, unknown> | null;
|
|
3836
1439
|
display: Record<string, unknown> | null;
|
|
3837
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;
|
|
3838
1446
|
}[];
|
|
3839
|
-
meta:
|
|
1447
|
+
meta: object;
|
|
3840
1448
|
}>;
|
|
3841
1449
|
get: _trpc_server.TRPCQueryProcedure<{
|
|
3842
1450
|
input: {
|
|
@@ -3866,7 +1474,7 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3866
1474
|
createdAt: string;
|
|
3867
1475
|
updatedAt: string;
|
|
3868
1476
|
};
|
|
3869
|
-
meta:
|
|
1477
|
+
meta: object;
|
|
3870
1478
|
}>;
|
|
3871
1479
|
create: _trpc_server.TRPCMutationProcedure<{
|
|
3872
1480
|
input: {
|
|
@@ -3874,7 +1482,7 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3874
1482
|
fields: {
|
|
3875
1483
|
name: string;
|
|
3876
1484
|
label: string;
|
|
3877
|
-
type: "number" | "boolean" | "
|
|
1485
|
+
type: "number" | "boolean" | "json" | "date" | "text" | "rich-text" | "media" | "relation" | "select" | "steps";
|
|
3878
1486
|
required?: boolean | undefined;
|
|
3879
1487
|
hidden?: boolean | undefined;
|
|
3880
1488
|
options?: string[] | undefined;
|
|
@@ -3887,19 +1495,14 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3887
1495
|
slug?: string | undefined;
|
|
3888
1496
|
};
|
|
3889
1497
|
output: {
|
|
3890
|
-
name: string;
|
|
3891
1498
|
id: string;
|
|
1499
|
+
name: string;
|
|
3892
1500
|
slug: string;
|
|
3893
1501
|
description: string | null;
|
|
3894
|
-
updatedBy: string | null;
|
|
3895
|
-
legacyExtra: Record<string, unknown> | null;
|
|
3896
|
-
createdAt: string;
|
|
3897
|
-
updatedAt: string;
|
|
3898
|
-
createdBy: string | null;
|
|
3899
1502
|
fields: {
|
|
3900
1503
|
name: string;
|
|
3901
1504
|
label: string;
|
|
3902
|
-
type: "number" | "boolean" | "
|
|
1505
|
+
type: "number" | "boolean" | "json" | "date" | "text" | "rich-text" | "media" | "relation" | "select" | "steps";
|
|
3903
1506
|
required: boolean;
|
|
3904
1507
|
hidden: boolean;
|
|
3905
1508
|
options?: string[] | undefined;
|
|
@@ -3908,8 +1511,13 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3908
1511
|
editor: Record<string, unknown> | null;
|
|
3909
1512
|
display: Record<string, unknown> | null;
|
|
3910
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;
|
|
3911
1519
|
};
|
|
3912
|
-
meta:
|
|
1520
|
+
meta: object;
|
|
3913
1521
|
}>;
|
|
3914
1522
|
update: _trpc_server.TRPCMutationProcedure<{
|
|
3915
1523
|
input: {
|
|
@@ -3924,7 +1532,7 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3924
1532
|
fields?: {
|
|
3925
1533
|
name: string;
|
|
3926
1534
|
label: string;
|
|
3927
|
-
type: "number" | "boolean" | "
|
|
1535
|
+
type: "number" | "boolean" | "json" | "date" | "text" | "rich-text" | "media" | "relation" | "select" | "steps";
|
|
3928
1536
|
required?: boolean | undefined;
|
|
3929
1537
|
hidden?: boolean | undefined;
|
|
3930
1538
|
options?: string[] | undefined;
|
|
@@ -3933,19 +1541,14 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3933
1541
|
};
|
|
3934
1542
|
};
|
|
3935
1543
|
output: {
|
|
3936
|
-
name: string;
|
|
3937
1544
|
id: string;
|
|
1545
|
+
name: string;
|
|
3938
1546
|
slug: string;
|
|
3939
1547
|
description: string | null;
|
|
3940
|
-
updatedBy: string | null;
|
|
3941
|
-
legacyExtra: Record<string, unknown> | null;
|
|
3942
|
-
createdAt: string;
|
|
3943
|
-
updatedAt: string;
|
|
3944
|
-
createdBy: string | null;
|
|
3945
1548
|
fields: {
|
|
3946
1549
|
name: string;
|
|
3947
1550
|
label: string;
|
|
3948
|
-
type: "number" | "boolean" | "
|
|
1551
|
+
type: "number" | "boolean" | "json" | "date" | "text" | "rich-text" | "media" | "relation" | "select" | "steps";
|
|
3949
1552
|
required: boolean;
|
|
3950
1553
|
hidden: boolean;
|
|
3951
1554
|
options?: string[] | undefined;
|
|
@@ -3954,8 +1557,13 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3954
1557
|
editor: Record<string, unknown> | null;
|
|
3955
1558
|
display: Record<string, unknown> | null;
|
|
3956
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;
|
|
3957
1565
|
};
|
|
3958
|
-
meta:
|
|
1566
|
+
meta: object;
|
|
3959
1567
|
}>;
|
|
3960
1568
|
remove: _trpc_server.TRPCMutationProcedure<{
|
|
3961
1569
|
input: {
|
|
@@ -3964,14 +1572,14 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3964
1572
|
output: {
|
|
3965
1573
|
removed: string;
|
|
3966
1574
|
};
|
|
3967
|
-
meta:
|
|
1575
|
+
meta: object;
|
|
3968
1576
|
}>;
|
|
3969
1577
|
entries: _trpc_server.TRPCBuiltRouter<{
|
|
3970
1578
|
ctx: CoreContext;
|
|
3971
|
-
meta:
|
|
1579
|
+
meta: object;
|
|
3972
1580
|
errorShape: {
|
|
3973
1581
|
data: {
|
|
3974
|
-
type?:
|
|
1582
|
+
type?: ErrorType | undefined;
|
|
3975
1583
|
code: _trpc_server.TRPC_ERROR_CODE_KEY;
|
|
3976
1584
|
httpStatus: number;
|
|
3977
1585
|
path?: string;
|
|
@@ -4001,9 +1609,9 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4001
1609
|
createdAt: string;
|
|
4002
1610
|
updatedAt: string;
|
|
4003
1611
|
};
|
|
4004
|
-
meta:
|
|
1612
|
+
meta: object;
|
|
4005
1613
|
}>;
|
|
4006
|
-
/** Across collections:
|
|
1614
|
+
/** Across collections: finds content without knowing where it lives. */
|
|
4007
1615
|
search: _trpc_server.TRPCQueryProcedure<{
|
|
4008
1616
|
input: {
|
|
4009
1617
|
query: string;
|
|
@@ -4027,7 +1635,7 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4027
1635
|
updatedAt: string;
|
|
4028
1636
|
collectionSlug: string;
|
|
4029
1637
|
}[];
|
|
4030
|
-
meta:
|
|
1638
|
+
meta: object;
|
|
4031
1639
|
}>;
|
|
4032
1640
|
/** Narrowing is optional: a caller that ignores it keeps the old behaviour. */
|
|
4033
1641
|
list: _trpc_server.TRPCQueryProcedure<{
|
|
@@ -4054,7 +1662,7 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4054
1662
|
createdAt: string;
|
|
4055
1663
|
updatedAt: string;
|
|
4056
1664
|
}[];
|
|
4057
|
-
meta:
|
|
1665
|
+
meta: object;
|
|
4058
1666
|
}>;
|
|
4059
1667
|
/** The total a listing is a window onto, under the same narrowing. */
|
|
4060
1668
|
count: _trpc_server.TRPCQueryProcedure<{
|
|
@@ -4064,7 +1672,7 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4064
1672
|
search?: string | undefined;
|
|
4065
1673
|
};
|
|
4066
1674
|
output: number;
|
|
4067
|
-
meta:
|
|
1675
|
+
meta: object;
|
|
4068
1676
|
}>;
|
|
4069
1677
|
create: _trpc_server.TRPCMutationProcedure<{
|
|
4070
1678
|
input: {
|
|
@@ -4081,18 +1689,18 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4081
1689
|
id: string;
|
|
4082
1690
|
data: Record<string, unknown>;
|
|
4083
1691
|
slug: string;
|
|
1692
|
+
createdBy: string | null;
|
|
4084
1693
|
updatedBy: string | null;
|
|
4085
1694
|
legacyExtra: Record<string, unknown> | null;
|
|
4086
1695
|
createdAt: string;
|
|
4087
1696
|
updatedAt: string;
|
|
4088
|
-
createdBy: string | null;
|
|
4089
|
-
collectionId: string;
|
|
4090
1697
|
title: string;
|
|
1698
|
+
collectionId: string;
|
|
4091
1699
|
related: string[] | null;
|
|
4092
1700
|
status: "draft" | "waiting" | "ready" | "scheduled" | "published";
|
|
4093
1701
|
publishedAt: string | null;
|
|
4094
1702
|
};
|
|
4095
|
-
meta:
|
|
1703
|
+
meta: object;
|
|
4096
1704
|
}>;
|
|
4097
1705
|
update: _trpc_server.TRPCMutationProcedure<{
|
|
4098
1706
|
input: {
|
|
@@ -4110,18 +1718,18 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4110
1718
|
id: string;
|
|
4111
1719
|
data: Record<string, unknown>;
|
|
4112
1720
|
slug: string;
|
|
1721
|
+
createdBy: string | null;
|
|
4113
1722
|
updatedBy: string | null;
|
|
4114
1723
|
legacyExtra: Record<string, unknown> | null;
|
|
4115
1724
|
createdAt: string;
|
|
4116
1725
|
updatedAt: string;
|
|
4117
|
-
createdBy: string | null;
|
|
4118
|
-
collectionId: string;
|
|
4119
1726
|
title: string;
|
|
1727
|
+
collectionId: string;
|
|
4120
1728
|
related: string[] | null;
|
|
4121
1729
|
status: "draft" | "waiting" | "ready" | "scheduled" | "published";
|
|
4122
1730
|
publishedAt: string | null;
|
|
4123
1731
|
};
|
|
4124
|
-
meta:
|
|
1732
|
+
meta: object;
|
|
4125
1733
|
}>;
|
|
4126
1734
|
remove: _trpc_server.TRPCMutationProcedure<{
|
|
4127
1735
|
input: {
|
|
@@ -4130,14 +1738,14 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4130
1738
|
output: {
|
|
4131
1739
|
removed: string;
|
|
4132
1740
|
};
|
|
4133
|
-
meta:
|
|
1741
|
+
meta: object;
|
|
4134
1742
|
}>;
|
|
4135
1743
|
}>>;
|
|
4136
1744
|
}>>;
|
|
4137
1745
|
|
|
4138
1746
|
declare const CollectionNotFoundError: {
|
|
4139
1747
|
new (message?: string): {
|
|
4140
|
-
readonly type:
|
|
1748
|
+
readonly type: ErrorType;
|
|
4141
1749
|
readonly trpcCode: TrpcErrorCode;
|
|
4142
1750
|
name: string;
|
|
4143
1751
|
message: string;
|
|
@@ -4153,7 +1761,7 @@ declare const CollectionNotFoundError: {
|
|
|
4153
1761
|
};
|
|
4154
1762
|
declare const EntryNotFoundError: {
|
|
4155
1763
|
new (message?: string): {
|
|
4156
|
-
readonly type:
|
|
1764
|
+
readonly type: ErrorType;
|
|
4157
1765
|
readonly trpcCode: TrpcErrorCode;
|
|
4158
1766
|
name: string;
|
|
4159
1767
|
message: string;
|
|
@@ -4169,7 +1777,7 @@ declare const EntryNotFoundError: {
|
|
|
4169
1777
|
};
|
|
4170
1778
|
declare const InvalidEntryDataError: {
|
|
4171
1779
|
new (message?: string): {
|
|
4172
|
-
readonly type:
|
|
1780
|
+
readonly type: ErrorType;
|
|
4173
1781
|
readonly trpcCode: TrpcErrorCode;
|
|
4174
1782
|
name: string;
|
|
4175
1783
|
message: string;
|
|
@@ -4185,7 +1793,7 @@ declare const InvalidEntryDataError: {
|
|
|
4185
1793
|
};
|
|
4186
1794
|
declare const DuplicateSlugError: {
|
|
4187
1795
|
new (message?: string): {
|
|
4188
|
-
readonly type:
|
|
1796
|
+
readonly type: ErrorType;
|
|
4189
1797
|
readonly trpcCode: TrpcErrorCode;
|
|
4190
1798
|
name: string;
|
|
4191
1799
|
message: string;
|
|
@@ -4205,10 +1813,10 @@ declare function createCore({ env }?: {
|
|
|
4205
1813
|
}): Core;
|
|
4206
1814
|
declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
4207
1815
|
ctx: CoreContext;
|
|
4208
|
-
meta:
|
|
1816
|
+
meta: object;
|
|
4209
1817
|
errorShape: {
|
|
4210
1818
|
data: {
|
|
4211
|
-
type?:
|
|
1819
|
+
type?: ErrorType | undefined;
|
|
4212
1820
|
code: _trpc_server.TRPC_ERROR_CODE_KEY;
|
|
4213
1821
|
httpStatus: number;
|
|
4214
1822
|
path?: string;
|
|
@@ -4221,10 +1829,10 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4221
1829
|
}, _trpc_server.TRPCDecorateCreateRouterOptions<{
|
|
4222
1830
|
health: _trpc_server.TRPCBuiltRouter<{
|
|
4223
1831
|
ctx: CoreContext;
|
|
4224
|
-
meta:
|
|
1832
|
+
meta: object;
|
|
4225
1833
|
errorShape: {
|
|
4226
1834
|
data: {
|
|
4227
|
-
type?:
|
|
1835
|
+
type?: ErrorType | undefined;
|
|
4228
1836
|
code: _trpc_server.TRPC_ERROR_CODE_KEY;
|
|
4229
1837
|
httpStatus: number;
|
|
4230
1838
|
path?: string;
|
|
@@ -4238,15 +1846,15 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4238
1846
|
ping: _trpc_server.TRPCQueryProcedure<{
|
|
4239
1847
|
input: void;
|
|
4240
1848
|
output: HealthStatus;
|
|
4241
|
-
meta:
|
|
1849
|
+
meta: object;
|
|
4242
1850
|
}>;
|
|
4243
1851
|
}>>;
|
|
4244
1852
|
auth: _trpc_server.TRPCBuiltRouter<{
|
|
4245
1853
|
ctx: CoreContext;
|
|
4246
|
-
meta:
|
|
1854
|
+
meta: object;
|
|
4247
1855
|
errorShape: {
|
|
4248
1856
|
data: {
|
|
4249
|
-
type?:
|
|
1857
|
+
type?: ErrorType | undefined;
|
|
4250
1858
|
code: _trpc_server.TRPC_ERROR_CODE_KEY;
|
|
4251
1859
|
httpStatus: number;
|
|
4252
1860
|
path?: string;
|
|
@@ -4272,14 +1880,14 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4272
1880
|
role: "admin" | "redacteur";
|
|
4273
1881
|
};
|
|
4274
1882
|
};
|
|
4275
|
-
meta:
|
|
1883
|
+
meta: object;
|
|
4276
1884
|
}>;
|
|
4277
1885
|
logout: _trpc_server.TRPCMutationProcedure<{
|
|
4278
1886
|
input: void;
|
|
4279
1887
|
output: {
|
|
4280
1888
|
loggedOut: boolean;
|
|
4281
1889
|
};
|
|
4282
|
-
meta:
|
|
1890
|
+
meta: object;
|
|
4283
1891
|
}>;
|
|
4284
1892
|
me: _trpc_server.TRPCQueryProcedure<{
|
|
4285
1893
|
input: void;
|
|
@@ -4291,14 +1899,14 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4291
1899
|
role: "admin" | "redacteur";
|
|
4292
1900
|
};
|
|
4293
1901
|
};
|
|
4294
|
-
meta:
|
|
1902
|
+
meta: object;
|
|
4295
1903
|
}>;
|
|
4296
1904
|
sessions: _trpc_server.TRPCBuiltRouter<{
|
|
4297
1905
|
ctx: CoreContext;
|
|
4298
|
-
meta:
|
|
1906
|
+
meta: object;
|
|
4299
1907
|
errorShape: {
|
|
4300
1908
|
data: {
|
|
4301
|
-
type?:
|
|
1909
|
+
type?: ErrorType | undefined;
|
|
4302
1910
|
code: _trpc_server.TRPC_ERROR_CODE_KEY;
|
|
4303
1911
|
httpStatus: number;
|
|
4304
1912
|
path?: string;
|
|
@@ -4319,7 +1927,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4319
1927
|
ip: string | null;
|
|
4320
1928
|
current: boolean;
|
|
4321
1929
|
}[];
|
|
4322
|
-
meta:
|
|
1930
|
+
meta: object;
|
|
4323
1931
|
}>;
|
|
4324
1932
|
revoke: _trpc_server.TRPCMutationProcedure<{
|
|
4325
1933
|
input: {
|
|
@@ -4328,7 +1936,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4328
1936
|
output: {
|
|
4329
1937
|
revoked: string;
|
|
4330
1938
|
};
|
|
4331
|
-
meta:
|
|
1939
|
+
meta: object;
|
|
4332
1940
|
}>;
|
|
4333
1941
|
}>>;
|
|
4334
1942
|
acceptInvitation: _trpc_server.TRPCMutationProcedure<{
|
|
@@ -4345,7 +1953,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4345
1953
|
role: "admin" | "redacteur";
|
|
4346
1954
|
};
|
|
4347
1955
|
};
|
|
4348
|
-
meta:
|
|
1956
|
+
meta: object;
|
|
4349
1957
|
}>;
|
|
4350
1958
|
requestPasswordReset: _trpc_server.TRPCMutationProcedure<{
|
|
4351
1959
|
input: {
|
|
@@ -4354,15 +1962,15 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4354
1962
|
output: {
|
|
4355
1963
|
ok: boolean;
|
|
4356
1964
|
};
|
|
4357
|
-
meta:
|
|
1965
|
+
meta: object;
|
|
4358
1966
|
}>;
|
|
4359
1967
|
}>>;
|
|
4360
1968
|
users: _trpc_server.TRPCBuiltRouter<{
|
|
4361
1969
|
ctx: CoreContext;
|
|
4362
|
-
meta:
|
|
1970
|
+
meta: object;
|
|
4363
1971
|
errorShape: {
|
|
4364
1972
|
data: {
|
|
4365
|
-
type?:
|
|
1973
|
+
type?: ErrorType | undefined;
|
|
4366
1974
|
code: _trpc_server.TRPC_ERROR_CODE_KEY;
|
|
4367
1975
|
httpStatus: number;
|
|
4368
1976
|
path?: string;
|
|
@@ -4381,7 +1989,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4381
1989
|
name: string;
|
|
4382
1990
|
role: "admin" | "redacteur";
|
|
4383
1991
|
}[];
|
|
4384
|
-
meta:
|
|
1992
|
+
meta: object;
|
|
4385
1993
|
}>;
|
|
4386
1994
|
directory: _trpc_server.TRPCQueryProcedure<{
|
|
4387
1995
|
input: void;
|
|
@@ -4389,7 +1997,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4389
1997
|
id: string;
|
|
4390
1998
|
name: string;
|
|
4391
1999
|
}[];
|
|
4392
|
-
meta:
|
|
2000
|
+
meta: object;
|
|
4393
2001
|
}>;
|
|
4394
2002
|
get: _trpc_server.TRPCQueryProcedure<{
|
|
4395
2003
|
input: {
|
|
@@ -4401,7 +2009,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4401
2009
|
name: string;
|
|
4402
2010
|
role: "admin" | "redacteur";
|
|
4403
2011
|
};
|
|
4404
|
-
meta:
|
|
2012
|
+
meta: object;
|
|
4405
2013
|
}>;
|
|
4406
2014
|
invite: _trpc_server.TRPCMutationProcedure<{
|
|
4407
2015
|
input: {
|
|
@@ -4412,7 +2020,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4412
2020
|
token: string;
|
|
4413
2021
|
expiresAt: string;
|
|
4414
2022
|
};
|
|
4415
|
-
meta:
|
|
2023
|
+
meta: object;
|
|
4416
2024
|
}>;
|
|
4417
2025
|
update: _trpc_server.TRPCMutationProcedure<{
|
|
4418
2026
|
input: {
|
|
@@ -4429,7 +2037,21 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4429
2037
|
name: string;
|
|
4430
2038
|
role: "admin" | "redacteur";
|
|
4431
2039
|
};
|
|
4432
|
-
meta:
|
|
2040
|
+
meta: object;
|
|
2041
|
+
}>;
|
|
2042
|
+
updateOwnProfile: _trpc_server.TRPCMutationProcedure<{
|
|
2043
|
+
input: {
|
|
2044
|
+
name: string;
|
|
2045
|
+
};
|
|
2046
|
+
output: {
|
|
2047
|
+
user: {
|
|
2048
|
+
id: string;
|
|
2049
|
+
email: string;
|
|
2050
|
+
name: string;
|
|
2051
|
+
role: "admin" | "redacteur";
|
|
2052
|
+
};
|
|
2053
|
+
};
|
|
2054
|
+
meta: object;
|
|
4433
2055
|
}>;
|
|
4434
2056
|
remove: _trpc_server.TRPCMutationProcedure<{
|
|
4435
2057
|
input: {
|
|
@@ -4438,15 +2060,87 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4438
2060
|
output: {
|
|
4439
2061
|
removed: string;
|
|
4440
2062
|
};
|
|
4441
|
-
meta:
|
|
2063
|
+
meta: object;
|
|
2064
|
+
}>;
|
|
2065
|
+
}>>;
|
|
2066
|
+
invitations: _trpc_server.TRPCBuiltRouter<{
|
|
2067
|
+
ctx: CoreContext;
|
|
2068
|
+
meta: object;
|
|
2069
|
+
errorShape: {
|
|
2070
|
+
data: {
|
|
2071
|
+
type?: ErrorType | undefined;
|
|
2072
|
+
code: _trpc_server.TRPC_ERROR_CODE_KEY;
|
|
2073
|
+
httpStatus: number;
|
|
2074
|
+
path?: string;
|
|
2075
|
+
stack?: string;
|
|
2076
|
+
};
|
|
2077
|
+
message: string;
|
|
2078
|
+
code: _trpc_server.TRPC_ERROR_CODE_NUMBER;
|
|
2079
|
+
};
|
|
2080
|
+
transformer: false;
|
|
2081
|
+
}, _trpc_server.TRPCDecorateCreateRouterOptions<{
|
|
2082
|
+
create: _trpc_server.TRPCMutationProcedure<{
|
|
2083
|
+
input: {
|
|
2084
|
+
email: string;
|
|
2085
|
+
role: "admin" | "redacteur";
|
|
2086
|
+
};
|
|
2087
|
+
output: {
|
|
2088
|
+
token: string;
|
|
2089
|
+
expiresAt: string;
|
|
2090
|
+
};
|
|
2091
|
+
meta: object;
|
|
2092
|
+
}>;
|
|
2093
|
+
list: _trpc_server.TRPCQueryProcedure<{
|
|
2094
|
+
input: void;
|
|
2095
|
+
output: {
|
|
2096
|
+
id: string;
|
|
2097
|
+
email: string;
|
|
2098
|
+
role: "admin" | "redacteur";
|
|
2099
|
+
expiresAt: string;
|
|
2100
|
+
}[];
|
|
2101
|
+
meta: object;
|
|
2102
|
+
}>;
|
|
2103
|
+
revoke: _trpc_server.TRPCMutationProcedure<{
|
|
2104
|
+
input: {
|
|
2105
|
+
id: string;
|
|
2106
|
+
};
|
|
2107
|
+
output: {
|
|
2108
|
+
revoked: string;
|
|
2109
|
+
};
|
|
2110
|
+
meta: object;
|
|
2111
|
+
}>;
|
|
2112
|
+
accept: _trpc_server.TRPCMutationProcedure<{
|
|
2113
|
+
input: {
|
|
2114
|
+
token: string;
|
|
2115
|
+
password: string;
|
|
2116
|
+
name?: string | undefined;
|
|
2117
|
+
};
|
|
2118
|
+
output: {
|
|
2119
|
+
user: {
|
|
2120
|
+
id: string;
|
|
2121
|
+
email: string;
|
|
2122
|
+
name: string;
|
|
2123
|
+
role: "admin" | "redacteur";
|
|
2124
|
+
};
|
|
2125
|
+
};
|
|
2126
|
+
meta: object;
|
|
2127
|
+
}>;
|
|
2128
|
+
requestPasswordReset: _trpc_server.TRPCMutationProcedure<{
|
|
2129
|
+
input: {
|
|
2130
|
+
email: string;
|
|
2131
|
+
};
|
|
2132
|
+
output: {
|
|
2133
|
+
ok: boolean;
|
|
2134
|
+
};
|
|
2135
|
+
meta: object;
|
|
4442
2136
|
}>;
|
|
4443
2137
|
}>>;
|
|
4444
2138
|
apiTokens: _trpc_server.TRPCBuiltRouter<{
|
|
4445
2139
|
ctx: CoreContext;
|
|
4446
|
-
meta:
|
|
2140
|
+
meta: object;
|
|
4447
2141
|
errorShape: {
|
|
4448
2142
|
data: {
|
|
4449
|
-
type?:
|
|
2143
|
+
type?: ErrorType | undefined;
|
|
4450
2144
|
code: _trpc_server.TRPC_ERROR_CODE_KEY;
|
|
4451
2145
|
httpStatus: number;
|
|
4452
2146
|
path?: string;
|
|
@@ -4467,7 +2161,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4467
2161
|
tokenHash: string;
|
|
4468
2162
|
lastUsedAt: string | null;
|
|
4469
2163
|
}, "id" | "name" | "createdAt" | "revokedAt" | "lastUsedAt">[];
|
|
4470
|
-
meta:
|
|
2164
|
+
meta: object;
|
|
4471
2165
|
}>;
|
|
4472
2166
|
create: _trpc_server.TRPCMutationProcedure<{
|
|
4473
2167
|
input: {
|
|
@@ -4478,7 +2172,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4478
2172
|
id: string;
|
|
4479
2173
|
name: string;
|
|
4480
2174
|
};
|
|
4481
|
-
meta:
|
|
2175
|
+
meta: object;
|
|
4482
2176
|
}>;
|
|
4483
2177
|
revoke: _trpc_server.TRPCMutationProcedure<{
|
|
4484
2178
|
input: {
|
|
@@ -4487,15 +2181,15 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4487
2181
|
output: {
|
|
4488
2182
|
revoked: string;
|
|
4489
2183
|
};
|
|
4490
|
-
meta:
|
|
2184
|
+
meta: object;
|
|
4491
2185
|
}>;
|
|
4492
2186
|
}>>;
|
|
4493
2187
|
organization: _trpc_server.TRPCBuiltRouter<{
|
|
4494
2188
|
ctx: CoreContext;
|
|
4495
|
-
meta:
|
|
2189
|
+
meta: object;
|
|
4496
2190
|
errorShape: {
|
|
4497
2191
|
data: {
|
|
4498
|
-
type?:
|
|
2192
|
+
type?: ErrorType | undefined;
|
|
4499
2193
|
code: _trpc_server.TRPC_ERROR_CODE_KEY;
|
|
4500
2194
|
httpStatus: number;
|
|
4501
2195
|
path?: string;
|
|
@@ -4526,7 +2220,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4526
2220
|
updatedBy: string | null;
|
|
4527
2221
|
legacyExtra: Record<string, unknown> | null;
|
|
4528
2222
|
} | null;
|
|
4529
|
-
meta:
|
|
2223
|
+
meta: object;
|
|
4530
2224
|
}>;
|
|
4531
2225
|
init: _trpc_server.TRPCMutationProcedure<{
|
|
4532
2226
|
input: {
|
|
@@ -4560,7 +2254,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4560
2254
|
updatedBy: string | null;
|
|
4561
2255
|
legacyExtra: Record<string, unknown> | null;
|
|
4562
2256
|
};
|
|
4563
|
-
meta:
|
|
2257
|
+
meta: object;
|
|
4564
2258
|
}>;
|
|
4565
2259
|
update: _trpc_server.TRPCMutationProcedure<{
|
|
4566
2260
|
input: {
|
|
@@ -4594,22 +2288,22 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4594
2288
|
updatedBy: string | null;
|
|
4595
2289
|
legacyExtra: Record<string, unknown> | null;
|
|
4596
2290
|
};
|
|
4597
|
-
meta:
|
|
2291
|
+
meta: object;
|
|
4598
2292
|
}>;
|
|
4599
2293
|
deploy: _trpc_server.TRPCMutationProcedure<{
|
|
4600
2294
|
input: void;
|
|
4601
2295
|
output: {
|
|
4602
2296
|
status: number;
|
|
4603
2297
|
};
|
|
4604
|
-
meta:
|
|
2298
|
+
meta: object;
|
|
4605
2299
|
}>;
|
|
4606
2300
|
}>>;
|
|
4607
2301
|
media: _trpc_server.TRPCBuiltRouter<{
|
|
4608
2302
|
ctx: CoreContext;
|
|
4609
|
-
meta:
|
|
2303
|
+
meta: object;
|
|
4610
2304
|
errorShape: {
|
|
4611
2305
|
data: {
|
|
4612
|
-
type?:
|
|
2306
|
+
type?: ErrorType | undefined;
|
|
4613
2307
|
code: _trpc_server.TRPC_ERROR_CODE_KEY;
|
|
4614
2308
|
httpStatus: number;
|
|
4615
2309
|
path?: string;
|
|
@@ -4630,7 +2324,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4630
2324
|
key: string;
|
|
4631
2325
|
url: string;
|
|
4632
2326
|
};
|
|
4633
|
-
meta:
|
|
2327
|
+
meta: object;
|
|
4634
2328
|
}>;
|
|
4635
2329
|
finalize: _trpc_server.TRPCMutationProcedure<{
|
|
4636
2330
|
input: {
|
|
@@ -4655,7 +2349,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4655
2349
|
objects: Record<string, unknown>;
|
|
4656
2350
|
createdBy: string | null;
|
|
4657
2351
|
};
|
|
4658
|
-
meta:
|
|
2352
|
+
meta: object;
|
|
4659
2353
|
}>;
|
|
4660
2354
|
list: _trpc_server.TRPCQueryProcedure<{
|
|
4661
2355
|
input: void;
|
|
@@ -4676,7 +2370,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4676
2370
|
} & {
|
|
4677
2371
|
objects: Record<string, string>;
|
|
4678
2372
|
})[];
|
|
4679
|
-
meta:
|
|
2373
|
+
meta: object;
|
|
4680
2374
|
}>;
|
|
4681
2375
|
get: _trpc_server.TRPCQueryProcedure<{
|
|
4682
2376
|
input: {
|
|
@@ -4699,7 +2393,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4699
2393
|
} & {
|
|
4700
2394
|
objects: Record<string, string>;
|
|
4701
2395
|
};
|
|
4702
|
-
meta:
|
|
2396
|
+
meta: object;
|
|
4703
2397
|
}>;
|
|
4704
2398
|
update: _trpc_server.TRPCMutationProcedure<{
|
|
4705
2399
|
input: {
|
|
@@ -4725,7 +2419,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4725
2419
|
objects: Record<string, unknown>;
|
|
4726
2420
|
createdBy: string | null;
|
|
4727
2421
|
};
|
|
4728
|
-
meta:
|
|
2422
|
+
meta: object;
|
|
4729
2423
|
}>;
|
|
4730
2424
|
remove: _trpc_server.TRPCMutationProcedure<{
|
|
4731
2425
|
input: {
|
|
@@ -4734,15 +2428,15 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4734
2428
|
output: {
|
|
4735
2429
|
removed: string;
|
|
4736
2430
|
};
|
|
4737
|
-
meta:
|
|
2431
|
+
meta: object;
|
|
4738
2432
|
}>;
|
|
4739
2433
|
}>>;
|
|
4740
2434
|
collections: _trpc_server.TRPCBuiltRouter<{
|
|
4741
2435
|
ctx: CoreContext;
|
|
4742
|
-
meta:
|
|
2436
|
+
meta: object;
|
|
4743
2437
|
errorShape: {
|
|
4744
2438
|
data: {
|
|
4745
|
-
type?:
|
|
2439
|
+
type?: ErrorType | undefined;
|
|
4746
2440
|
code: _trpc_server.TRPC_ERROR_CODE_KEY;
|
|
4747
2441
|
httpStatus: number;
|
|
4748
2442
|
path?: string;
|
|
@@ -4778,7 +2472,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4778
2472
|
display: Record<string, unknown> | null;
|
|
4779
2473
|
headings: Record<string, unknown> | null;
|
|
4780
2474
|
}[];
|
|
4781
|
-
meta:
|
|
2475
|
+
meta: object;
|
|
4782
2476
|
}>;
|
|
4783
2477
|
get: _trpc_server.TRPCQueryProcedure<{
|
|
4784
2478
|
input: {
|
|
@@ -4808,7 +2502,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4808
2502
|
createdAt: string;
|
|
4809
2503
|
updatedAt: string;
|
|
4810
2504
|
};
|
|
4811
|
-
meta:
|
|
2505
|
+
meta: object;
|
|
4812
2506
|
}>;
|
|
4813
2507
|
create: _trpc_server.TRPCMutationProcedure<{
|
|
4814
2508
|
input: {
|
|
@@ -4851,7 +2545,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4851
2545
|
display: Record<string, unknown> | null;
|
|
4852
2546
|
headings: Record<string, unknown> | null;
|
|
4853
2547
|
};
|
|
4854
|
-
meta:
|
|
2548
|
+
meta: object;
|
|
4855
2549
|
}>;
|
|
4856
2550
|
update: _trpc_server.TRPCMutationProcedure<{
|
|
4857
2551
|
input: {
|
|
@@ -4897,7 +2591,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4897
2591
|
display: Record<string, unknown> | null;
|
|
4898
2592
|
headings: Record<string, unknown> | null;
|
|
4899
2593
|
};
|
|
4900
|
-
meta:
|
|
2594
|
+
meta: object;
|
|
4901
2595
|
}>;
|
|
4902
2596
|
remove: _trpc_server.TRPCMutationProcedure<{
|
|
4903
2597
|
input: {
|
|
@@ -4906,14 +2600,14 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4906
2600
|
output: {
|
|
4907
2601
|
removed: string;
|
|
4908
2602
|
};
|
|
4909
|
-
meta:
|
|
2603
|
+
meta: object;
|
|
4910
2604
|
}>;
|
|
4911
2605
|
entries: _trpc_server.TRPCBuiltRouter<{
|
|
4912
2606
|
ctx: CoreContext;
|
|
4913
|
-
meta:
|
|
2607
|
+
meta: object;
|
|
4914
2608
|
errorShape: {
|
|
4915
2609
|
data: {
|
|
4916
|
-
type?:
|
|
2610
|
+
type?: ErrorType | undefined;
|
|
4917
2611
|
code: _trpc_server.TRPC_ERROR_CODE_KEY;
|
|
4918
2612
|
httpStatus: number;
|
|
4919
2613
|
path?: string;
|
|
@@ -4943,7 +2637,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4943
2637
|
createdAt: string;
|
|
4944
2638
|
updatedAt: string;
|
|
4945
2639
|
};
|
|
4946
|
-
meta:
|
|
2640
|
+
meta: object;
|
|
4947
2641
|
}>;
|
|
4948
2642
|
search: _trpc_server.TRPCQueryProcedure<{
|
|
4949
2643
|
input: {
|
|
@@ -4968,7 +2662,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4968
2662
|
updatedAt: string;
|
|
4969
2663
|
collectionSlug: string;
|
|
4970
2664
|
}[];
|
|
4971
|
-
meta:
|
|
2665
|
+
meta: object;
|
|
4972
2666
|
}>;
|
|
4973
2667
|
list: _trpc_server.TRPCQueryProcedure<{
|
|
4974
2668
|
input: {
|
|
@@ -4994,7 +2688,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4994
2688
|
createdAt: string;
|
|
4995
2689
|
updatedAt: string;
|
|
4996
2690
|
}[];
|
|
4997
|
-
meta:
|
|
2691
|
+
meta: object;
|
|
4998
2692
|
}>;
|
|
4999
2693
|
count: _trpc_server.TRPCQueryProcedure<{
|
|
5000
2694
|
input: {
|
|
@@ -5003,7 +2697,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
5003
2697
|
search?: string | undefined;
|
|
5004
2698
|
};
|
|
5005
2699
|
output: number;
|
|
5006
|
-
meta:
|
|
2700
|
+
meta: object;
|
|
5007
2701
|
}>;
|
|
5008
2702
|
create: _trpc_server.TRPCMutationProcedure<{
|
|
5009
2703
|
input: {
|
|
@@ -5024,14 +2718,14 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
5024
2718
|
slug: string;
|
|
5025
2719
|
updatedBy: string | null;
|
|
5026
2720
|
legacyExtra: Record<string, unknown> | null;
|
|
5027
|
-
createdBy: string | null;
|
|
5028
2721
|
title: string;
|
|
2722
|
+
createdBy: string | null;
|
|
5029
2723
|
collectionId: string;
|
|
5030
2724
|
related: string[] | null;
|
|
5031
2725
|
status: "draft" | "waiting" | "ready" | "scheduled" | "published";
|
|
5032
2726
|
publishedAt: string | null;
|
|
5033
2727
|
};
|
|
5034
|
-
meta:
|
|
2728
|
+
meta: object;
|
|
5035
2729
|
}>;
|
|
5036
2730
|
update: _trpc_server.TRPCMutationProcedure<{
|
|
5037
2731
|
input: {
|
|
@@ -5053,14 +2747,14 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
5053
2747
|
slug: string;
|
|
5054
2748
|
updatedBy: string | null;
|
|
5055
2749
|
legacyExtra: Record<string, unknown> | null;
|
|
5056
|
-
createdBy: string | null;
|
|
5057
2750
|
title: string;
|
|
2751
|
+
createdBy: string | null;
|
|
5058
2752
|
collectionId: string;
|
|
5059
2753
|
related: string[] | null;
|
|
5060
2754
|
status: "draft" | "waiting" | "ready" | "scheduled" | "published";
|
|
5061
2755
|
publishedAt: string | null;
|
|
5062
2756
|
};
|
|
5063
|
-
meta:
|
|
2757
|
+
meta: object;
|
|
5064
2758
|
}>;
|
|
5065
2759
|
remove: _trpc_server.TRPCMutationProcedure<{
|
|
5066
2760
|
input: {
|
|
@@ -5069,12 +2763,12 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
5069
2763
|
output: {
|
|
5070
2764
|
removed: string;
|
|
5071
2765
|
};
|
|
5072
|
-
meta:
|
|
2766
|
+
meta: object;
|
|
5073
2767
|
}>;
|
|
5074
2768
|
}>>;
|
|
5075
2769
|
}>>;
|
|
5076
2770
|
}>>;
|
|
5077
2771
|
type AppRouter = typeof appRouter;
|
|
5078
2772
|
|
|
5079
|
-
export { ALLOWED_MIME,
|
|
5080
|
-
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 };
|