@open-commune/core 0.2.0 → 0.2.2
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 +30 -1
- package/dist/domains/collections/utils.d.ts +30 -1
- package/dist/domains/collections/utils.mjs +1 -1
- package/dist/index.d.mts +916 -134
- package/dist/index.d.ts +916 -134
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import * as drizzle_zod from 'drizzle-zod';
|
|
1
2
|
import * as _trpc_server from '@trpc/server';
|
|
3
|
+
import { AnyRouter } from '@trpc/server';
|
|
2
4
|
import { z } from 'zod';
|
|
3
5
|
import * as drizzle_orm_bun_sqlite from 'drizzle-orm/bun-sqlite';
|
|
4
6
|
import { Database } from 'bun:sqlite';
|
|
@@ -1089,7 +1091,7 @@ declare const media: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
1089
1091
|
}>;
|
|
1090
1092
|
type Media = typeof media.$inferSelect;
|
|
1091
1093
|
type NewMedia = typeof media.$inferInsert;
|
|
1092
|
-
/** Collection definitions — the primary content model of
|
|
1094
|
+
/** Collection definitions — the primary content model of Open Commune. */
|
|
1093
1095
|
declare const collectionDefinitions: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
1094
1096
|
name: "collection_definitions";
|
|
1095
1097
|
schema: undefined;
|
|
@@ -2107,10 +2109,40 @@ declare class EntryRepository {
|
|
|
2107
2109
|
private readonly db;
|
|
2108
2110
|
constructor(db: StoreDb);
|
|
2109
2111
|
list(collectionId: string): Promise<Entry[]>;
|
|
2110
|
-
/**
|
|
2112
|
+
/**
|
|
2113
|
+
* What an admin listing keeps. Narrowing happens in SQL: the browser is never
|
|
2114
|
+
* handed rows in order to discard them, and a collection of several hundred
|
|
2115
|
+
* entries would not fit in it anyway.
|
|
2116
|
+
*/
|
|
2117
|
+
private narrowing;
|
|
2118
|
+
/**
|
|
2119
|
+
* Text match on the title and the data. One LIKE is enough at a commune's
|
|
2120
|
+
* scale, and it leaves the title index usable.
|
|
2121
|
+
*/
|
|
2122
|
+
private matching;
|
|
2123
|
+
/**
|
|
2124
|
+
* Text search across collections, most recently updated first — how an agent
|
|
2125
|
+
* finds content without knowing where it lives.
|
|
2126
|
+
*/
|
|
2127
|
+
search(options: {
|
|
2128
|
+
search: string;
|
|
2129
|
+
collectionIds?: string[];
|
|
2130
|
+
status?: Entry['status'][];
|
|
2131
|
+
limit: number;
|
|
2132
|
+
}): Promise<Entry[]>;
|
|
2133
|
+
/** The total a paginated listing is a window onto. Counted in SQL. */
|
|
2134
|
+
countMatching(options: {
|
|
2135
|
+
collectionId: string;
|
|
2136
|
+
status?: Entry['status'][];
|
|
2137
|
+
search?: string;
|
|
2138
|
+
}): Promise<number>;
|
|
2139
|
+
/** Admin listing: most recently updated first by default, paginated. */
|
|
2111
2140
|
listPaginated(collectionId: string, options: {
|
|
2112
2141
|
skip: number;
|
|
2113
2142
|
limit: number;
|
|
2143
|
+
status?: Entry['status'][];
|
|
2144
|
+
search?: string;
|
|
2145
|
+
order?: 'recent' | 'oldest' | 'title';
|
|
2114
2146
|
}): Promise<Entry[]>;
|
|
2115
2147
|
listPublished(collectionId: string): Promise<Entry[]>;
|
|
2116
2148
|
findBySlug(collectionId: string, slug: string): Promise<Entry | undefined>;
|
|
@@ -2184,6 +2216,292 @@ declare const definitionUpdateDto: z.ZodObject<{
|
|
|
2184
2216
|
out: {};
|
|
2185
2217
|
in: {};
|
|
2186
2218
|
}>;
|
|
2219
|
+
declare const definitionDto: drizzle_zod.BuildSchema<"select", {
|
|
2220
|
+
id: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2221
|
+
name: "id";
|
|
2222
|
+
tableName: "collection_definitions";
|
|
2223
|
+
dataType: "string";
|
|
2224
|
+
columnType: "SQLiteText";
|
|
2225
|
+
data: string;
|
|
2226
|
+
driverParam: string;
|
|
2227
|
+
notNull: true;
|
|
2228
|
+
hasDefault: true;
|
|
2229
|
+
isPrimaryKey: true;
|
|
2230
|
+
isAutoincrement: false;
|
|
2231
|
+
hasRuntimeDefault: true;
|
|
2232
|
+
enumValues: [string, ...string[]];
|
|
2233
|
+
baseColumn: never;
|
|
2234
|
+
identity: undefined;
|
|
2235
|
+
generated: undefined;
|
|
2236
|
+
}, {}, {
|
|
2237
|
+
length: number | undefined;
|
|
2238
|
+
}>;
|
|
2239
|
+
name: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2240
|
+
name: "name";
|
|
2241
|
+
tableName: "collection_definitions";
|
|
2242
|
+
dataType: "string";
|
|
2243
|
+
columnType: "SQLiteText";
|
|
2244
|
+
data: string;
|
|
2245
|
+
driverParam: string;
|
|
2246
|
+
notNull: true;
|
|
2247
|
+
hasDefault: false;
|
|
2248
|
+
isPrimaryKey: false;
|
|
2249
|
+
isAutoincrement: false;
|
|
2250
|
+
hasRuntimeDefault: false;
|
|
2251
|
+
enumValues: [string, ...string[]];
|
|
2252
|
+
baseColumn: never;
|
|
2253
|
+
identity: undefined;
|
|
2254
|
+
generated: undefined;
|
|
2255
|
+
}, {}, {
|
|
2256
|
+
length: number | undefined;
|
|
2257
|
+
}>;
|
|
2258
|
+
slug: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2259
|
+
name: "slug";
|
|
2260
|
+
tableName: "collection_definitions";
|
|
2261
|
+
dataType: "string";
|
|
2262
|
+
columnType: "SQLiteText";
|
|
2263
|
+
data: string;
|
|
2264
|
+
driverParam: string;
|
|
2265
|
+
notNull: true;
|
|
2266
|
+
hasDefault: false;
|
|
2267
|
+
isPrimaryKey: false;
|
|
2268
|
+
isAutoincrement: false;
|
|
2269
|
+
hasRuntimeDefault: false;
|
|
2270
|
+
enumValues: [string, ...string[]];
|
|
2271
|
+
baseColumn: never;
|
|
2272
|
+
identity: undefined;
|
|
2273
|
+
generated: undefined;
|
|
2274
|
+
}, {}, {
|
|
2275
|
+
length: number | undefined;
|
|
2276
|
+
}>;
|
|
2277
|
+
description: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2278
|
+
name: "description";
|
|
2279
|
+
tableName: "collection_definitions";
|
|
2280
|
+
dataType: "string";
|
|
2281
|
+
columnType: "SQLiteText";
|
|
2282
|
+
data: string;
|
|
2283
|
+
driverParam: string;
|
|
2284
|
+
notNull: false;
|
|
2285
|
+
hasDefault: false;
|
|
2286
|
+
isPrimaryKey: false;
|
|
2287
|
+
isAutoincrement: false;
|
|
2288
|
+
hasRuntimeDefault: false;
|
|
2289
|
+
enumValues: [string, ...string[]];
|
|
2290
|
+
baseColumn: never;
|
|
2291
|
+
identity: undefined;
|
|
2292
|
+
generated: undefined;
|
|
2293
|
+
}, {}, {
|
|
2294
|
+
length: number | undefined;
|
|
2295
|
+
}>;
|
|
2296
|
+
fields: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2297
|
+
name: "fields";
|
|
2298
|
+
tableName: "collection_definitions";
|
|
2299
|
+
dataType: "json";
|
|
2300
|
+
columnType: "SQLiteTextJson";
|
|
2301
|
+
data: {
|
|
2302
|
+
name: string;
|
|
2303
|
+
label: string;
|
|
2304
|
+
type: "number" | "boolean" | "text" | "rich-text" | "date" | "media" | "relation" | "select" | "steps" | "json";
|
|
2305
|
+
required: boolean;
|
|
2306
|
+
hidden: boolean;
|
|
2307
|
+
options?: string[] | undefined;
|
|
2308
|
+
target?: string | undefined;
|
|
2309
|
+
}[];
|
|
2310
|
+
driverParam: string;
|
|
2311
|
+
notNull: true;
|
|
2312
|
+
hasDefault: false;
|
|
2313
|
+
isPrimaryKey: false;
|
|
2314
|
+
isAutoincrement: false;
|
|
2315
|
+
hasRuntimeDefault: false;
|
|
2316
|
+
enumValues: undefined;
|
|
2317
|
+
baseColumn: never;
|
|
2318
|
+
identity: undefined;
|
|
2319
|
+
generated: undefined;
|
|
2320
|
+
}, {}, {
|
|
2321
|
+
$type: {
|
|
2322
|
+
name: string;
|
|
2323
|
+
label: string;
|
|
2324
|
+
type: "number" | "boolean" | "text" | "rich-text" | "date" | "media" | "relation" | "select" | "steps" | "json";
|
|
2325
|
+
required: boolean;
|
|
2326
|
+
hidden: boolean;
|
|
2327
|
+
options?: string[] | undefined;
|
|
2328
|
+
target?: string | undefined;
|
|
2329
|
+
}[];
|
|
2330
|
+
}>;
|
|
2331
|
+
editor: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2332
|
+
name: "editor";
|
|
2333
|
+
tableName: "collection_definitions";
|
|
2334
|
+
dataType: "json";
|
|
2335
|
+
columnType: "SQLiteTextJson";
|
|
2336
|
+
data: Record<string, unknown>;
|
|
2337
|
+
driverParam: string;
|
|
2338
|
+
notNull: false;
|
|
2339
|
+
hasDefault: false;
|
|
2340
|
+
isPrimaryKey: false;
|
|
2341
|
+
isAutoincrement: false;
|
|
2342
|
+
hasRuntimeDefault: false;
|
|
2343
|
+
enumValues: undefined;
|
|
2344
|
+
baseColumn: never;
|
|
2345
|
+
identity: undefined;
|
|
2346
|
+
generated: undefined;
|
|
2347
|
+
}, {}, {
|
|
2348
|
+
$type: Record<string, unknown>;
|
|
2349
|
+
}>;
|
|
2350
|
+
display: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2351
|
+
name: "display";
|
|
2352
|
+
tableName: "collection_definitions";
|
|
2353
|
+
dataType: "json";
|
|
2354
|
+
columnType: "SQLiteTextJson";
|
|
2355
|
+
data: Record<string, unknown>;
|
|
2356
|
+
driverParam: string;
|
|
2357
|
+
notNull: false;
|
|
2358
|
+
hasDefault: false;
|
|
2359
|
+
isPrimaryKey: false;
|
|
2360
|
+
isAutoincrement: false;
|
|
2361
|
+
hasRuntimeDefault: false;
|
|
2362
|
+
enumValues: undefined;
|
|
2363
|
+
baseColumn: never;
|
|
2364
|
+
identity: undefined;
|
|
2365
|
+
generated: undefined;
|
|
2366
|
+
}, {}, {
|
|
2367
|
+
$type: Record<string, unknown>;
|
|
2368
|
+
}>;
|
|
2369
|
+
headings: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2370
|
+
name: "headings";
|
|
2371
|
+
tableName: "collection_definitions";
|
|
2372
|
+
dataType: "json";
|
|
2373
|
+
columnType: "SQLiteTextJson";
|
|
2374
|
+
data: Record<string, unknown>;
|
|
2375
|
+
driverParam: string;
|
|
2376
|
+
notNull: false;
|
|
2377
|
+
hasDefault: false;
|
|
2378
|
+
isPrimaryKey: false;
|
|
2379
|
+
isAutoincrement: false;
|
|
2380
|
+
hasRuntimeDefault: false;
|
|
2381
|
+
enumValues: undefined;
|
|
2382
|
+
baseColumn: never;
|
|
2383
|
+
identity: undefined;
|
|
2384
|
+
generated: undefined;
|
|
2385
|
+
}, {}, {
|
|
2386
|
+
$type: Record<string, unknown>;
|
|
2387
|
+
}>;
|
|
2388
|
+
createdBy: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2389
|
+
name: "created_by";
|
|
2390
|
+
tableName: "collection_definitions";
|
|
2391
|
+
dataType: "string";
|
|
2392
|
+
columnType: "SQLiteText";
|
|
2393
|
+
data: string;
|
|
2394
|
+
driverParam: string;
|
|
2395
|
+
notNull: false;
|
|
2396
|
+
hasDefault: false;
|
|
2397
|
+
isPrimaryKey: false;
|
|
2398
|
+
isAutoincrement: false;
|
|
2399
|
+
hasRuntimeDefault: false;
|
|
2400
|
+
enumValues: [string, ...string[]];
|
|
2401
|
+
baseColumn: never;
|
|
2402
|
+
identity: undefined;
|
|
2403
|
+
generated: undefined;
|
|
2404
|
+
}, {}, {
|
|
2405
|
+
length: number | undefined;
|
|
2406
|
+
}>;
|
|
2407
|
+
updatedBy: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2408
|
+
name: "updated_by";
|
|
2409
|
+
tableName: "collection_definitions";
|
|
2410
|
+
dataType: "string";
|
|
2411
|
+
columnType: "SQLiteText";
|
|
2412
|
+
data: string;
|
|
2413
|
+
driverParam: string;
|
|
2414
|
+
notNull: false;
|
|
2415
|
+
hasDefault: false;
|
|
2416
|
+
isPrimaryKey: false;
|
|
2417
|
+
isAutoincrement: false;
|
|
2418
|
+
hasRuntimeDefault: false;
|
|
2419
|
+
enumValues: [string, ...string[]];
|
|
2420
|
+
baseColumn: never;
|
|
2421
|
+
identity: undefined;
|
|
2422
|
+
generated: undefined;
|
|
2423
|
+
}, {}, {
|
|
2424
|
+
length: number | undefined;
|
|
2425
|
+
}>;
|
|
2426
|
+
legacyExtra: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2427
|
+
name: "legacy_extra";
|
|
2428
|
+
tableName: "collection_definitions";
|
|
2429
|
+
dataType: "json";
|
|
2430
|
+
columnType: "SQLiteTextJson";
|
|
2431
|
+
data: Record<string, unknown> | null;
|
|
2432
|
+
driverParam: string;
|
|
2433
|
+
notNull: false;
|
|
2434
|
+
hasDefault: false;
|
|
2435
|
+
isPrimaryKey: false;
|
|
2436
|
+
isAutoincrement: false;
|
|
2437
|
+
hasRuntimeDefault: false;
|
|
2438
|
+
enumValues: undefined;
|
|
2439
|
+
baseColumn: never;
|
|
2440
|
+
identity: undefined;
|
|
2441
|
+
generated: undefined;
|
|
2442
|
+
}, {}, {
|
|
2443
|
+
$type: Record<string, unknown> | null;
|
|
2444
|
+
}>;
|
|
2445
|
+
createdAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2446
|
+
name: "created_at";
|
|
2447
|
+
tableName: "collection_definitions";
|
|
2448
|
+
dataType: "string";
|
|
2449
|
+
columnType: "SQLiteText";
|
|
2450
|
+
data: string;
|
|
2451
|
+
driverParam: string;
|
|
2452
|
+
notNull: true;
|
|
2453
|
+
hasDefault: true;
|
|
2454
|
+
isPrimaryKey: false;
|
|
2455
|
+
isAutoincrement: false;
|
|
2456
|
+
hasRuntimeDefault: true;
|
|
2457
|
+
enumValues: [string, ...string[]];
|
|
2458
|
+
baseColumn: never;
|
|
2459
|
+
identity: undefined;
|
|
2460
|
+
generated: undefined;
|
|
2461
|
+
}, {}, {
|
|
2462
|
+
length: number | undefined;
|
|
2463
|
+
}>;
|
|
2464
|
+
updatedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2465
|
+
name: "updated_at";
|
|
2466
|
+
tableName: "collection_definitions";
|
|
2467
|
+
dataType: "string";
|
|
2468
|
+
columnType: "SQLiteText";
|
|
2469
|
+
data: string;
|
|
2470
|
+
driverParam: string;
|
|
2471
|
+
notNull: true;
|
|
2472
|
+
hasDefault: true;
|
|
2473
|
+
isPrimaryKey: false;
|
|
2474
|
+
isAutoincrement: false;
|
|
2475
|
+
hasRuntimeDefault: true;
|
|
2476
|
+
enumValues: [string, ...string[]];
|
|
2477
|
+
baseColumn: never;
|
|
2478
|
+
identity: undefined;
|
|
2479
|
+
generated: undefined;
|
|
2480
|
+
}, {}, {
|
|
2481
|
+
length: number | undefined;
|
|
2482
|
+
}>;
|
|
2483
|
+
}, {
|
|
2484
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
2485
|
+
name: z.ZodString;
|
|
2486
|
+
label: z.ZodString;
|
|
2487
|
+
type: z.ZodUnion<[z.ZodEnum<{
|
|
2488
|
+
number: "number";
|
|
2489
|
+
boolean: "boolean";
|
|
2490
|
+
text: "text";
|
|
2491
|
+
"rich-text": "rich-text";
|
|
2492
|
+
date: "date";
|
|
2493
|
+
media: "media";
|
|
2494
|
+
relation: "relation";
|
|
2495
|
+
select: "select";
|
|
2496
|
+
steps: "steps";
|
|
2497
|
+
json: "json";
|
|
2498
|
+
}>, z.ZodString]>;
|
|
2499
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
2500
|
+
hidden: z.ZodDefault<z.ZodBoolean>;
|
|
2501
|
+
options: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2502
|
+
target: z.ZodOptional<z.ZodString>;
|
|
2503
|
+
}, z.core.$loose>>;
|
|
2504
|
+
}, undefined>;
|
|
2187
2505
|
type DefinitionCreateDto = z.infer<typeof definitionCreateDto>;
|
|
2188
2506
|
type DefinitionUpdateDto = z.infer<typeof definitionUpdateDto>;
|
|
2189
2507
|
|
|
@@ -2220,8 +2538,302 @@ declare const entryUpdateDto: z.ZodObject<{
|
|
|
2220
2538
|
out: {};
|
|
2221
2539
|
in: {};
|
|
2222
2540
|
}>;
|
|
2541
|
+
declare const entryDto: drizzle_zod.BuildSchema<"select", {
|
|
2542
|
+
id: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2543
|
+
name: "id";
|
|
2544
|
+
tableName: "entries";
|
|
2545
|
+
dataType: "string";
|
|
2546
|
+
columnType: "SQLiteText";
|
|
2547
|
+
data: string;
|
|
2548
|
+
driverParam: string;
|
|
2549
|
+
notNull: true;
|
|
2550
|
+
hasDefault: true;
|
|
2551
|
+
isPrimaryKey: true;
|
|
2552
|
+
isAutoincrement: false;
|
|
2553
|
+
hasRuntimeDefault: true;
|
|
2554
|
+
enumValues: [string, ...string[]];
|
|
2555
|
+
baseColumn: never;
|
|
2556
|
+
identity: undefined;
|
|
2557
|
+
generated: undefined;
|
|
2558
|
+
}, {}, {
|
|
2559
|
+
length: number | undefined;
|
|
2560
|
+
}>;
|
|
2561
|
+
collectionId: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2562
|
+
name: "collection_id";
|
|
2563
|
+
tableName: "entries";
|
|
2564
|
+
dataType: "string";
|
|
2565
|
+
columnType: "SQLiteText";
|
|
2566
|
+
data: string;
|
|
2567
|
+
driverParam: string;
|
|
2568
|
+
notNull: true;
|
|
2569
|
+
hasDefault: false;
|
|
2570
|
+
isPrimaryKey: false;
|
|
2571
|
+
isAutoincrement: false;
|
|
2572
|
+
hasRuntimeDefault: false;
|
|
2573
|
+
enumValues: [string, ...string[]];
|
|
2574
|
+
baseColumn: never;
|
|
2575
|
+
identity: undefined;
|
|
2576
|
+
generated: undefined;
|
|
2577
|
+
}, {}, {
|
|
2578
|
+
length: number | undefined;
|
|
2579
|
+
}>;
|
|
2580
|
+
title: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2581
|
+
name: "title";
|
|
2582
|
+
tableName: "entries";
|
|
2583
|
+
dataType: "string";
|
|
2584
|
+
columnType: "SQLiteText";
|
|
2585
|
+
data: string;
|
|
2586
|
+
driverParam: string;
|
|
2587
|
+
notNull: true;
|
|
2588
|
+
hasDefault: false;
|
|
2589
|
+
isPrimaryKey: false;
|
|
2590
|
+
isAutoincrement: false;
|
|
2591
|
+
hasRuntimeDefault: false;
|
|
2592
|
+
enumValues: [string, ...string[]];
|
|
2593
|
+
baseColumn: never;
|
|
2594
|
+
identity: undefined;
|
|
2595
|
+
generated: undefined;
|
|
2596
|
+
}, {}, {
|
|
2597
|
+
length: number | undefined;
|
|
2598
|
+
}>;
|
|
2599
|
+
slug: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2600
|
+
name: "slug";
|
|
2601
|
+
tableName: "entries";
|
|
2602
|
+
dataType: "string";
|
|
2603
|
+
columnType: "SQLiteText";
|
|
2604
|
+
data: string;
|
|
2605
|
+
driverParam: string;
|
|
2606
|
+
notNull: true;
|
|
2607
|
+
hasDefault: false;
|
|
2608
|
+
isPrimaryKey: false;
|
|
2609
|
+
isAutoincrement: false;
|
|
2610
|
+
hasRuntimeDefault: false;
|
|
2611
|
+
enumValues: [string, ...string[]];
|
|
2612
|
+
baseColumn: never;
|
|
2613
|
+
identity: undefined;
|
|
2614
|
+
generated: undefined;
|
|
2615
|
+
}, {}, {
|
|
2616
|
+
length: number | undefined;
|
|
2617
|
+
}>;
|
|
2618
|
+
data: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2619
|
+
name: "data";
|
|
2620
|
+
tableName: "entries";
|
|
2621
|
+
dataType: "json";
|
|
2622
|
+
columnType: "SQLiteTextJson";
|
|
2623
|
+
data: Record<string, unknown>;
|
|
2624
|
+
driverParam: string;
|
|
2625
|
+
notNull: true;
|
|
2626
|
+
hasDefault: false;
|
|
2627
|
+
isPrimaryKey: false;
|
|
2628
|
+
isAutoincrement: false;
|
|
2629
|
+
hasRuntimeDefault: false;
|
|
2630
|
+
enumValues: undefined;
|
|
2631
|
+
baseColumn: never;
|
|
2632
|
+
identity: undefined;
|
|
2633
|
+
generated: undefined;
|
|
2634
|
+
}, {}, {
|
|
2635
|
+
$type: Record<string, unknown>;
|
|
2636
|
+
}>;
|
|
2637
|
+
related: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2638
|
+
name: "related";
|
|
2639
|
+
tableName: "entries";
|
|
2640
|
+
dataType: "json";
|
|
2641
|
+
columnType: "SQLiteTextJson";
|
|
2642
|
+
data: string[];
|
|
2643
|
+
driverParam: string;
|
|
2644
|
+
notNull: false;
|
|
2645
|
+
hasDefault: false;
|
|
2646
|
+
isPrimaryKey: false;
|
|
2647
|
+
isAutoincrement: false;
|
|
2648
|
+
hasRuntimeDefault: false;
|
|
2649
|
+
enumValues: undefined;
|
|
2650
|
+
baseColumn: never;
|
|
2651
|
+
identity: undefined;
|
|
2652
|
+
generated: undefined;
|
|
2653
|
+
}, {}, {
|
|
2654
|
+
$type: string[];
|
|
2655
|
+
}>;
|
|
2656
|
+
createdBy: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2657
|
+
name: "created_by";
|
|
2658
|
+
tableName: "entries";
|
|
2659
|
+
dataType: "string";
|
|
2660
|
+
columnType: "SQLiteText";
|
|
2661
|
+
data: string;
|
|
2662
|
+
driverParam: string;
|
|
2663
|
+
notNull: false;
|
|
2664
|
+
hasDefault: false;
|
|
2665
|
+
isPrimaryKey: false;
|
|
2666
|
+
isAutoincrement: false;
|
|
2667
|
+
hasRuntimeDefault: false;
|
|
2668
|
+
enumValues: [string, ...string[]];
|
|
2669
|
+
baseColumn: never;
|
|
2670
|
+
identity: undefined;
|
|
2671
|
+
generated: undefined;
|
|
2672
|
+
}, {}, {
|
|
2673
|
+
length: number | undefined;
|
|
2674
|
+
}>;
|
|
2675
|
+
updatedBy: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2676
|
+
name: "updated_by";
|
|
2677
|
+
tableName: "entries";
|
|
2678
|
+
dataType: "string";
|
|
2679
|
+
columnType: "SQLiteText";
|
|
2680
|
+
data: string;
|
|
2681
|
+
driverParam: string;
|
|
2682
|
+
notNull: false;
|
|
2683
|
+
hasDefault: false;
|
|
2684
|
+
isPrimaryKey: false;
|
|
2685
|
+
isAutoincrement: false;
|
|
2686
|
+
hasRuntimeDefault: false;
|
|
2687
|
+
enumValues: [string, ...string[]];
|
|
2688
|
+
baseColumn: never;
|
|
2689
|
+
identity: undefined;
|
|
2690
|
+
generated: undefined;
|
|
2691
|
+
}, {}, {
|
|
2692
|
+
length: number | undefined;
|
|
2693
|
+
}>;
|
|
2694
|
+
status: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2695
|
+
name: "status";
|
|
2696
|
+
tableName: "entries";
|
|
2697
|
+
dataType: "string";
|
|
2698
|
+
columnType: "SQLiteText";
|
|
2699
|
+
data: "draft" | "waiting" | "ready" | "scheduled" | "published";
|
|
2700
|
+
driverParam: string;
|
|
2701
|
+
notNull: true;
|
|
2702
|
+
hasDefault: true;
|
|
2703
|
+
isPrimaryKey: false;
|
|
2704
|
+
isAutoincrement: false;
|
|
2705
|
+
hasRuntimeDefault: false;
|
|
2706
|
+
enumValues: ["draft", "waiting", "ready", "scheduled", "published"];
|
|
2707
|
+
baseColumn: never;
|
|
2708
|
+
identity: undefined;
|
|
2709
|
+
generated: undefined;
|
|
2710
|
+
}, {}, {
|
|
2711
|
+
length: number | undefined;
|
|
2712
|
+
}>;
|
|
2713
|
+
publishedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2714
|
+
name: "published_at";
|
|
2715
|
+
tableName: "entries";
|
|
2716
|
+
dataType: "string";
|
|
2717
|
+
columnType: "SQLiteText";
|
|
2718
|
+
data: string;
|
|
2719
|
+
driverParam: string;
|
|
2720
|
+
notNull: false;
|
|
2721
|
+
hasDefault: false;
|
|
2722
|
+
isPrimaryKey: false;
|
|
2723
|
+
isAutoincrement: false;
|
|
2724
|
+
hasRuntimeDefault: false;
|
|
2725
|
+
enumValues: [string, ...string[]];
|
|
2726
|
+
baseColumn: never;
|
|
2727
|
+
identity: undefined;
|
|
2728
|
+
generated: undefined;
|
|
2729
|
+
}, {}, {
|
|
2730
|
+
length: number | undefined;
|
|
2731
|
+
}>;
|
|
2732
|
+
legacyExtra: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2733
|
+
name: "legacy_extra";
|
|
2734
|
+
tableName: "entries";
|
|
2735
|
+
dataType: "json";
|
|
2736
|
+
columnType: "SQLiteTextJson";
|
|
2737
|
+
data: Record<string, unknown> | null;
|
|
2738
|
+
driverParam: string;
|
|
2739
|
+
notNull: false;
|
|
2740
|
+
hasDefault: false;
|
|
2741
|
+
isPrimaryKey: false;
|
|
2742
|
+
isAutoincrement: false;
|
|
2743
|
+
hasRuntimeDefault: false;
|
|
2744
|
+
enumValues: undefined;
|
|
2745
|
+
baseColumn: never;
|
|
2746
|
+
identity: undefined;
|
|
2747
|
+
generated: undefined;
|
|
2748
|
+
}, {}, {
|
|
2749
|
+
$type: Record<string, unknown> | null;
|
|
2750
|
+
}>;
|
|
2751
|
+
createdAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2752
|
+
name: "created_at";
|
|
2753
|
+
tableName: "entries";
|
|
2754
|
+
dataType: "string";
|
|
2755
|
+
columnType: "SQLiteText";
|
|
2756
|
+
data: string;
|
|
2757
|
+
driverParam: string;
|
|
2758
|
+
notNull: true;
|
|
2759
|
+
hasDefault: true;
|
|
2760
|
+
isPrimaryKey: false;
|
|
2761
|
+
isAutoincrement: false;
|
|
2762
|
+
hasRuntimeDefault: true;
|
|
2763
|
+
enumValues: [string, ...string[]];
|
|
2764
|
+
baseColumn: never;
|
|
2765
|
+
identity: undefined;
|
|
2766
|
+
generated: undefined;
|
|
2767
|
+
}, {}, {
|
|
2768
|
+
length: number | undefined;
|
|
2769
|
+
}>;
|
|
2770
|
+
updatedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2771
|
+
name: "updated_at";
|
|
2772
|
+
tableName: "entries";
|
|
2773
|
+
dataType: "string";
|
|
2774
|
+
columnType: "SQLiteText";
|
|
2775
|
+
data: string;
|
|
2776
|
+
driverParam: string;
|
|
2777
|
+
notNull: true;
|
|
2778
|
+
hasDefault: true;
|
|
2779
|
+
isPrimaryKey: false;
|
|
2780
|
+
isAutoincrement: false;
|
|
2781
|
+
hasRuntimeDefault: true;
|
|
2782
|
+
enumValues: [string, ...string[]];
|
|
2783
|
+
baseColumn: never;
|
|
2784
|
+
identity: undefined;
|
|
2785
|
+
generated: undefined;
|
|
2786
|
+
}, {}, {
|
|
2787
|
+
length: number | undefined;
|
|
2788
|
+
}>;
|
|
2789
|
+
}, {
|
|
2790
|
+
collectionId: (schema: z.ZodString) => z.ZodString;
|
|
2791
|
+
slug: (schema: z.ZodString) => z.ZodString;
|
|
2792
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2793
|
+
related: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
2794
|
+
status: (schema: z.ZodEnum<{
|
|
2795
|
+
draft: "draft";
|
|
2796
|
+
waiting: "waiting";
|
|
2797
|
+
ready: "ready";
|
|
2798
|
+
scheduled: "scheduled";
|
|
2799
|
+
published: "published";
|
|
2800
|
+
}>) => z.ZodEnum<{
|
|
2801
|
+
draft: "draft";
|
|
2802
|
+
waiting: "waiting";
|
|
2803
|
+
ready: "ready";
|
|
2804
|
+
scheduled: "scheduled";
|
|
2805
|
+
published: "published";
|
|
2806
|
+
}>;
|
|
2807
|
+
}, undefined>;
|
|
2808
|
+
/** A search hit: the entry, and which collection it comes from. */
|
|
2809
|
+
declare const entrySearchHitDto: z.ZodObject<{
|
|
2810
|
+
id: z.ZodString;
|
|
2811
|
+
collectionId: z.ZodString;
|
|
2812
|
+
title: z.ZodString;
|
|
2813
|
+
slug: z.ZodString;
|
|
2814
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2815
|
+
related: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
2816
|
+
createdBy: z.ZodNullable<z.ZodString>;
|
|
2817
|
+
updatedBy: z.ZodNullable<z.ZodString>;
|
|
2818
|
+
status: z.ZodEnum<{
|
|
2819
|
+
draft: "draft";
|
|
2820
|
+
waiting: "waiting";
|
|
2821
|
+
ready: "ready";
|
|
2822
|
+
scheduled: "scheduled";
|
|
2823
|
+
published: "published";
|
|
2824
|
+
}>;
|
|
2825
|
+
publishedAt: z.ZodNullable<z.ZodString>;
|
|
2826
|
+
legacyExtra: z.ZodNullable<z.ZodType<drizzle_zod.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod.Json, unknown>>>;
|
|
2827
|
+
createdAt: z.ZodString;
|
|
2828
|
+
updatedAt: z.ZodString;
|
|
2829
|
+
collectionSlug: z.ZodString;
|
|
2830
|
+
}, {
|
|
2831
|
+
out: {};
|
|
2832
|
+
in: {};
|
|
2833
|
+
}>;
|
|
2223
2834
|
type EntryCreateDto = z.infer<typeof entryCreateDto>;
|
|
2224
2835
|
type EntryUpdateDto = z.infer<typeof entryUpdateDto>;
|
|
2836
|
+
type EntrySearchHit = z.infer<typeof entrySearchHitDto>;
|
|
2225
2837
|
|
|
2226
2838
|
/**
|
|
2227
2839
|
* The content engine: collection definitions over a closed field-type set, and
|
|
@@ -2244,7 +2856,25 @@ declare class CollectionsService {
|
|
|
2244
2856
|
listEntriesPaginated(collectionIdOrSlug: string, options?: {
|
|
2245
2857
|
skip?: number;
|
|
2246
2858
|
limit?: number;
|
|
2859
|
+
status?: Entry['status'][];
|
|
2860
|
+
search?: string;
|
|
2861
|
+
order?: 'recent' | 'oldest' | 'title';
|
|
2247
2862
|
}): Promise<Entry[]>;
|
|
2863
|
+
/** The total a listing is a window onto, under the same narrowing. */
|
|
2864
|
+
countEntries(collectionIdOrSlug: string, options?: {
|
|
2865
|
+
status?: Entry['status'][];
|
|
2866
|
+
search?: string;
|
|
2867
|
+
}): Promise<number>;
|
|
2868
|
+
/**
|
|
2869
|
+
* Text search across collections, or within the ones named (by id or slug).
|
|
2870
|
+
* Each hit carries the slug of its collection.
|
|
2871
|
+
*/
|
|
2872
|
+
searchEntries(options: {
|
|
2873
|
+
query: string;
|
|
2874
|
+
collections?: string[];
|
|
2875
|
+
status?: Entry['status'][];
|
|
2876
|
+
limit?: number;
|
|
2877
|
+
}): Promise<EntrySearchHit[]>;
|
|
2248
2878
|
listPublishedEntries(collectionIdOrSlug: string): Promise<Entry[]>;
|
|
2249
2879
|
createEntry(collectionIdOrSlug: string, input: EntryCreateDto, actorId?: string): Promise<Entry>;
|
|
2250
2880
|
/** PARTIAL update: `data` is merged field by field with what already exists. */
|
|
@@ -2327,9 +2957,82 @@ declare function createTypedError(type: string, trpcCode: TrpcErrorCode): {
|
|
|
2327
2957
|
stackTraceLimit: number;
|
|
2328
2958
|
};
|
|
2329
2959
|
|
|
2960
|
+
/**
|
|
2961
|
+
* What turns a tRPC procedure into an agent tool. A capability is declared
|
|
2962
|
+
* ONCE, on its procedure: this meta names and describes it, the procedure's
|
|
2963
|
+
* `.input()` and `.output()` give its schemas, its middleware gives its access
|
|
2964
|
+
* rules. The same declaration serves the admin, the internal agent and any MCP
|
|
2965
|
+
* server — the core itself depends on no MCP library.
|
|
2966
|
+
*
|
|
2967
|
+
* entries: router({
|
|
2968
|
+
* get: protectedProcedure
|
|
2969
|
+
* .meta({ agent: { name: 'entries_get', description: '…', annotations: { readOnlyHint: true } } })
|
|
2970
|
+
* .input(z.object({ id: z.string().describe('…') }))
|
|
2971
|
+
* .output(entryDto)
|
|
2972
|
+
* .query(…),
|
|
2973
|
+
* })
|
|
2974
|
+
*/
|
|
2975
|
+
interface AgentToolMeta {
|
|
2976
|
+
/** The tool name the model sees. `snake_case`, unique across the router. */
|
|
2977
|
+
name: string;
|
|
2978
|
+
/** A short human-readable title, shown by assistants that list tools. */
|
|
2979
|
+
title?: string;
|
|
2980
|
+
/** What the tool does and when to use it — written for the model. */
|
|
2981
|
+
description: string;
|
|
2982
|
+
/** MCP behaviour hints. They inform the assistant; they enforce nothing. */
|
|
2983
|
+
annotations?: {
|
|
2984
|
+
readOnlyHint?: boolean;
|
|
2985
|
+
destructiveHint?: boolean;
|
|
2986
|
+
idempotentHint?: boolean;
|
|
2987
|
+
openWorldHint?: boolean;
|
|
2988
|
+
};
|
|
2989
|
+
}
|
|
2990
|
+
/** The meta every procedure of the core may carry. */
|
|
2991
|
+
interface CoreMeta {
|
|
2992
|
+
/** Present when the procedure is exposed to agents. */
|
|
2993
|
+
agent?: AgentToolMeta;
|
|
2994
|
+
}
|
|
2995
|
+
|
|
2996
|
+
declare const AgentToolNotFoundError: {
|
|
2997
|
+
new (message?: string): {
|
|
2998
|
+
readonly type: string;
|
|
2999
|
+
readonly trpcCode: TrpcErrorCode;
|
|
3000
|
+
name: string;
|
|
3001
|
+
message: string;
|
|
3002
|
+
stack?: string;
|
|
3003
|
+
cause?: unknown;
|
|
3004
|
+
};
|
|
3005
|
+
isError(error: unknown): error is Error;
|
|
3006
|
+
isError(value: unknown): value is Error;
|
|
3007
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
3008
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
3009
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
3010
|
+
stackTraceLimit: number;
|
|
3011
|
+
};
|
|
3012
|
+
/**
|
|
3013
|
+
* A procedure carrying `agent` meta, with its zod schemas. An MCP server
|
|
3014
|
+
* registers it as is; the internal agent turns the schemas into its model's
|
|
3015
|
+
* format with `z.toJSONSchema`.
|
|
3016
|
+
*/
|
|
3017
|
+
interface AgentTool extends AgentToolMeta {
|
|
3018
|
+
/** Where the procedure sits in the router, e.g. `collections.entries.get`. */
|
|
3019
|
+
path: string;
|
|
3020
|
+
input: z.ZodObject;
|
|
3021
|
+
/** MCP wants an object: a list result is carried under `result`. */
|
|
3022
|
+
output?: z.ZodObject;
|
|
3023
|
+
}
|
|
3024
|
+
/** The tools a router exposes to agents: every procedure carrying `agent` meta. */
|
|
3025
|
+
declare function agentTools(router: AnyRouter): AgentTool[];
|
|
3026
|
+
/**
|
|
3027
|
+
* Runs a tool through its procedure, middlewares included: the caller has
|
|
3028
|
+
* exactly the rights its session gives in the admin. A list result comes back
|
|
3029
|
+
* as `{ result: [...] }`, as the tool's output schema says.
|
|
3030
|
+
*/
|
|
3031
|
+
declare function callTool(router: AnyRouter, ctx: CoreContext, name: string, args: unknown): Promise<unknown>;
|
|
3032
|
+
|
|
2330
3033
|
declare const organizationRouter: _trpc_server.TRPCBuiltRouter<{
|
|
2331
3034
|
ctx: CoreContext;
|
|
2332
|
-
meta:
|
|
3035
|
+
meta: CoreMeta;
|
|
2333
3036
|
errorShape: {
|
|
2334
3037
|
data: {
|
|
2335
3038
|
type?: string | undefined;
|
|
@@ -2363,7 +3066,7 @@ declare const organizationRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2363
3066
|
createdAt: string;
|
|
2364
3067
|
updatedAt: string;
|
|
2365
3068
|
} | null;
|
|
2366
|
-
meta:
|
|
3069
|
+
meta: CoreMeta;
|
|
2367
3070
|
}>;
|
|
2368
3071
|
init: _trpc_server.TRPCMutationProcedure<{
|
|
2369
3072
|
input: {
|
|
@@ -2397,7 +3100,7 @@ declare const organizationRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2397
3100
|
createdAt: string;
|
|
2398
3101
|
updatedAt: string;
|
|
2399
3102
|
};
|
|
2400
|
-
meta:
|
|
3103
|
+
meta: CoreMeta;
|
|
2401
3104
|
}>;
|
|
2402
3105
|
update: _trpc_server.TRPCMutationProcedure<{
|
|
2403
3106
|
input: {
|
|
@@ -2431,14 +3134,14 @@ declare const organizationRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2431
3134
|
createdAt: string;
|
|
2432
3135
|
updatedAt: string;
|
|
2433
3136
|
};
|
|
2434
|
-
meta:
|
|
3137
|
+
meta: CoreMeta;
|
|
2435
3138
|
}>;
|
|
2436
3139
|
deploy: _trpc_server.TRPCMutationProcedure<{
|
|
2437
3140
|
input: void;
|
|
2438
3141
|
output: {
|
|
2439
3142
|
status: number;
|
|
2440
3143
|
};
|
|
2441
|
-
meta:
|
|
3144
|
+
meta: CoreMeta;
|
|
2442
3145
|
}>;
|
|
2443
3146
|
}>>;
|
|
2444
3147
|
|
|
@@ -2559,7 +3262,7 @@ type ApiTokenCreateDto = z.infer<typeof apiTokenCreateDto>;
|
|
|
2559
3262
|
|
|
2560
3263
|
declare const authRouter: _trpc_server.TRPCBuiltRouter<{
|
|
2561
3264
|
ctx: CoreContext;
|
|
2562
|
-
meta:
|
|
3265
|
+
meta: CoreMeta;
|
|
2563
3266
|
errorShape: {
|
|
2564
3267
|
data: {
|
|
2565
3268
|
type?: string | undefined;
|
|
@@ -2590,14 +3293,14 @@ declare const authRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2590
3293
|
role: "admin" | "redacteur";
|
|
2591
3294
|
};
|
|
2592
3295
|
};
|
|
2593
|
-
meta:
|
|
3296
|
+
meta: CoreMeta;
|
|
2594
3297
|
}>;
|
|
2595
3298
|
logout: _trpc_server.TRPCMutationProcedure<{
|
|
2596
3299
|
input: void;
|
|
2597
3300
|
output: {
|
|
2598
3301
|
loggedOut: boolean;
|
|
2599
3302
|
};
|
|
2600
|
-
meta:
|
|
3303
|
+
meta: CoreMeta;
|
|
2601
3304
|
}>;
|
|
2602
3305
|
me: _trpc_server.TRPCQueryProcedure<{
|
|
2603
3306
|
input: void;
|
|
@@ -2609,12 +3312,12 @@ declare const authRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2609
3312
|
role: "admin" | "redacteur";
|
|
2610
3313
|
};
|
|
2611
3314
|
};
|
|
2612
|
-
meta:
|
|
3315
|
+
meta: CoreMeta;
|
|
2613
3316
|
}>;
|
|
2614
3317
|
/** Device management: the sessions listed on the account page. */
|
|
2615
3318
|
sessions: _trpc_server.TRPCBuiltRouter<{
|
|
2616
3319
|
ctx: CoreContext;
|
|
2617
|
-
meta:
|
|
3320
|
+
meta: CoreMeta;
|
|
2618
3321
|
errorShape: {
|
|
2619
3322
|
data: {
|
|
2620
3323
|
type?: string | undefined;
|
|
@@ -2638,7 +3341,7 @@ declare const authRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2638
3341
|
ip: string | null;
|
|
2639
3342
|
current: boolean;
|
|
2640
3343
|
}[];
|
|
2641
|
-
meta:
|
|
3344
|
+
meta: CoreMeta;
|
|
2642
3345
|
}>;
|
|
2643
3346
|
revoke: _trpc_server.TRPCMutationProcedure<{
|
|
2644
3347
|
input: {
|
|
@@ -2647,7 +3350,7 @@ declare const authRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2647
3350
|
output: {
|
|
2648
3351
|
revoked: string;
|
|
2649
3352
|
};
|
|
2650
|
-
meta:
|
|
3353
|
+
meta: CoreMeta;
|
|
2651
3354
|
}>;
|
|
2652
3355
|
}>>;
|
|
2653
3356
|
/** Consume an invitation link and set the password (public, single-use). */
|
|
@@ -2665,7 +3368,7 @@ declare const authRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2665
3368
|
role: "admin" | "redacteur";
|
|
2666
3369
|
};
|
|
2667
3370
|
};
|
|
2668
|
-
meta:
|
|
3371
|
+
meta: CoreMeta;
|
|
2669
3372
|
}>;
|
|
2670
3373
|
/**
|
|
2671
3374
|
* « Forgotten password » — public, and the response is ALWAYS { ok: true }
|
|
@@ -2679,12 +3382,12 @@ declare const authRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2679
3382
|
output: {
|
|
2680
3383
|
ok: boolean;
|
|
2681
3384
|
};
|
|
2682
|
-
meta:
|
|
3385
|
+
meta: CoreMeta;
|
|
2683
3386
|
}>;
|
|
2684
3387
|
}>>;
|
|
2685
3388
|
declare const usersRouter: _trpc_server.TRPCBuiltRouter<{
|
|
2686
3389
|
ctx: CoreContext;
|
|
2687
|
-
meta:
|
|
3390
|
+
meta: CoreMeta;
|
|
2688
3391
|
errorShape: {
|
|
2689
3392
|
data: {
|
|
2690
3393
|
type?: string | undefined;
|
|
@@ -2706,7 +3409,7 @@ declare const usersRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2706
3409
|
name: string;
|
|
2707
3410
|
role: "admin" | "redacteur";
|
|
2708
3411
|
}[];
|
|
2709
|
-
meta:
|
|
3412
|
+
meta: CoreMeta;
|
|
2710
3413
|
}>;
|
|
2711
3414
|
/**
|
|
2712
3415
|
* A {id, name} directory readable by any signed-in member: the admin shows
|
|
@@ -2719,7 +3422,7 @@ declare const usersRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2719
3422
|
id: string;
|
|
2720
3423
|
name: string;
|
|
2721
3424
|
}[];
|
|
2722
|
-
meta:
|
|
3425
|
+
meta: CoreMeta;
|
|
2723
3426
|
}>;
|
|
2724
3427
|
/** Read a single user. */
|
|
2725
3428
|
get: _trpc_server.TRPCQueryProcedure<{
|
|
@@ -2732,7 +3435,7 @@ declare const usersRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2732
3435
|
name: string;
|
|
2733
3436
|
role: "admin" | "redacteur";
|
|
2734
3437
|
};
|
|
2735
|
-
meta:
|
|
3438
|
+
meta: CoreMeta;
|
|
2736
3439
|
}>;
|
|
2737
3440
|
/** Invite a new member — the single-use link is returned to the admin. */
|
|
2738
3441
|
invite: _trpc_server.TRPCMutationProcedure<{
|
|
@@ -2744,7 +3447,7 @@ declare const usersRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2744
3447
|
token: string;
|
|
2745
3448
|
expiresAt: string;
|
|
2746
3449
|
};
|
|
2747
|
-
meta:
|
|
3450
|
+
meta: CoreMeta;
|
|
2748
3451
|
}>;
|
|
2749
3452
|
update: _trpc_server.TRPCMutationProcedure<{
|
|
2750
3453
|
input: {
|
|
@@ -2761,7 +3464,7 @@ declare const usersRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2761
3464
|
name: string;
|
|
2762
3465
|
role: "admin" | "redacteur";
|
|
2763
3466
|
};
|
|
2764
|
-
meta:
|
|
3467
|
+
meta: CoreMeta;
|
|
2765
3468
|
}>;
|
|
2766
3469
|
remove: _trpc_server.TRPCMutationProcedure<{
|
|
2767
3470
|
input: {
|
|
@@ -2770,12 +3473,12 @@ declare const usersRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2770
3473
|
output: {
|
|
2771
3474
|
removed: string;
|
|
2772
3475
|
};
|
|
2773
|
-
meta:
|
|
3476
|
+
meta: CoreMeta;
|
|
2774
3477
|
}>;
|
|
2775
3478
|
}>>;
|
|
2776
3479
|
declare const apiTokensRouter: _trpc_server.TRPCBuiltRouter<{
|
|
2777
3480
|
ctx: CoreContext;
|
|
2778
|
-
meta:
|
|
3481
|
+
meta: CoreMeta;
|
|
2779
3482
|
errorShape: {
|
|
2780
3483
|
data: {
|
|
2781
3484
|
type?: string | undefined;
|
|
@@ -2799,7 +3502,7 @@ declare const apiTokensRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2799
3502
|
tokenHash: string;
|
|
2800
3503
|
lastUsedAt: string | null;
|
|
2801
3504
|
}, "name" | "id" | "createdAt" | "revokedAt" | "lastUsedAt">[];
|
|
2802
|
-
meta:
|
|
3505
|
+
meta: CoreMeta;
|
|
2803
3506
|
}>;
|
|
2804
3507
|
/** The plaintext token is returned ONCE — only its hash is stored. */
|
|
2805
3508
|
create: _trpc_server.TRPCMutationProcedure<{
|
|
@@ -2811,7 +3514,7 @@ declare const apiTokensRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2811
3514
|
id: string;
|
|
2812
3515
|
name: string;
|
|
2813
3516
|
};
|
|
2814
|
-
meta:
|
|
3517
|
+
meta: CoreMeta;
|
|
2815
3518
|
}>;
|
|
2816
3519
|
revoke: _trpc_server.TRPCMutationProcedure<{
|
|
2817
3520
|
input: {
|
|
@@ -2820,7 +3523,7 @@ declare const apiTokensRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2820
3523
|
output: {
|
|
2821
3524
|
revoked: string;
|
|
2822
3525
|
};
|
|
2823
|
-
meta:
|
|
3526
|
+
meta: CoreMeta;
|
|
2824
3527
|
}>;
|
|
2825
3528
|
}>>;
|
|
2826
3529
|
|
|
@@ -2908,7 +3611,7 @@ declare const TooManyAttemptsError: {
|
|
|
2908
3611
|
|
|
2909
3612
|
declare const mediaRouter: _trpc_server.TRPCBuiltRouter<{
|
|
2910
3613
|
ctx: CoreContext;
|
|
2911
|
-
meta:
|
|
3614
|
+
meta: CoreMeta;
|
|
2912
3615
|
errorShape: {
|
|
2913
3616
|
data: {
|
|
2914
3617
|
type?: string | undefined;
|
|
@@ -2932,7 +3635,7 @@ declare const mediaRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2932
3635
|
key: string;
|
|
2933
3636
|
url: string;
|
|
2934
3637
|
};
|
|
2935
|
-
meta:
|
|
3638
|
+
meta: CoreMeta;
|
|
2936
3639
|
}>;
|
|
2937
3640
|
finalize: _trpc_server.TRPCMutationProcedure<{
|
|
2938
3641
|
input: {
|
|
@@ -2957,7 +3660,7 @@ declare const mediaRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2957
3660
|
metaData: Record<string, unknown> | null;
|
|
2958
3661
|
createdBy: string | null;
|
|
2959
3662
|
};
|
|
2960
|
-
meta:
|
|
3663
|
+
meta: CoreMeta;
|
|
2961
3664
|
}>;
|
|
2962
3665
|
list: _trpc_server.TRPCQueryProcedure<{
|
|
2963
3666
|
input: void;
|
|
@@ -2978,7 +3681,7 @@ declare const mediaRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2978
3681
|
} & {
|
|
2979
3682
|
objects: Record<string, string>;
|
|
2980
3683
|
})[];
|
|
2981
|
-
meta:
|
|
3684
|
+
meta: CoreMeta;
|
|
2982
3685
|
}>;
|
|
2983
3686
|
get: _trpc_server.TRPCQueryProcedure<{
|
|
2984
3687
|
input: {
|
|
@@ -3001,7 +3704,7 @@ declare const mediaRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3001
3704
|
} & {
|
|
3002
3705
|
objects: Record<string, string>;
|
|
3003
3706
|
};
|
|
3004
|
-
meta:
|
|
3707
|
+
meta: CoreMeta;
|
|
3005
3708
|
}>;
|
|
3006
3709
|
update: _trpc_server.TRPCMutationProcedure<{
|
|
3007
3710
|
input: {
|
|
@@ -3027,7 +3730,7 @@ declare const mediaRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3027
3730
|
metaData: Record<string, unknown> | null;
|
|
3028
3731
|
createdBy: string | null;
|
|
3029
3732
|
};
|
|
3030
|
-
meta:
|
|
3733
|
+
meta: CoreMeta;
|
|
3031
3734
|
}>;
|
|
3032
3735
|
remove: _trpc_server.TRPCMutationProcedure<{
|
|
3033
3736
|
input: {
|
|
@@ -3036,7 +3739,7 @@ declare const mediaRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3036
3739
|
output: {
|
|
3037
3740
|
removed: string;
|
|
3038
3741
|
};
|
|
3039
|
-
meta:
|
|
3742
|
+
meta: CoreMeta;
|
|
3040
3743
|
}>;
|
|
3041
3744
|
}>>;
|
|
3042
3745
|
|
|
@@ -3091,7 +3794,7 @@ declare const UploadIncompleteError: {
|
|
|
3091
3794
|
|
|
3092
3795
|
declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
3093
3796
|
ctx: CoreContext;
|
|
3094
|
-
meta:
|
|
3797
|
+
meta: CoreMeta;
|
|
3095
3798
|
errorShape: {
|
|
3096
3799
|
data: {
|
|
3097
3800
|
type?: string | undefined;
|
|
@@ -3130,26 +3833,22 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3130
3833
|
display: Record<string, unknown> | null;
|
|
3131
3834
|
headings: Record<string, unknown> | null;
|
|
3132
3835
|
}[];
|
|
3133
|
-
meta:
|
|
3836
|
+
meta: CoreMeta;
|
|
3134
3837
|
}>;
|
|
3135
3838
|
get: _trpc_server.TRPCQueryProcedure<{
|
|
3136
3839
|
input: {
|
|
3137
3840
|
idOrSlug: string;
|
|
3138
3841
|
};
|
|
3139
3842
|
output: {
|
|
3140
|
-
name: string;
|
|
3141
3843
|
id: string;
|
|
3844
|
+
name: string;
|
|
3142
3845
|
slug: string;
|
|
3143
3846
|
description: string | null;
|
|
3144
|
-
updatedBy: string | null;
|
|
3145
|
-
legacyExtra: Record<string, unknown> | null;
|
|
3146
|
-
createdAt: string;
|
|
3147
|
-
updatedAt: string;
|
|
3148
|
-
createdBy: string | null;
|
|
3149
3847
|
fields: {
|
|
3848
|
+
[x: string]: unknown;
|
|
3150
3849
|
name: string;
|
|
3151
3850
|
label: string;
|
|
3152
|
-
type:
|
|
3851
|
+
type: string;
|
|
3153
3852
|
required: boolean;
|
|
3154
3853
|
hidden: boolean;
|
|
3155
3854
|
options?: string[] | undefined;
|
|
@@ -3158,8 +3857,13 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3158
3857
|
editor: Record<string, unknown> | null;
|
|
3159
3858
|
display: Record<string, unknown> | null;
|
|
3160
3859
|
headings: Record<string, unknown> | null;
|
|
3860
|
+
createdBy: string | null;
|
|
3861
|
+
updatedBy: string | null;
|
|
3862
|
+
legacyExtra: drizzle_zod.Json;
|
|
3863
|
+
createdAt: string;
|
|
3864
|
+
updatedAt: string;
|
|
3161
3865
|
};
|
|
3162
|
-
meta:
|
|
3866
|
+
meta: CoreMeta;
|
|
3163
3867
|
}>;
|
|
3164
3868
|
create: _trpc_server.TRPCMutationProcedure<{
|
|
3165
3869
|
input: {
|
|
@@ -3202,7 +3906,7 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3202
3906
|
display: Record<string, unknown> | null;
|
|
3203
3907
|
headings: Record<string, unknown> | null;
|
|
3204
3908
|
};
|
|
3205
|
-
meta:
|
|
3909
|
+
meta: CoreMeta;
|
|
3206
3910
|
}>;
|
|
3207
3911
|
update: _trpc_server.TRPCMutationProcedure<{
|
|
3208
3912
|
input: {
|
|
@@ -3248,7 +3952,7 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3248
3952
|
display: Record<string, unknown> | null;
|
|
3249
3953
|
headings: Record<string, unknown> | null;
|
|
3250
3954
|
};
|
|
3251
|
-
meta:
|
|
3955
|
+
meta: CoreMeta;
|
|
3252
3956
|
}>;
|
|
3253
3957
|
remove: _trpc_server.TRPCMutationProcedure<{
|
|
3254
3958
|
input: {
|
|
@@ -3257,11 +3961,11 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3257
3961
|
output: {
|
|
3258
3962
|
removed: string;
|
|
3259
3963
|
};
|
|
3260
|
-
meta:
|
|
3964
|
+
meta: CoreMeta;
|
|
3261
3965
|
}>;
|
|
3262
3966
|
entries: _trpc_server.TRPCBuiltRouter<{
|
|
3263
3967
|
ctx: CoreContext;
|
|
3264
|
-
meta:
|
|
3968
|
+
meta: CoreMeta;
|
|
3265
3969
|
errorShape: {
|
|
3266
3970
|
data: {
|
|
3267
3971
|
type?: string | undefined;
|
|
@@ -3281,43 +3985,83 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3281
3985
|
};
|
|
3282
3986
|
output: {
|
|
3283
3987
|
id: string;
|
|
3284
|
-
|
|
3988
|
+
collectionId: string;
|
|
3989
|
+
title: string;
|
|
3285
3990
|
slug: string;
|
|
3991
|
+
data: Record<string, unknown>;
|
|
3992
|
+
related: string[] | null;
|
|
3993
|
+
createdBy: string | null;
|
|
3286
3994
|
updatedBy: string | null;
|
|
3287
|
-
|
|
3995
|
+
status: "draft" | "waiting" | "ready" | "scheduled" | "published";
|
|
3996
|
+
publishedAt: string | null;
|
|
3997
|
+
legacyExtra: drizzle_zod.Json;
|
|
3288
3998
|
createdAt: string;
|
|
3289
3999
|
updatedAt: string;
|
|
3290
|
-
|
|
4000
|
+
};
|
|
4001
|
+
meta: CoreMeta;
|
|
4002
|
+
}>;
|
|
4003
|
+
/** Across collections: what an agent uses to find content. */
|
|
4004
|
+
search: _trpc_server.TRPCQueryProcedure<{
|
|
4005
|
+
input: {
|
|
4006
|
+
query: string;
|
|
4007
|
+
collections?: string[] | undefined;
|
|
4008
|
+
status?: ("draft" | "waiting" | "ready" | "scheduled" | "published")[] | undefined;
|
|
4009
|
+
limit?: number | undefined;
|
|
4010
|
+
};
|
|
4011
|
+
output: {
|
|
4012
|
+
id: string;
|
|
3291
4013
|
collectionId: string;
|
|
3292
4014
|
title: string;
|
|
4015
|
+
slug: string;
|
|
4016
|
+
data: Record<string, unknown>;
|
|
3293
4017
|
related: string[] | null;
|
|
4018
|
+
createdBy: string | null;
|
|
4019
|
+
updatedBy: string | null;
|
|
3294
4020
|
status: "draft" | "waiting" | "ready" | "scheduled" | "published";
|
|
3295
4021
|
publishedAt: string | null;
|
|
3296
|
-
|
|
3297
|
-
|
|
4022
|
+
legacyExtra: drizzle_zod.Json;
|
|
4023
|
+
createdAt: string;
|
|
4024
|
+
updatedAt: string;
|
|
4025
|
+
collectionSlug: string;
|
|
4026
|
+
}[];
|
|
4027
|
+
meta: CoreMeta;
|
|
3298
4028
|
}>;
|
|
4029
|
+
/** Narrowing is optional: a caller that ignores it keeps the old behaviour. */
|
|
3299
4030
|
list: _trpc_server.TRPCQueryProcedure<{
|
|
3300
4031
|
input: {
|
|
3301
4032
|
collectionId: string;
|
|
4033
|
+
status?: ("draft" | "waiting" | "ready" | "scheduled" | "published")[] | undefined;
|
|
4034
|
+
search?: string | undefined;
|
|
4035
|
+
order?: "title" | "recent" | "oldest" | undefined;
|
|
3302
4036
|
skip?: number | undefined;
|
|
3303
4037
|
limit?: number | undefined;
|
|
3304
4038
|
};
|
|
3305
4039
|
output: {
|
|
3306
4040
|
id: string;
|
|
3307
|
-
data: Record<string, unknown>;
|
|
3308
|
-
slug: string;
|
|
3309
|
-
updatedBy: string | null;
|
|
3310
|
-
legacyExtra: Record<string, unknown> | null;
|
|
3311
|
-
createdAt: string;
|
|
3312
|
-
updatedAt: string;
|
|
3313
|
-
createdBy: string | null;
|
|
3314
4041
|
collectionId: string;
|
|
3315
4042
|
title: string;
|
|
4043
|
+
slug: string;
|
|
4044
|
+
data: Record<string, unknown>;
|
|
3316
4045
|
related: string[] | null;
|
|
4046
|
+
createdBy: string | null;
|
|
4047
|
+
updatedBy: string | null;
|
|
3317
4048
|
status: "draft" | "waiting" | "ready" | "scheduled" | "published";
|
|
3318
4049
|
publishedAt: string | null;
|
|
4050
|
+
legacyExtra: drizzle_zod.Json;
|
|
4051
|
+
createdAt: string;
|
|
4052
|
+
updatedAt: string;
|
|
3319
4053
|
}[];
|
|
3320
|
-
meta:
|
|
4054
|
+
meta: CoreMeta;
|
|
4055
|
+
}>;
|
|
4056
|
+
/** The total a listing is a window onto, under the same narrowing. */
|
|
4057
|
+
count: _trpc_server.TRPCQueryProcedure<{
|
|
4058
|
+
input: {
|
|
4059
|
+
collectionId: string;
|
|
4060
|
+
status?: ("draft" | "waiting" | "ready" | "scheduled" | "published")[] | undefined;
|
|
4061
|
+
search?: string | undefined;
|
|
4062
|
+
};
|
|
4063
|
+
output: number;
|
|
4064
|
+
meta: CoreMeta;
|
|
3321
4065
|
}>;
|
|
3322
4066
|
create: _trpc_server.TRPCMutationProcedure<{
|
|
3323
4067
|
input: {
|
|
@@ -3345,7 +4089,7 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3345
4089
|
status: "draft" | "waiting" | "ready" | "scheduled" | "published";
|
|
3346
4090
|
publishedAt: string | null;
|
|
3347
4091
|
};
|
|
3348
|
-
meta:
|
|
4092
|
+
meta: CoreMeta;
|
|
3349
4093
|
}>;
|
|
3350
4094
|
update: _trpc_server.TRPCMutationProcedure<{
|
|
3351
4095
|
input: {
|
|
@@ -3374,7 +4118,7 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3374
4118
|
status: "draft" | "waiting" | "ready" | "scheduled" | "published";
|
|
3375
4119
|
publishedAt: string | null;
|
|
3376
4120
|
};
|
|
3377
|
-
meta:
|
|
4121
|
+
meta: CoreMeta;
|
|
3378
4122
|
}>;
|
|
3379
4123
|
remove: _trpc_server.TRPCMutationProcedure<{
|
|
3380
4124
|
input: {
|
|
@@ -3383,7 +4127,7 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3383
4127
|
output: {
|
|
3384
4128
|
removed: string;
|
|
3385
4129
|
};
|
|
3386
|
-
meta:
|
|
4130
|
+
meta: CoreMeta;
|
|
3387
4131
|
}>;
|
|
3388
4132
|
}>>;
|
|
3389
4133
|
}>>;
|
|
@@ -3458,7 +4202,7 @@ declare function createCore({ env }?: {
|
|
|
3458
4202
|
}): Core;
|
|
3459
4203
|
declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
3460
4204
|
ctx: CoreContext;
|
|
3461
|
-
meta:
|
|
4205
|
+
meta: CoreMeta;
|
|
3462
4206
|
errorShape: {
|
|
3463
4207
|
data: {
|
|
3464
4208
|
type?: string | undefined;
|
|
@@ -3474,7 +4218,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3474
4218
|
}, _trpc_server.TRPCDecorateCreateRouterOptions<{
|
|
3475
4219
|
health: _trpc_server.TRPCBuiltRouter<{
|
|
3476
4220
|
ctx: CoreContext;
|
|
3477
|
-
meta:
|
|
4221
|
+
meta: CoreMeta;
|
|
3478
4222
|
errorShape: {
|
|
3479
4223
|
data: {
|
|
3480
4224
|
type?: string | undefined;
|
|
@@ -3491,12 +4235,12 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3491
4235
|
ping: _trpc_server.TRPCQueryProcedure<{
|
|
3492
4236
|
input: void;
|
|
3493
4237
|
output: HealthStatus;
|
|
3494
|
-
meta:
|
|
4238
|
+
meta: CoreMeta;
|
|
3495
4239
|
}>;
|
|
3496
4240
|
}>>;
|
|
3497
4241
|
auth: _trpc_server.TRPCBuiltRouter<{
|
|
3498
4242
|
ctx: CoreContext;
|
|
3499
|
-
meta:
|
|
4243
|
+
meta: CoreMeta;
|
|
3500
4244
|
errorShape: {
|
|
3501
4245
|
data: {
|
|
3502
4246
|
type?: string | undefined;
|
|
@@ -3525,14 +4269,14 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3525
4269
|
role: "admin" | "redacteur";
|
|
3526
4270
|
};
|
|
3527
4271
|
};
|
|
3528
|
-
meta:
|
|
4272
|
+
meta: CoreMeta;
|
|
3529
4273
|
}>;
|
|
3530
4274
|
logout: _trpc_server.TRPCMutationProcedure<{
|
|
3531
4275
|
input: void;
|
|
3532
4276
|
output: {
|
|
3533
4277
|
loggedOut: boolean;
|
|
3534
4278
|
};
|
|
3535
|
-
meta:
|
|
4279
|
+
meta: CoreMeta;
|
|
3536
4280
|
}>;
|
|
3537
4281
|
me: _trpc_server.TRPCQueryProcedure<{
|
|
3538
4282
|
input: void;
|
|
@@ -3544,11 +4288,11 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3544
4288
|
role: "admin" | "redacteur";
|
|
3545
4289
|
};
|
|
3546
4290
|
};
|
|
3547
|
-
meta:
|
|
4291
|
+
meta: CoreMeta;
|
|
3548
4292
|
}>;
|
|
3549
4293
|
sessions: _trpc_server.TRPCBuiltRouter<{
|
|
3550
4294
|
ctx: CoreContext;
|
|
3551
|
-
meta:
|
|
4295
|
+
meta: CoreMeta;
|
|
3552
4296
|
errorShape: {
|
|
3553
4297
|
data: {
|
|
3554
4298
|
type?: string | undefined;
|
|
@@ -3572,7 +4316,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3572
4316
|
ip: string | null;
|
|
3573
4317
|
current: boolean;
|
|
3574
4318
|
}[];
|
|
3575
|
-
meta:
|
|
4319
|
+
meta: CoreMeta;
|
|
3576
4320
|
}>;
|
|
3577
4321
|
revoke: _trpc_server.TRPCMutationProcedure<{
|
|
3578
4322
|
input: {
|
|
@@ -3581,7 +4325,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3581
4325
|
output: {
|
|
3582
4326
|
revoked: string;
|
|
3583
4327
|
};
|
|
3584
|
-
meta:
|
|
4328
|
+
meta: CoreMeta;
|
|
3585
4329
|
}>;
|
|
3586
4330
|
}>>;
|
|
3587
4331
|
acceptInvitation: _trpc_server.TRPCMutationProcedure<{
|
|
@@ -3598,7 +4342,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3598
4342
|
role: "admin" | "redacteur";
|
|
3599
4343
|
};
|
|
3600
4344
|
};
|
|
3601
|
-
meta:
|
|
4345
|
+
meta: CoreMeta;
|
|
3602
4346
|
}>;
|
|
3603
4347
|
requestPasswordReset: _trpc_server.TRPCMutationProcedure<{
|
|
3604
4348
|
input: {
|
|
@@ -3607,12 +4351,12 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3607
4351
|
output: {
|
|
3608
4352
|
ok: boolean;
|
|
3609
4353
|
};
|
|
3610
|
-
meta:
|
|
4354
|
+
meta: CoreMeta;
|
|
3611
4355
|
}>;
|
|
3612
4356
|
}>>;
|
|
3613
4357
|
users: _trpc_server.TRPCBuiltRouter<{
|
|
3614
4358
|
ctx: CoreContext;
|
|
3615
|
-
meta:
|
|
4359
|
+
meta: CoreMeta;
|
|
3616
4360
|
errorShape: {
|
|
3617
4361
|
data: {
|
|
3618
4362
|
type?: string | undefined;
|
|
@@ -3634,7 +4378,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3634
4378
|
name: string;
|
|
3635
4379
|
role: "admin" | "redacteur";
|
|
3636
4380
|
}[];
|
|
3637
|
-
meta:
|
|
4381
|
+
meta: CoreMeta;
|
|
3638
4382
|
}>;
|
|
3639
4383
|
directory: _trpc_server.TRPCQueryProcedure<{
|
|
3640
4384
|
input: void;
|
|
@@ -3642,7 +4386,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3642
4386
|
id: string;
|
|
3643
4387
|
name: string;
|
|
3644
4388
|
}[];
|
|
3645
|
-
meta:
|
|
4389
|
+
meta: CoreMeta;
|
|
3646
4390
|
}>;
|
|
3647
4391
|
get: _trpc_server.TRPCQueryProcedure<{
|
|
3648
4392
|
input: {
|
|
@@ -3654,7 +4398,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3654
4398
|
name: string;
|
|
3655
4399
|
role: "admin" | "redacteur";
|
|
3656
4400
|
};
|
|
3657
|
-
meta:
|
|
4401
|
+
meta: CoreMeta;
|
|
3658
4402
|
}>;
|
|
3659
4403
|
invite: _trpc_server.TRPCMutationProcedure<{
|
|
3660
4404
|
input: {
|
|
@@ -3665,7 +4409,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3665
4409
|
token: string;
|
|
3666
4410
|
expiresAt: string;
|
|
3667
4411
|
};
|
|
3668
|
-
meta:
|
|
4412
|
+
meta: CoreMeta;
|
|
3669
4413
|
}>;
|
|
3670
4414
|
update: _trpc_server.TRPCMutationProcedure<{
|
|
3671
4415
|
input: {
|
|
@@ -3682,7 +4426,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3682
4426
|
name: string;
|
|
3683
4427
|
role: "admin" | "redacteur";
|
|
3684
4428
|
};
|
|
3685
|
-
meta:
|
|
4429
|
+
meta: CoreMeta;
|
|
3686
4430
|
}>;
|
|
3687
4431
|
remove: _trpc_server.TRPCMutationProcedure<{
|
|
3688
4432
|
input: {
|
|
@@ -3691,12 +4435,12 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3691
4435
|
output: {
|
|
3692
4436
|
removed: string;
|
|
3693
4437
|
};
|
|
3694
|
-
meta:
|
|
4438
|
+
meta: CoreMeta;
|
|
3695
4439
|
}>;
|
|
3696
4440
|
}>>;
|
|
3697
4441
|
apiTokens: _trpc_server.TRPCBuiltRouter<{
|
|
3698
4442
|
ctx: CoreContext;
|
|
3699
|
-
meta:
|
|
4443
|
+
meta: CoreMeta;
|
|
3700
4444
|
errorShape: {
|
|
3701
4445
|
data: {
|
|
3702
4446
|
type?: string | undefined;
|
|
@@ -3720,7 +4464,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3720
4464
|
tokenHash: string;
|
|
3721
4465
|
lastUsedAt: string | null;
|
|
3722
4466
|
}, "id" | "name" | "createdAt" | "revokedAt" | "lastUsedAt">[];
|
|
3723
|
-
meta:
|
|
4467
|
+
meta: CoreMeta;
|
|
3724
4468
|
}>;
|
|
3725
4469
|
create: _trpc_server.TRPCMutationProcedure<{
|
|
3726
4470
|
input: {
|
|
@@ -3731,7 +4475,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3731
4475
|
id: string;
|
|
3732
4476
|
name: string;
|
|
3733
4477
|
};
|
|
3734
|
-
meta:
|
|
4478
|
+
meta: CoreMeta;
|
|
3735
4479
|
}>;
|
|
3736
4480
|
revoke: _trpc_server.TRPCMutationProcedure<{
|
|
3737
4481
|
input: {
|
|
@@ -3740,12 +4484,12 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3740
4484
|
output: {
|
|
3741
4485
|
revoked: string;
|
|
3742
4486
|
};
|
|
3743
|
-
meta:
|
|
4487
|
+
meta: CoreMeta;
|
|
3744
4488
|
}>;
|
|
3745
4489
|
}>>;
|
|
3746
4490
|
organization: _trpc_server.TRPCBuiltRouter<{
|
|
3747
4491
|
ctx: CoreContext;
|
|
3748
|
-
meta:
|
|
4492
|
+
meta: CoreMeta;
|
|
3749
4493
|
errorShape: {
|
|
3750
4494
|
data: {
|
|
3751
4495
|
type?: string | undefined;
|
|
@@ -3779,7 +4523,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3779
4523
|
updatedBy: string | null;
|
|
3780
4524
|
legacyExtra: Record<string, unknown> | null;
|
|
3781
4525
|
} | null;
|
|
3782
|
-
meta:
|
|
4526
|
+
meta: CoreMeta;
|
|
3783
4527
|
}>;
|
|
3784
4528
|
init: _trpc_server.TRPCMutationProcedure<{
|
|
3785
4529
|
input: {
|
|
@@ -3813,7 +4557,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3813
4557
|
updatedBy: string | null;
|
|
3814
4558
|
legacyExtra: Record<string, unknown> | null;
|
|
3815
4559
|
};
|
|
3816
|
-
meta:
|
|
4560
|
+
meta: CoreMeta;
|
|
3817
4561
|
}>;
|
|
3818
4562
|
update: _trpc_server.TRPCMutationProcedure<{
|
|
3819
4563
|
input: {
|
|
@@ -3847,19 +4591,19 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3847
4591
|
updatedBy: string | null;
|
|
3848
4592
|
legacyExtra: Record<string, unknown> | null;
|
|
3849
4593
|
};
|
|
3850
|
-
meta:
|
|
4594
|
+
meta: CoreMeta;
|
|
3851
4595
|
}>;
|
|
3852
4596
|
deploy: _trpc_server.TRPCMutationProcedure<{
|
|
3853
4597
|
input: void;
|
|
3854
4598
|
output: {
|
|
3855
4599
|
status: number;
|
|
3856
4600
|
};
|
|
3857
|
-
meta:
|
|
4601
|
+
meta: CoreMeta;
|
|
3858
4602
|
}>;
|
|
3859
4603
|
}>>;
|
|
3860
4604
|
media: _trpc_server.TRPCBuiltRouter<{
|
|
3861
4605
|
ctx: CoreContext;
|
|
3862
|
-
meta:
|
|
4606
|
+
meta: CoreMeta;
|
|
3863
4607
|
errorShape: {
|
|
3864
4608
|
data: {
|
|
3865
4609
|
type?: string | undefined;
|
|
@@ -3883,7 +4627,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3883
4627
|
key: string;
|
|
3884
4628
|
url: string;
|
|
3885
4629
|
};
|
|
3886
|
-
meta:
|
|
4630
|
+
meta: CoreMeta;
|
|
3887
4631
|
}>;
|
|
3888
4632
|
finalize: _trpc_server.TRPCMutationProcedure<{
|
|
3889
4633
|
input: {
|
|
@@ -3908,7 +4652,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3908
4652
|
objects: Record<string, unknown>;
|
|
3909
4653
|
createdBy: string | null;
|
|
3910
4654
|
};
|
|
3911
|
-
meta:
|
|
4655
|
+
meta: CoreMeta;
|
|
3912
4656
|
}>;
|
|
3913
4657
|
list: _trpc_server.TRPCQueryProcedure<{
|
|
3914
4658
|
input: void;
|
|
@@ -3929,7 +4673,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3929
4673
|
} & {
|
|
3930
4674
|
objects: Record<string, string>;
|
|
3931
4675
|
})[];
|
|
3932
|
-
meta:
|
|
4676
|
+
meta: CoreMeta;
|
|
3933
4677
|
}>;
|
|
3934
4678
|
get: _trpc_server.TRPCQueryProcedure<{
|
|
3935
4679
|
input: {
|
|
@@ -3952,7 +4696,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3952
4696
|
} & {
|
|
3953
4697
|
objects: Record<string, string>;
|
|
3954
4698
|
};
|
|
3955
|
-
meta:
|
|
4699
|
+
meta: CoreMeta;
|
|
3956
4700
|
}>;
|
|
3957
4701
|
update: _trpc_server.TRPCMutationProcedure<{
|
|
3958
4702
|
input: {
|
|
@@ -3978,7 +4722,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3978
4722
|
objects: Record<string, unknown>;
|
|
3979
4723
|
createdBy: string | null;
|
|
3980
4724
|
};
|
|
3981
|
-
meta:
|
|
4725
|
+
meta: CoreMeta;
|
|
3982
4726
|
}>;
|
|
3983
4727
|
remove: _trpc_server.TRPCMutationProcedure<{
|
|
3984
4728
|
input: {
|
|
@@ -3987,12 +4731,12 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3987
4731
|
output: {
|
|
3988
4732
|
removed: string;
|
|
3989
4733
|
};
|
|
3990
|
-
meta:
|
|
4734
|
+
meta: CoreMeta;
|
|
3991
4735
|
}>;
|
|
3992
4736
|
}>>;
|
|
3993
4737
|
collections: _trpc_server.TRPCBuiltRouter<{
|
|
3994
4738
|
ctx: CoreContext;
|
|
3995
|
-
meta:
|
|
4739
|
+
meta: CoreMeta;
|
|
3996
4740
|
errorShape: {
|
|
3997
4741
|
data: {
|
|
3998
4742
|
type?: string | undefined;
|
|
@@ -4031,26 +4775,22 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4031
4775
|
display: Record<string, unknown> | null;
|
|
4032
4776
|
headings: Record<string, unknown> | null;
|
|
4033
4777
|
}[];
|
|
4034
|
-
meta:
|
|
4778
|
+
meta: CoreMeta;
|
|
4035
4779
|
}>;
|
|
4036
4780
|
get: _trpc_server.TRPCQueryProcedure<{
|
|
4037
4781
|
input: {
|
|
4038
4782
|
idOrSlug: string;
|
|
4039
4783
|
};
|
|
4040
4784
|
output: {
|
|
4041
|
-
description: string | null;
|
|
4042
4785
|
id: string;
|
|
4043
4786
|
name: string;
|
|
4044
|
-
createdAt: string;
|
|
4045
|
-
updatedAt: string;
|
|
4046
4787
|
slug: string;
|
|
4047
|
-
|
|
4048
|
-
legacyExtra: Record<string, unknown> | null;
|
|
4049
|
-
createdBy: string | null;
|
|
4788
|
+
description: string | null;
|
|
4050
4789
|
fields: {
|
|
4790
|
+
[x: string]: unknown;
|
|
4051
4791
|
name: string;
|
|
4052
4792
|
label: string;
|
|
4053
|
-
type:
|
|
4793
|
+
type: string;
|
|
4054
4794
|
required: boolean;
|
|
4055
4795
|
hidden: boolean;
|
|
4056
4796
|
options?: string[] | undefined;
|
|
@@ -4059,8 +4799,13 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4059
4799
|
editor: Record<string, unknown> | null;
|
|
4060
4800
|
display: Record<string, unknown> | null;
|
|
4061
4801
|
headings: Record<string, unknown> | null;
|
|
4802
|
+
createdBy: string | null;
|
|
4803
|
+
updatedBy: string | null;
|
|
4804
|
+
legacyExtra: drizzle_zod.Json;
|
|
4805
|
+
createdAt: string;
|
|
4806
|
+
updatedAt: string;
|
|
4062
4807
|
};
|
|
4063
|
-
meta:
|
|
4808
|
+
meta: CoreMeta;
|
|
4064
4809
|
}>;
|
|
4065
4810
|
create: _trpc_server.TRPCMutationProcedure<{
|
|
4066
4811
|
input: {
|
|
@@ -4103,7 +4848,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4103
4848
|
display: Record<string, unknown> | null;
|
|
4104
4849
|
headings: Record<string, unknown> | null;
|
|
4105
4850
|
};
|
|
4106
|
-
meta:
|
|
4851
|
+
meta: CoreMeta;
|
|
4107
4852
|
}>;
|
|
4108
4853
|
update: _trpc_server.TRPCMutationProcedure<{
|
|
4109
4854
|
input: {
|
|
@@ -4149,7 +4894,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4149
4894
|
display: Record<string, unknown> | null;
|
|
4150
4895
|
headings: Record<string, unknown> | null;
|
|
4151
4896
|
};
|
|
4152
|
-
meta:
|
|
4897
|
+
meta: CoreMeta;
|
|
4153
4898
|
}>;
|
|
4154
4899
|
remove: _trpc_server.TRPCMutationProcedure<{
|
|
4155
4900
|
input: {
|
|
@@ -4158,11 +4903,11 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4158
4903
|
output: {
|
|
4159
4904
|
removed: string;
|
|
4160
4905
|
};
|
|
4161
|
-
meta:
|
|
4906
|
+
meta: CoreMeta;
|
|
4162
4907
|
}>;
|
|
4163
4908
|
entries: _trpc_server.TRPCBuiltRouter<{
|
|
4164
4909
|
ctx: CoreContext;
|
|
4165
|
-
meta:
|
|
4910
|
+
meta: CoreMeta;
|
|
4166
4911
|
errorShape: {
|
|
4167
4912
|
data: {
|
|
4168
4913
|
type?: string | undefined;
|
|
@@ -4182,43 +4927,80 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4182
4927
|
};
|
|
4183
4928
|
output: {
|
|
4184
4929
|
id: string;
|
|
4930
|
+
collectionId: string;
|
|
4931
|
+
title: string;
|
|
4932
|
+
slug: string;
|
|
4185
4933
|
data: Record<string, unknown>;
|
|
4934
|
+
related: string[] | null;
|
|
4935
|
+
createdBy: string | null;
|
|
4936
|
+
updatedBy: string | null;
|
|
4937
|
+
status: "draft" | "waiting" | "ready" | "scheduled" | "published";
|
|
4938
|
+
publishedAt: string | null;
|
|
4939
|
+
legacyExtra: drizzle_zod.Json;
|
|
4186
4940
|
createdAt: string;
|
|
4187
4941
|
updatedAt: string;
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
|
|
4942
|
+
};
|
|
4943
|
+
meta: CoreMeta;
|
|
4944
|
+
}>;
|
|
4945
|
+
search: _trpc_server.TRPCQueryProcedure<{
|
|
4946
|
+
input: {
|
|
4947
|
+
query: string;
|
|
4948
|
+
collections?: string[] | undefined;
|
|
4949
|
+
status?: ("draft" | "waiting" | "ready" | "scheduled" | "published")[] | undefined;
|
|
4950
|
+
limit?: number | undefined;
|
|
4951
|
+
};
|
|
4952
|
+
output: {
|
|
4953
|
+
id: string;
|
|
4192
4954
|
collectionId: string;
|
|
4193
4955
|
title: string;
|
|
4956
|
+
slug: string;
|
|
4957
|
+
data: Record<string, unknown>;
|
|
4194
4958
|
related: string[] | null;
|
|
4959
|
+
createdBy: string | null;
|
|
4960
|
+
updatedBy: string | null;
|
|
4195
4961
|
status: "draft" | "waiting" | "ready" | "scheduled" | "published";
|
|
4196
4962
|
publishedAt: string | null;
|
|
4197
|
-
|
|
4198
|
-
|
|
4963
|
+
legacyExtra: drizzle_zod.Json;
|
|
4964
|
+
createdAt: string;
|
|
4965
|
+
updatedAt: string;
|
|
4966
|
+
collectionSlug: string;
|
|
4967
|
+
}[];
|
|
4968
|
+
meta: CoreMeta;
|
|
4199
4969
|
}>;
|
|
4200
4970
|
list: _trpc_server.TRPCQueryProcedure<{
|
|
4201
4971
|
input: {
|
|
4202
4972
|
collectionId: string;
|
|
4973
|
+
status?: ("draft" | "waiting" | "ready" | "scheduled" | "published")[] | undefined;
|
|
4974
|
+
search?: string | undefined;
|
|
4975
|
+
order?: "title" | "recent" | "oldest" | undefined;
|
|
4203
4976
|
skip?: number | undefined;
|
|
4204
4977
|
limit?: number | undefined;
|
|
4205
4978
|
};
|
|
4206
4979
|
output: {
|
|
4207
4980
|
id: string;
|
|
4208
|
-
data: Record<string, unknown>;
|
|
4209
|
-
createdAt: string;
|
|
4210
|
-
updatedAt: string;
|
|
4211
|
-
slug: string;
|
|
4212
|
-
updatedBy: string | null;
|
|
4213
|
-
legacyExtra: Record<string, unknown> | null;
|
|
4214
|
-
createdBy: string | null;
|
|
4215
4981
|
collectionId: string;
|
|
4216
4982
|
title: string;
|
|
4983
|
+
slug: string;
|
|
4984
|
+
data: Record<string, unknown>;
|
|
4217
4985
|
related: string[] | null;
|
|
4986
|
+
createdBy: string | null;
|
|
4987
|
+
updatedBy: string | null;
|
|
4218
4988
|
status: "draft" | "waiting" | "ready" | "scheduled" | "published";
|
|
4219
4989
|
publishedAt: string | null;
|
|
4990
|
+
legacyExtra: drizzle_zod.Json;
|
|
4991
|
+
createdAt: string;
|
|
4992
|
+
updatedAt: string;
|
|
4220
4993
|
}[];
|
|
4221
|
-
meta:
|
|
4994
|
+
meta: CoreMeta;
|
|
4995
|
+
}>;
|
|
4996
|
+
count: _trpc_server.TRPCQueryProcedure<{
|
|
4997
|
+
input: {
|
|
4998
|
+
collectionId: string;
|
|
4999
|
+
status?: ("draft" | "waiting" | "ready" | "scheduled" | "published")[] | undefined;
|
|
5000
|
+
search?: string | undefined;
|
|
5001
|
+
};
|
|
5002
|
+
output: number;
|
|
5003
|
+
meta: CoreMeta;
|
|
4222
5004
|
}>;
|
|
4223
5005
|
create: _trpc_server.TRPCMutationProcedure<{
|
|
4224
5006
|
input: {
|
|
@@ -4240,13 +5022,13 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4240
5022
|
updatedBy: string | null;
|
|
4241
5023
|
legacyExtra: Record<string, unknown> | null;
|
|
4242
5024
|
createdBy: string | null;
|
|
4243
|
-
collectionId: string;
|
|
4244
5025
|
title: string;
|
|
5026
|
+
collectionId: string;
|
|
4245
5027
|
related: string[] | null;
|
|
4246
5028
|
status: "draft" | "waiting" | "ready" | "scheduled" | "published";
|
|
4247
5029
|
publishedAt: string | null;
|
|
4248
5030
|
};
|
|
4249
|
-
meta:
|
|
5031
|
+
meta: CoreMeta;
|
|
4250
5032
|
}>;
|
|
4251
5033
|
update: _trpc_server.TRPCMutationProcedure<{
|
|
4252
5034
|
input: {
|
|
@@ -4269,13 +5051,13 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4269
5051
|
updatedBy: string | null;
|
|
4270
5052
|
legacyExtra: Record<string, unknown> | null;
|
|
4271
5053
|
createdBy: string | null;
|
|
4272
|
-
collectionId: string;
|
|
4273
5054
|
title: string;
|
|
5055
|
+
collectionId: string;
|
|
4274
5056
|
related: string[] | null;
|
|
4275
5057
|
status: "draft" | "waiting" | "ready" | "scheduled" | "published";
|
|
4276
5058
|
publishedAt: string | null;
|
|
4277
5059
|
};
|
|
4278
|
-
meta:
|
|
5060
|
+
meta: CoreMeta;
|
|
4279
5061
|
}>;
|
|
4280
5062
|
remove: _trpc_server.TRPCMutationProcedure<{
|
|
4281
5063
|
input: {
|
|
@@ -4284,12 +5066,12 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4284
5066
|
output: {
|
|
4285
5067
|
removed: string;
|
|
4286
5068
|
};
|
|
4287
|
-
meta:
|
|
5069
|
+
meta: CoreMeta;
|
|
4288
5070
|
}>;
|
|
4289
5071
|
}>>;
|
|
4290
5072
|
}>>;
|
|
4291
5073
|
}>>;
|
|
4292
5074
|
type AppRouter = typeof appRouter;
|
|
4293
5075
|
|
|
4294
|
-
export { ALLOWED_MIME, CannotRemoveSelfError, CollectionNotFoundError, CollectionsService, DefinitionRepository, DeployFailedError, DeployHookMissingError, DomainError, DuplicateSlugError, EmailService, EntryNotFoundError, EntryRepository, FIELD_TYPES, FieldDefinition, FieldType, HealthService, InvalidEntryDataError, InvitationInvalidError, MediaNotFoundError, MediaRepository, MediaService, OrganizationAlreadyInitializedError, OrganizationNotInitializedError, OrganizationRepository, OrganizationService, PUBLICATION_STATUSES, S3Storage, SessionNotFoundError, TooManyAttemptsError, UnsupportedMimeError, UploadIncompleteError, UserNotFoundError, UsersRepository, UsersService, acceptInvitationDto, addressSchema, apiTokenCreateDto, apiTokens, apiTokensRouter, appRouter, authRouter, collectionDefinitions, collectionsRouter, connectDb, createCore, createStorage, createTypedError, definitionCreateDto, definitionUpdateDto, entries, entryCreateDto, entryUpdateDto, fieldDefinitionSchema, invitations, inviteDto, loginDto, media, mediaFinalizeDto, mediaRequestUploadDto, mediaRouter, mediaUpdateDto, organization, organizationInitDto, organizationRouter, organizationUpdateDto, parseEnv, requestPasswordResetDto, sessions, toPublicUser, userUpdateDto, users, usersRouter };
|
|
4295
|
-
export type { AcceptInvitationDto, Address, ApiToken, ApiTokenCreateDto, AppRouter, AuthSession, CollectionDefinition, Core, CoreContext, CoreEnv, CoreServices, DefinitionCreateDto, DefinitionUpdateDto, EmailEvent, Entry, EntryCreateDto, EntryUpdateDto, HealthStatus, Invitation, InviteDto, LoginDto, Media, MediaFinalizeDto, MediaRequestUploadDto, MediaUpdateDto, NewCollectionDefinition, NewEntry, NewMedia, NewOrganization, NewUser, Organization, OrganizationInitDto, OrganizationUpdateDto, PublicUser, RequestPasswordResetDto, S3Config, Session, StorageDriver, StoreDb, TrpcErrorCode, User, UserUpdateDto };
|
|
5076
|
+
export { ALLOWED_MIME, AgentToolNotFoundError, CannotRemoveSelfError, CollectionNotFoundError, CollectionsService, DefinitionRepository, DeployFailedError, DeployHookMissingError, DomainError, DuplicateSlugError, EmailService, EntryNotFoundError, EntryRepository, FIELD_TYPES, FieldDefinition, FieldType, HealthService, InvalidEntryDataError, InvitationInvalidError, MediaNotFoundError, MediaRepository, MediaService, OrganizationAlreadyInitializedError, OrganizationNotInitializedError, OrganizationRepository, OrganizationService, PUBLICATION_STATUSES, S3Storage, SessionNotFoundError, TooManyAttemptsError, UnsupportedMimeError, UploadIncompleteError, UserNotFoundError, UsersRepository, UsersService, acceptInvitationDto, addressSchema, agentTools, apiTokenCreateDto, apiTokens, apiTokensRouter, appRouter, authRouter, callTool, collectionDefinitions, collectionsRouter, connectDb, createCore, createStorage, createTypedError, definitionCreateDto, definitionDto, definitionUpdateDto, entries, entryCreateDto, entryDto, entrySearchHitDto, entryUpdateDto, fieldDefinitionSchema, invitations, inviteDto, loginDto, media, mediaFinalizeDto, mediaRequestUploadDto, mediaRouter, mediaUpdateDto, organization, organizationInitDto, organizationRouter, organizationUpdateDto, parseEnv, requestPasswordResetDto, sessions, toPublicUser, userUpdateDto, users, usersRouter };
|
|
5077
|
+
export type { AcceptInvitationDto, Address, AgentTool, AgentToolMeta, ApiToken, ApiTokenCreateDto, AppRouter, AuthSession, CollectionDefinition, Core, CoreContext, CoreEnv, CoreMeta, CoreServices, DefinitionCreateDto, DefinitionUpdateDto, EmailEvent, Entry, EntryCreateDto, EntrySearchHit, EntryUpdateDto, HealthStatus, Invitation, InviteDto, LoginDto, Media, MediaFinalizeDto, MediaRequestUploadDto, MediaUpdateDto, NewCollectionDefinition, NewEntry, NewMedia, NewOrganization, NewUser, Organization, OrganizationInitDto, OrganizationUpdateDto, PublicUser, RequestPasswordResetDto, S3Config, Session, StorageDriver, StoreDb, TrpcErrorCode, User, UserUpdateDto };
|