@open-commune/core 0.2.1 → 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 +923 -190
- package/dist/index.d.ts +923 -190
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
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;
|
|
@@ -1178,7 +1180,7 @@ declare const collectionDefinitions: drizzle_orm_sqlite_core.SQLiteTableWithColu
|
|
|
1178
1180
|
data: {
|
|
1179
1181
|
name: string;
|
|
1180
1182
|
label: string;
|
|
1181
|
-
type: "number" | "boolean" | "
|
|
1183
|
+
type: "number" | "boolean" | "text" | "rich-text" | "date" | "media" | "relation" | "select" | "steps" | "json";
|
|
1182
1184
|
required: boolean;
|
|
1183
1185
|
hidden: boolean;
|
|
1184
1186
|
options?: string[] | undefined;
|
|
@@ -1198,7 +1200,7 @@ declare const collectionDefinitions: drizzle_orm_sqlite_core.SQLiteTableWithColu
|
|
|
1198
1200
|
$type: {
|
|
1199
1201
|
name: string;
|
|
1200
1202
|
label: string;
|
|
1201
|
-
type: "number" | "boolean" | "
|
|
1203
|
+
type: "number" | "boolean" | "text" | "rich-text" | "date" | "media" | "relation" | "select" | "steps" | "json";
|
|
1202
1204
|
required: boolean;
|
|
1203
1205
|
hidden: boolean;
|
|
1204
1206
|
options?: string[] | undefined;
|
|
@@ -1892,13 +1894,13 @@ declare class UsersService {
|
|
|
1892
1894
|
verifyApiToken(token: string): Promise<boolean>;
|
|
1893
1895
|
revokeApiToken(id: string): Promise<void>;
|
|
1894
1896
|
listApiTokens(): Promise<Pick<{
|
|
1895
|
-
id: string;
|
|
1896
1897
|
name: string;
|
|
1898
|
+
id: string;
|
|
1897
1899
|
createdAt: string;
|
|
1898
1900
|
revokedAt: string | null;
|
|
1899
1901
|
tokenHash: string;
|
|
1900
1902
|
lastUsedAt: string | null;
|
|
1901
|
-
}, "
|
|
1903
|
+
}, "name" | "id" | "createdAt" | "revokedAt" | "lastUsedAt">[]>;
|
|
1902
1904
|
}
|
|
1903
1905
|
|
|
1904
1906
|
/**
|
|
@@ -1920,9 +1922,9 @@ declare const organizationInitDto: z.ZodObject<{
|
|
|
1920
1922
|
syndicate: "syndicate";
|
|
1921
1923
|
other: "other";
|
|
1922
1924
|
}>>;
|
|
1923
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1924
1925
|
name: z.ZodString;
|
|
1925
1926
|
slug: z.ZodString;
|
|
1927
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1926
1928
|
address: z.ZodOptional<z.ZodNullable<z.ZodType<{
|
|
1927
1929
|
street?: string | undefined;
|
|
1928
1930
|
postalCode?: string | undefined;
|
|
@@ -1953,9 +1955,9 @@ declare const organizationUpdateDto: z.ZodObject<{
|
|
|
1953
1955
|
syndicate: "syndicate";
|
|
1954
1956
|
other: "other";
|
|
1955
1957
|
}>>;
|
|
1956
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1957
1958
|
name: z.ZodOptional<z.ZodString>;
|
|
1958
1959
|
slug: z.ZodOptional<z.ZodString>;
|
|
1960
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1959
1961
|
address: z.ZodOptional<z.ZodNullable<z.ZodType<{
|
|
1960
1962
|
street?: string | undefined;
|
|
1961
1963
|
postalCode?: string | undefined;
|
|
@@ -2113,6 +2115,21 @@ declare class EntryRepository {
|
|
|
2113
2115
|
* entries would not fit in it anyway.
|
|
2114
2116
|
*/
|
|
2115
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[]>;
|
|
2116
2133
|
/** The total a paginated listing is a window onto. Counted in SQL. */
|
|
2117
2134
|
countMatching(options: {
|
|
2118
2135
|
collectionId: string;
|
|
@@ -2138,8 +2155,8 @@ declare class EntryRepository {
|
|
|
2138
2155
|
}
|
|
2139
2156
|
|
|
2140
2157
|
declare const definitionCreateDto: z.ZodObject<{
|
|
2141
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2142
2158
|
name: z.ZodString;
|
|
2159
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2143
2160
|
editor: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
|
|
2144
2161
|
display: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
|
|
2145
2162
|
headings: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
|
|
@@ -2149,14 +2166,14 @@ declare const definitionCreateDto: z.ZodObject<{
|
|
|
2149
2166
|
type: z.ZodEnum<{
|
|
2150
2167
|
number: "number";
|
|
2151
2168
|
boolean: "boolean";
|
|
2152
|
-
json: "json";
|
|
2153
|
-
date: "date";
|
|
2154
2169
|
text: "text";
|
|
2155
|
-
select: "select";
|
|
2156
|
-
media: "media";
|
|
2157
2170
|
"rich-text": "rich-text";
|
|
2171
|
+
date: "date";
|
|
2172
|
+
media: "media";
|
|
2158
2173
|
relation: "relation";
|
|
2174
|
+
select: "select";
|
|
2159
2175
|
steps: "steps";
|
|
2176
|
+
json: "json";
|
|
2160
2177
|
}>;
|
|
2161
2178
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
2162
2179
|
hidden: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -2169,9 +2186,9 @@ declare const definitionCreateDto: z.ZodObject<{
|
|
|
2169
2186
|
in: {};
|
|
2170
2187
|
}>;
|
|
2171
2188
|
declare const definitionUpdateDto: z.ZodObject<{
|
|
2172
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2173
2189
|
name: z.ZodOptional<z.ZodString>;
|
|
2174
2190
|
slug: z.ZodOptional<z.ZodString>;
|
|
2191
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2175
2192
|
editor: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
|
|
2176
2193
|
display: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
|
|
2177
2194
|
headings: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
|
|
@@ -2181,14 +2198,14 @@ declare const definitionUpdateDto: z.ZodObject<{
|
|
|
2181
2198
|
type: z.ZodEnum<{
|
|
2182
2199
|
number: "number";
|
|
2183
2200
|
boolean: "boolean";
|
|
2184
|
-
json: "json";
|
|
2185
|
-
date: "date";
|
|
2186
2201
|
text: "text";
|
|
2187
|
-
select: "select";
|
|
2188
|
-
media: "media";
|
|
2189
2202
|
"rich-text": "rich-text";
|
|
2203
|
+
date: "date";
|
|
2204
|
+
media: "media";
|
|
2190
2205
|
relation: "relation";
|
|
2206
|
+
select: "select";
|
|
2191
2207
|
steps: "steps";
|
|
2208
|
+
json: "json";
|
|
2192
2209
|
}>;
|
|
2193
2210
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
2194
2211
|
hidden: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -2199,6 +2216,292 @@ declare const definitionUpdateDto: z.ZodObject<{
|
|
|
2199
2216
|
out: {};
|
|
2200
2217
|
in: {};
|
|
2201
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>;
|
|
2202
2505
|
type DefinitionCreateDto = z.infer<typeof definitionCreateDto>;
|
|
2203
2506
|
type DefinitionUpdateDto = z.infer<typeof definitionUpdateDto>;
|
|
2204
2507
|
|
|
@@ -2235,8 +2538,302 @@ declare const entryUpdateDto: z.ZodObject<{
|
|
|
2235
2538
|
out: {};
|
|
2236
2539
|
in: {};
|
|
2237
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
|
+
}>;
|
|
2238
2834
|
type EntryCreateDto = z.infer<typeof entryCreateDto>;
|
|
2239
2835
|
type EntryUpdateDto = z.infer<typeof entryUpdateDto>;
|
|
2836
|
+
type EntrySearchHit = z.infer<typeof entrySearchHitDto>;
|
|
2240
2837
|
|
|
2241
2838
|
/**
|
|
2242
2839
|
* The content engine: collection definitions over a closed field-type set, and
|
|
@@ -2268,6 +2865,16 @@ declare class CollectionsService {
|
|
|
2268
2865
|
status?: Entry['status'][];
|
|
2269
2866
|
search?: string;
|
|
2270
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[]>;
|
|
2271
2878
|
listPublishedEntries(collectionIdOrSlug: string): Promise<Entry[]>;
|
|
2272
2879
|
createEntry(collectionIdOrSlug: string, input: EntryCreateDto, actorId?: string): Promise<Entry>;
|
|
2273
2880
|
/** PARTIAL update: `data` is merged field by field with what already exists. */
|
|
@@ -2350,9 +2957,82 @@ declare function createTypedError(type: string, trpcCode: TrpcErrorCode): {
|
|
|
2350
2957
|
stackTraceLimit: number;
|
|
2351
2958
|
};
|
|
2352
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
|
+
|
|
2353
3033
|
declare const organizationRouter: _trpc_server.TRPCBuiltRouter<{
|
|
2354
3034
|
ctx: CoreContext;
|
|
2355
|
-
meta:
|
|
3035
|
+
meta: CoreMeta;
|
|
2356
3036
|
errorShape: {
|
|
2357
3037
|
data: {
|
|
2358
3038
|
type?: string | undefined;
|
|
@@ -2370,10 +3050,10 @@ declare const organizationRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2370
3050
|
input: void;
|
|
2371
3051
|
output: {
|
|
2372
3052
|
type: "commune" | "intercommunality" | "syndicate" | "other";
|
|
2373
|
-
description: string | null;
|
|
2374
|
-
id: number;
|
|
2375
3053
|
name: string;
|
|
3054
|
+
id: number;
|
|
2376
3055
|
slug: string;
|
|
3056
|
+
description: string | null;
|
|
2377
3057
|
address: {
|
|
2378
3058
|
street?: string | undefined;
|
|
2379
3059
|
postalCode?: string | undefined;
|
|
@@ -2386,7 +3066,7 @@ declare const organizationRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2386
3066
|
createdAt: string;
|
|
2387
3067
|
updatedAt: string;
|
|
2388
3068
|
} | null;
|
|
2389
|
-
meta:
|
|
3069
|
+
meta: CoreMeta;
|
|
2390
3070
|
}>;
|
|
2391
3071
|
init: _trpc_server.TRPCMutationProcedure<{
|
|
2392
3072
|
input: {
|
|
@@ -2404,10 +3084,10 @@ declare const organizationRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2404
3084
|
};
|
|
2405
3085
|
output: {
|
|
2406
3086
|
type: "commune" | "intercommunality" | "syndicate" | "other";
|
|
2407
|
-
description: string | null;
|
|
2408
|
-
id: number;
|
|
2409
3087
|
name: string;
|
|
3088
|
+
id: number;
|
|
2410
3089
|
slug: string;
|
|
3090
|
+
description: string | null;
|
|
2411
3091
|
address: {
|
|
2412
3092
|
street?: string | undefined;
|
|
2413
3093
|
postalCode?: string | undefined;
|
|
@@ -2420,14 +3100,14 @@ declare const organizationRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2420
3100
|
createdAt: string;
|
|
2421
3101
|
updatedAt: string;
|
|
2422
3102
|
};
|
|
2423
|
-
meta:
|
|
3103
|
+
meta: CoreMeta;
|
|
2424
3104
|
}>;
|
|
2425
3105
|
update: _trpc_server.TRPCMutationProcedure<{
|
|
2426
3106
|
input: {
|
|
2427
3107
|
type?: "commune" | "intercommunality" | "syndicate" | "other" | undefined;
|
|
2428
|
-
description?: string | null | undefined;
|
|
2429
3108
|
name?: string | undefined;
|
|
2430
3109
|
slug?: string | undefined;
|
|
3110
|
+
description?: string | null | undefined;
|
|
2431
3111
|
address?: {
|
|
2432
3112
|
street?: string | undefined;
|
|
2433
3113
|
postalCode?: string | undefined;
|
|
@@ -2438,10 +3118,10 @@ declare const organizationRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2438
3118
|
};
|
|
2439
3119
|
output: {
|
|
2440
3120
|
type: "commune" | "intercommunality" | "syndicate" | "other";
|
|
2441
|
-
description: string | null;
|
|
2442
|
-
id: number;
|
|
2443
3121
|
name: string;
|
|
3122
|
+
id: number;
|
|
2444
3123
|
slug: string;
|
|
3124
|
+
description: string | null;
|
|
2445
3125
|
address: {
|
|
2446
3126
|
street?: string | undefined;
|
|
2447
3127
|
postalCode?: string | undefined;
|
|
@@ -2454,14 +3134,14 @@ declare const organizationRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2454
3134
|
createdAt: string;
|
|
2455
3135
|
updatedAt: string;
|
|
2456
3136
|
};
|
|
2457
|
-
meta:
|
|
3137
|
+
meta: CoreMeta;
|
|
2458
3138
|
}>;
|
|
2459
3139
|
deploy: _trpc_server.TRPCMutationProcedure<{
|
|
2460
3140
|
input: void;
|
|
2461
3141
|
output: {
|
|
2462
3142
|
status: number;
|
|
2463
3143
|
};
|
|
2464
|
-
meta:
|
|
3144
|
+
meta: CoreMeta;
|
|
2465
3145
|
}>;
|
|
2466
3146
|
}>>;
|
|
2467
3147
|
|
|
@@ -2582,7 +3262,7 @@ type ApiTokenCreateDto = z.infer<typeof apiTokenCreateDto>;
|
|
|
2582
3262
|
|
|
2583
3263
|
declare const authRouter: _trpc_server.TRPCBuiltRouter<{
|
|
2584
3264
|
ctx: CoreContext;
|
|
2585
|
-
meta:
|
|
3265
|
+
meta: CoreMeta;
|
|
2586
3266
|
errorShape: {
|
|
2587
3267
|
data: {
|
|
2588
3268
|
type?: string | undefined;
|
|
@@ -2613,14 +3293,14 @@ declare const authRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2613
3293
|
role: "admin" | "redacteur";
|
|
2614
3294
|
};
|
|
2615
3295
|
};
|
|
2616
|
-
meta:
|
|
3296
|
+
meta: CoreMeta;
|
|
2617
3297
|
}>;
|
|
2618
3298
|
logout: _trpc_server.TRPCMutationProcedure<{
|
|
2619
3299
|
input: void;
|
|
2620
3300
|
output: {
|
|
2621
3301
|
loggedOut: boolean;
|
|
2622
3302
|
};
|
|
2623
|
-
meta:
|
|
3303
|
+
meta: CoreMeta;
|
|
2624
3304
|
}>;
|
|
2625
3305
|
me: _trpc_server.TRPCQueryProcedure<{
|
|
2626
3306
|
input: void;
|
|
@@ -2632,12 +3312,12 @@ declare const authRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2632
3312
|
role: "admin" | "redacteur";
|
|
2633
3313
|
};
|
|
2634
3314
|
};
|
|
2635
|
-
meta:
|
|
3315
|
+
meta: CoreMeta;
|
|
2636
3316
|
}>;
|
|
2637
3317
|
/** Device management: the sessions listed on the account page. */
|
|
2638
3318
|
sessions: _trpc_server.TRPCBuiltRouter<{
|
|
2639
3319
|
ctx: CoreContext;
|
|
2640
|
-
meta:
|
|
3320
|
+
meta: CoreMeta;
|
|
2641
3321
|
errorShape: {
|
|
2642
3322
|
data: {
|
|
2643
3323
|
type?: string | undefined;
|
|
@@ -2661,7 +3341,7 @@ declare const authRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2661
3341
|
ip: string | null;
|
|
2662
3342
|
current: boolean;
|
|
2663
3343
|
}[];
|
|
2664
|
-
meta:
|
|
3344
|
+
meta: CoreMeta;
|
|
2665
3345
|
}>;
|
|
2666
3346
|
revoke: _trpc_server.TRPCMutationProcedure<{
|
|
2667
3347
|
input: {
|
|
@@ -2670,7 +3350,7 @@ declare const authRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2670
3350
|
output: {
|
|
2671
3351
|
revoked: string;
|
|
2672
3352
|
};
|
|
2673
|
-
meta:
|
|
3353
|
+
meta: CoreMeta;
|
|
2674
3354
|
}>;
|
|
2675
3355
|
}>>;
|
|
2676
3356
|
/** Consume an invitation link and set the password (public, single-use). */
|
|
@@ -2688,7 +3368,7 @@ declare const authRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2688
3368
|
role: "admin" | "redacteur";
|
|
2689
3369
|
};
|
|
2690
3370
|
};
|
|
2691
|
-
meta:
|
|
3371
|
+
meta: CoreMeta;
|
|
2692
3372
|
}>;
|
|
2693
3373
|
/**
|
|
2694
3374
|
* « Forgotten password » — public, and the response is ALWAYS { ok: true }
|
|
@@ -2702,12 +3382,12 @@ declare const authRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2702
3382
|
output: {
|
|
2703
3383
|
ok: boolean;
|
|
2704
3384
|
};
|
|
2705
|
-
meta:
|
|
3385
|
+
meta: CoreMeta;
|
|
2706
3386
|
}>;
|
|
2707
3387
|
}>>;
|
|
2708
3388
|
declare const usersRouter: _trpc_server.TRPCBuiltRouter<{
|
|
2709
3389
|
ctx: CoreContext;
|
|
2710
|
-
meta:
|
|
3390
|
+
meta: CoreMeta;
|
|
2711
3391
|
errorShape: {
|
|
2712
3392
|
data: {
|
|
2713
3393
|
type?: string | undefined;
|
|
@@ -2729,7 +3409,7 @@ declare const usersRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2729
3409
|
name: string;
|
|
2730
3410
|
role: "admin" | "redacteur";
|
|
2731
3411
|
}[];
|
|
2732
|
-
meta:
|
|
3412
|
+
meta: CoreMeta;
|
|
2733
3413
|
}>;
|
|
2734
3414
|
/**
|
|
2735
3415
|
* A {id, name} directory readable by any signed-in member: the admin shows
|
|
@@ -2742,7 +3422,7 @@ declare const usersRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2742
3422
|
id: string;
|
|
2743
3423
|
name: string;
|
|
2744
3424
|
}[];
|
|
2745
|
-
meta:
|
|
3425
|
+
meta: CoreMeta;
|
|
2746
3426
|
}>;
|
|
2747
3427
|
/** Read a single user. */
|
|
2748
3428
|
get: _trpc_server.TRPCQueryProcedure<{
|
|
@@ -2755,7 +3435,7 @@ declare const usersRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2755
3435
|
name: string;
|
|
2756
3436
|
role: "admin" | "redacteur";
|
|
2757
3437
|
};
|
|
2758
|
-
meta:
|
|
3438
|
+
meta: CoreMeta;
|
|
2759
3439
|
}>;
|
|
2760
3440
|
/** Invite a new member — the single-use link is returned to the admin. */
|
|
2761
3441
|
invite: _trpc_server.TRPCMutationProcedure<{
|
|
@@ -2767,7 +3447,7 @@ declare const usersRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2767
3447
|
token: string;
|
|
2768
3448
|
expiresAt: string;
|
|
2769
3449
|
};
|
|
2770
|
-
meta:
|
|
3450
|
+
meta: CoreMeta;
|
|
2771
3451
|
}>;
|
|
2772
3452
|
update: _trpc_server.TRPCMutationProcedure<{
|
|
2773
3453
|
input: {
|
|
@@ -2784,7 +3464,7 @@ declare const usersRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2784
3464
|
name: string;
|
|
2785
3465
|
role: "admin" | "redacteur";
|
|
2786
3466
|
};
|
|
2787
|
-
meta:
|
|
3467
|
+
meta: CoreMeta;
|
|
2788
3468
|
}>;
|
|
2789
3469
|
remove: _trpc_server.TRPCMutationProcedure<{
|
|
2790
3470
|
input: {
|
|
@@ -2793,12 +3473,12 @@ declare const usersRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2793
3473
|
output: {
|
|
2794
3474
|
removed: string;
|
|
2795
3475
|
};
|
|
2796
|
-
meta:
|
|
3476
|
+
meta: CoreMeta;
|
|
2797
3477
|
}>;
|
|
2798
3478
|
}>>;
|
|
2799
3479
|
declare const apiTokensRouter: _trpc_server.TRPCBuiltRouter<{
|
|
2800
3480
|
ctx: CoreContext;
|
|
2801
|
-
meta:
|
|
3481
|
+
meta: CoreMeta;
|
|
2802
3482
|
errorShape: {
|
|
2803
3483
|
data: {
|
|
2804
3484
|
type?: string | undefined;
|
|
@@ -2815,14 +3495,14 @@ declare const apiTokensRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2815
3495
|
list: _trpc_server.TRPCQueryProcedure<{
|
|
2816
3496
|
input: void;
|
|
2817
3497
|
output: Pick<{
|
|
2818
|
-
id: string;
|
|
2819
3498
|
name: string;
|
|
3499
|
+
id: string;
|
|
2820
3500
|
createdAt: string;
|
|
2821
3501
|
revokedAt: string | null;
|
|
2822
3502
|
tokenHash: string;
|
|
2823
3503
|
lastUsedAt: string | null;
|
|
2824
|
-
}, "
|
|
2825
|
-
meta:
|
|
3504
|
+
}, "name" | "id" | "createdAt" | "revokedAt" | "lastUsedAt">[];
|
|
3505
|
+
meta: CoreMeta;
|
|
2826
3506
|
}>;
|
|
2827
3507
|
/** The plaintext token is returned ONCE — only its hash is stored. */
|
|
2828
3508
|
create: _trpc_server.TRPCMutationProcedure<{
|
|
@@ -2834,7 +3514,7 @@ declare const apiTokensRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2834
3514
|
id: string;
|
|
2835
3515
|
name: string;
|
|
2836
3516
|
};
|
|
2837
|
-
meta:
|
|
3517
|
+
meta: CoreMeta;
|
|
2838
3518
|
}>;
|
|
2839
3519
|
revoke: _trpc_server.TRPCMutationProcedure<{
|
|
2840
3520
|
input: {
|
|
@@ -2843,7 +3523,7 @@ declare const apiTokensRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2843
3523
|
output: {
|
|
2844
3524
|
revoked: string;
|
|
2845
3525
|
};
|
|
2846
|
-
meta:
|
|
3526
|
+
meta: CoreMeta;
|
|
2847
3527
|
}>;
|
|
2848
3528
|
}>>;
|
|
2849
3529
|
|
|
@@ -2931,7 +3611,7 @@ declare const TooManyAttemptsError: {
|
|
|
2931
3611
|
|
|
2932
3612
|
declare const mediaRouter: _trpc_server.TRPCBuiltRouter<{
|
|
2933
3613
|
ctx: CoreContext;
|
|
2934
|
-
meta:
|
|
3614
|
+
meta: CoreMeta;
|
|
2935
3615
|
errorShape: {
|
|
2936
3616
|
data: {
|
|
2937
3617
|
type?: string | undefined;
|
|
@@ -2955,7 +3635,7 @@ declare const mediaRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2955
3635
|
key: string;
|
|
2956
3636
|
url: string;
|
|
2957
3637
|
};
|
|
2958
|
-
meta:
|
|
3638
|
+
meta: CoreMeta;
|
|
2959
3639
|
}>;
|
|
2960
3640
|
finalize: _trpc_server.TRPCMutationProcedure<{
|
|
2961
3641
|
input: {
|
|
@@ -2966,65 +3646,65 @@ declare const mediaRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2966
3646
|
metaData?: Record<string, unknown> | undefined;
|
|
2967
3647
|
};
|
|
2968
3648
|
output: {
|
|
3649
|
+
filename: string;
|
|
2969
3650
|
id: string;
|
|
2970
3651
|
updatedBy: string | null;
|
|
2971
3652
|
legacyExtra: Record<string, unknown> | null;
|
|
2972
3653
|
createdAt: string;
|
|
2973
3654
|
updatedAt: string;
|
|
2974
|
-
filename: string;
|
|
2975
3655
|
mime: string;
|
|
2976
|
-
metaData: Record<string, unknown> | null;
|
|
2977
|
-
alt: string | null;
|
|
2978
3656
|
size: number;
|
|
3657
|
+
alt: string | null;
|
|
2979
3658
|
caption: string | null;
|
|
2980
3659
|
objects: Record<string, unknown>;
|
|
3660
|
+
metaData: Record<string, unknown> | null;
|
|
2981
3661
|
createdBy: string | null;
|
|
2982
3662
|
};
|
|
2983
|
-
meta:
|
|
3663
|
+
meta: CoreMeta;
|
|
2984
3664
|
}>;
|
|
2985
3665
|
list: _trpc_server.TRPCQueryProcedure<{
|
|
2986
3666
|
input: void;
|
|
2987
3667
|
output: ({
|
|
3668
|
+
filename: string;
|
|
2988
3669
|
id: string;
|
|
2989
3670
|
updatedBy: string | null;
|
|
2990
3671
|
legacyExtra: Record<string, unknown> | null;
|
|
2991
3672
|
createdAt: string;
|
|
2992
3673
|
updatedAt: string;
|
|
2993
|
-
filename: string;
|
|
2994
3674
|
mime: string;
|
|
2995
|
-
metaData: Record<string, unknown> | null;
|
|
2996
|
-
alt: string | null;
|
|
2997
3675
|
size: number;
|
|
3676
|
+
alt: string | null;
|
|
2998
3677
|
caption: string | null;
|
|
2999
3678
|
objects: Record<string, unknown>;
|
|
3679
|
+
metaData: Record<string, unknown> | null;
|
|
3000
3680
|
createdBy: string | null;
|
|
3001
3681
|
} & {
|
|
3002
3682
|
objects: Record<string, string>;
|
|
3003
3683
|
})[];
|
|
3004
|
-
meta:
|
|
3684
|
+
meta: CoreMeta;
|
|
3005
3685
|
}>;
|
|
3006
3686
|
get: _trpc_server.TRPCQueryProcedure<{
|
|
3007
3687
|
input: {
|
|
3008
3688
|
id: string;
|
|
3009
3689
|
};
|
|
3010
3690
|
output: {
|
|
3691
|
+
filename: string;
|
|
3011
3692
|
id: string;
|
|
3012
3693
|
updatedBy: string | null;
|
|
3013
3694
|
legacyExtra: Record<string, unknown> | null;
|
|
3014
3695
|
createdAt: string;
|
|
3015
3696
|
updatedAt: string;
|
|
3016
|
-
filename: string;
|
|
3017
3697
|
mime: string;
|
|
3018
|
-
metaData: Record<string, unknown> | null;
|
|
3019
|
-
alt: string | null;
|
|
3020
3698
|
size: number;
|
|
3699
|
+
alt: string | null;
|
|
3021
3700
|
caption: string | null;
|
|
3022
3701
|
objects: Record<string, unknown>;
|
|
3702
|
+
metaData: Record<string, unknown> | null;
|
|
3023
3703
|
createdBy: string | null;
|
|
3024
3704
|
} & {
|
|
3025
3705
|
objects: Record<string, string>;
|
|
3026
3706
|
};
|
|
3027
|
-
meta:
|
|
3707
|
+
meta: CoreMeta;
|
|
3028
3708
|
}>;
|
|
3029
3709
|
update: _trpc_server.TRPCMutationProcedure<{
|
|
3030
3710
|
input: {
|
|
@@ -3036,21 +3716,21 @@ declare const mediaRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3036
3716
|
};
|
|
3037
3717
|
};
|
|
3038
3718
|
output: {
|
|
3719
|
+
filename: string;
|
|
3039
3720
|
id: string;
|
|
3040
3721
|
updatedBy: string | null;
|
|
3041
3722
|
legacyExtra: Record<string, unknown> | null;
|
|
3042
3723
|
createdAt: string;
|
|
3043
3724
|
updatedAt: string;
|
|
3044
|
-
filename: string;
|
|
3045
3725
|
mime: string;
|
|
3046
|
-
metaData: Record<string, unknown> | null;
|
|
3047
|
-
alt: string | null;
|
|
3048
3726
|
size: number;
|
|
3727
|
+
alt: string | null;
|
|
3049
3728
|
caption: string | null;
|
|
3050
3729
|
objects: Record<string, unknown>;
|
|
3730
|
+
metaData: Record<string, unknown> | null;
|
|
3051
3731
|
createdBy: string | null;
|
|
3052
3732
|
};
|
|
3053
|
-
meta:
|
|
3733
|
+
meta: CoreMeta;
|
|
3054
3734
|
}>;
|
|
3055
3735
|
remove: _trpc_server.TRPCMutationProcedure<{
|
|
3056
3736
|
input: {
|
|
@@ -3059,7 +3739,7 @@ declare const mediaRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3059
3739
|
output: {
|
|
3060
3740
|
removed: string;
|
|
3061
3741
|
};
|
|
3062
|
-
meta:
|
|
3742
|
+
meta: CoreMeta;
|
|
3063
3743
|
}>;
|
|
3064
3744
|
}>>;
|
|
3065
3745
|
|
|
@@ -3114,7 +3794,7 @@ declare const UploadIncompleteError: {
|
|
|
3114
3794
|
|
|
3115
3795
|
declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
3116
3796
|
ctx: CoreContext;
|
|
3117
|
-
meta:
|
|
3797
|
+
meta: CoreMeta;
|
|
3118
3798
|
errorShape: {
|
|
3119
3799
|
data: {
|
|
3120
3800
|
type?: string | undefined;
|
|
@@ -3131,10 +3811,10 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3131
3811
|
list: _trpc_server.TRPCQueryProcedure<{
|
|
3132
3812
|
input: void;
|
|
3133
3813
|
output: {
|
|
3134
|
-
description: string | null;
|
|
3135
|
-
id: string;
|
|
3136
3814
|
name: string;
|
|
3815
|
+
id: string;
|
|
3137
3816
|
slug: string;
|
|
3817
|
+
description: string | null;
|
|
3138
3818
|
updatedBy: string | null;
|
|
3139
3819
|
legacyExtra: Record<string, unknown> | null;
|
|
3140
3820
|
createdAt: string;
|
|
@@ -3143,7 +3823,7 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3143
3823
|
fields: {
|
|
3144
3824
|
name: string;
|
|
3145
3825
|
label: string;
|
|
3146
|
-
type: "number" | "boolean" | "
|
|
3826
|
+
type: "number" | "boolean" | "text" | "rich-text" | "date" | "media" | "relation" | "select" | "steps" | "json";
|
|
3147
3827
|
required: boolean;
|
|
3148
3828
|
hidden: boolean;
|
|
3149
3829
|
options?: string[] | undefined;
|
|
@@ -3153,26 +3833,22 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3153
3833
|
display: Record<string, unknown> | null;
|
|
3154
3834
|
headings: Record<string, unknown> | null;
|
|
3155
3835
|
}[];
|
|
3156
|
-
meta:
|
|
3836
|
+
meta: CoreMeta;
|
|
3157
3837
|
}>;
|
|
3158
3838
|
get: _trpc_server.TRPCQueryProcedure<{
|
|
3159
3839
|
input: {
|
|
3160
3840
|
idOrSlug: string;
|
|
3161
3841
|
};
|
|
3162
3842
|
output: {
|
|
3163
|
-
description: string | null;
|
|
3164
3843
|
id: string;
|
|
3165
3844
|
name: string;
|
|
3166
3845
|
slug: string;
|
|
3167
|
-
|
|
3168
|
-
legacyExtra: Record<string, unknown> | null;
|
|
3169
|
-
createdAt: string;
|
|
3170
|
-
updatedAt: string;
|
|
3171
|
-
createdBy: string | null;
|
|
3846
|
+
description: string | null;
|
|
3172
3847
|
fields: {
|
|
3848
|
+
[x: string]: unknown;
|
|
3173
3849
|
name: string;
|
|
3174
3850
|
label: string;
|
|
3175
|
-
type:
|
|
3851
|
+
type: string;
|
|
3176
3852
|
required: boolean;
|
|
3177
3853
|
hidden: boolean;
|
|
3178
3854
|
options?: string[] | undefined;
|
|
@@ -3181,8 +3857,13 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3181
3857
|
editor: Record<string, unknown> | null;
|
|
3182
3858
|
display: Record<string, unknown> | null;
|
|
3183
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;
|
|
3184
3865
|
};
|
|
3185
|
-
meta:
|
|
3866
|
+
meta: CoreMeta;
|
|
3186
3867
|
}>;
|
|
3187
3868
|
create: _trpc_server.TRPCMutationProcedure<{
|
|
3188
3869
|
input: {
|
|
@@ -3190,7 +3871,7 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3190
3871
|
fields: {
|
|
3191
3872
|
name: string;
|
|
3192
3873
|
label: string;
|
|
3193
|
-
type: "number" | "boolean" | "
|
|
3874
|
+
type: "number" | "boolean" | "text" | "rich-text" | "date" | "media" | "relation" | "select" | "steps" | "json";
|
|
3194
3875
|
required?: boolean | undefined;
|
|
3195
3876
|
hidden?: boolean | undefined;
|
|
3196
3877
|
options?: string[] | undefined;
|
|
@@ -3203,10 +3884,10 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3203
3884
|
slug?: string | undefined;
|
|
3204
3885
|
};
|
|
3205
3886
|
output: {
|
|
3206
|
-
description: string | null;
|
|
3207
|
-
id: string;
|
|
3208
3887
|
name: string;
|
|
3888
|
+
id: string;
|
|
3209
3889
|
slug: string;
|
|
3890
|
+
description: string | null;
|
|
3210
3891
|
updatedBy: string | null;
|
|
3211
3892
|
legacyExtra: Record<string, unknown> | null;
|
|
3212
3893
|
createdAt: string;
|
|
@@ -3215,7 +3896,7 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3215
3896
|
fields: {
|
|
3216
3897
|
name: string;
|
|
3217
3898
|
label: string;
|
|
3218
|
-
type: "number" | "boolean" | "
|
|
3899
|
+
type: "number" | "boolean" | "text" | "rich-text" | "date" | "media" | "relation" | "select" | "steps" | "json";
|
|
3219
3900
|
required: boolean;
|
|
3220
3901
|
hidden: boolean;
|
|
3221
3902
|
options?: string[] | undefined;
|
|
@@ -3225,22 +3906,22 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3225
3906
|
display: Record<string, unknown> | null;
|
|
3226
3907
|
headings: Record<string, unknown> | null;
|
|
3227
3908
|
};
|
|
3228
|
-
meta:
|
|
3909
|
+
meta: CoreMeta;
|
|
3229
3910
|
}>;
|
|
3230
3911
|
update: _trpc_server.TRPCMutationProcedure<{
|
|
3231
3912
|
input: {
|
|
3232
3913
|
id: string;
|
|
3233
3914
|
data: {
|
|
3234
|
-
description?: string | null | undefined;
|
|
3235
3915
|
name?: string | undefined;
|
|
3236
3916
|
slug?: string | undefined;
|
|
3917
|
+
description?: string | null | undefined;
|
|
3237
3918
|
editor?: Record<string, unknown> | null | undefined;
|
|
3238
3919
|
display?: Record<string, unknown> | null | undefined;
|
|
3239
3920
|
headings?: Record<string, unknown> | null | undefined;
|
|
3240
3921
|
fields?: {
|
|
3241
3922
|
name: string;
|
|
3242
3923
|
label: string;
|
|
3243
|
-
type: "number" | "boolean" | "
|
|
3924
|
+
type: "number" | "boolean" | "text" | "rich-text" | "date" | "media" | "relation" | "select" | "steps" | "json";
|
|
3244
3925
|
required?: boolean | undefined;
|
|
3245
3926
|
hidden?: boolean | undefined;
|
|
3246
3927
|
options?: string[] | undefined;
|
|
@@ -3249,10 +3930,10 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3249
3930
|
};
|
|
3250
3931
|
};
|
|
3251
3932
|
output: {
|
|
3252
|
-
description: string | null;
|
|
3253
|
-
id: string;
|
|
3254
3933
|
name: string;
|
|
3934
|
+
id: string;
|
|
3255
3935
|
slug: string;
|
|
3936
|
+
description: string | null;
|
|
3256
3937
|
updatedBy: string | null;
|
|
3257
3938
|
legacyExtra: Record<string, unknown> | null;
|
|
3258
3939
|
createdAt: string;
|
|
@@ -3261,7 +3942,7 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3261
3942
|
fields: {
|
|
3262
3943
|
name: string;
|
|
3263
3944
|
label: string;
|
|
3264
|
-
type: "number" | "boolean" | "
|
|
3945
|
+
type: "number" | "boolean" | "text" | "rich-text" | "date" | "media" | "relation" | "select" | "steps" | "json";
|
|
3265
3946
|
required: boolean;
|
|
3266
3947
|
hidden: boolean;
|
|
3267
3948
|
options?: string[] | undefined;
|
|
@@ -3271,7 +3952,7 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3271
3952
|
display: Record<string, unknown> | null;
|
|
3272
3953
|
headings: Record<string, unknown> | null;
|
|
3273
3954
|
};
|
|
3274
|
-
meta:
|
|
3955
|
+
meta: CoreMeta;
|
|
3275
3956
|
}>;
|
|
3276
3957
|
remove: _trpc_server.TRPCMutationProcedure<{
|
|
3277
3958
|
input: {
|
|
@@ -3280,11 +3961,11 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3280
3961
|
output: {
|
|
3281
3962
|
removed: string;
|
|
3282
3963
|
};
|
|
3283
|
-
meta:
|
|
3964
|
+
meta: CoreMeta;
|
|
3284
3965
|
}>;
|
|
3285
3966
|
entries: _trpc_server.TRPCBuiltRouter<{
|
|
3286
3967
|
ctx: CoreContext;
|
|
3287
|
-
meta:
|
|
3968
|
+
meta: CoreMeta;
|
|
3288
3969
|
errorShape: {
|
|
3289
3970
|
data: {
|
|
3290
3971
|
type?: string | undefined;
|
|
@@ -3304,20 +3985,46 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3304
3985
|
};
|
|
3305
3986
|
output: {
|
|
3306
3987
|
id: string;
|
|
3307
|
-
|
|
3988
|
+
collectionId: string;
|
|
3989
|
+
title: string;
|
|
3308
3990
|
slug: string;
|
|
3991
|
+
data: Record<string, unknown>;
|
|
3992
|
+
related: string[] | null;
|
|
3993
|
+
createdBy: string | null;
|
|
3309
3994
|
updatedBy: string | null;
|
|
3310
|
-
|
|
3995
|
+
status: "draft" | "waiting" | "ready" | "scheduled" | "published";
|
|
3996
|
+
publishedAt: string | null;
|
|
3997
|
+
legacyExtra: drizzle_zod.Json;
|
|
3311
3998
|
createdAt: string;
|
|
3312
3999
|
updatedAt: string;
|
|
3313
|
-
|
|
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;
|
|
3314
4013
|
collectionId: string;
|
|
3315
4014
|
title: string;
|
|
4015
|
+
slug: string;
|
|
4016
|
+
data: Record<string, unknown>;
|
|
3316
4017
|
related: string[] | null;
|
|
4018
|
+
createdBy: string | null;
|
|
4019
|
+
updatedBy: string | null;
|
|
3317
4020
|
status: "draft" | "waiting" | "ready" | "scheduled" | "published";
|
|
3318
4021
|
publishedAt: string | null;
|
|
3319
|
-
|
|
3320
|
-
|
|
4022
|
+
legacyExtra: drizzle_zod.Json;
|
|
4023
|
+
createdAt: string;
|
|
4024
|
+
updatedAt: string;
|
|
4025
|
+
collectionSlug: string;
|
|
4026
|
+
}[];
|
|
4027
|
+
meta: CoreMeta;
|
|
3321
4028
|
}>;
|
|
3322
4029
|
/** Narrowing is optional: a caller that ignores it keeps the old behaviour. */
|
|
3323
4030
|
list: _trpc_server.TRPCQueryProcedure<{
|
|
@@ -3331,20 +4038,20 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3331
4038
|
};
|
|
3332
4039
|
output: {
|
|
3333
4040
|
id: string;
|
|
3334
|
-
data: Record<string, unknown>;
|
|
3335
|
-
slug: string;
|
|
3336
|
-
updatedBy: string | null;
|
|
3337
|
-
legacyExtra: Record<string, unknown> | null;
|
|
3338
|
-
createdAt: string;
|
|
3339
|
-
updatedAt: string;
|
|
3340
|
-
createdBy: string | null;
|
|
3341
4041
|
collectionId: string;
|
|
3342
4042
|
title: string;
|
|
4043
|
+
slug: string;
|
|
4044
|
+
data: Record<string, unknown>;
|
|
3343
4045
|
related: string[] | null;
|
|
4046
|
+
createdBy: string | null;
|
|
4047
|
+
updatedBy: string | null;
|
|
3344
4048
|
status: "draft" | "waiting" | "ready" | "scheduled" | "published";
|
|
3345
4049
|
publishedAt: string | null;
|
|
4050
|
+
legacyExtra: drizzle_zod.Json;
|
|
4051
|
+
createdAt: string;
|
|
4052
|
+
updatedAt: string;
|
|
3346
4053
|
}[];
|
|
3347
|
-
meta:
|
|
4054
|
+
meta: CoreMeta;
|
|
3348
4055
|
}>;
|
|
3349
4056
|
/** The total a listing is a window onto, under the same narrowing. */
|
|
3350
4057
|
count: _trpc_server.TRPCQueryProcedure<{
|
|
@@ -3354,7 +4061,7 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3354
4061
|
search?: string | undefined;
|
|
3355
4062
|
};
|
|
3356
4063
|
output: number;
|
|
3357
|
-
meta:
|
|
4064
|
+
meta: CoreMeta;
|
|
3358
4065
|
}>;
|
|
3359
4066
|
create: _trpc_server.TRPCMutationProcedure<{
|
|
3360
4067
|
input: {
|
|
@@ -3382,7 +4089,7 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3382
4089
|
status: "draft" | "waiting" | "ready" | "scheduled" | "published";
|
|
3383
4090
|
publishedAt: string | null;
|
|
3384
4091
|
};
|
|
3385
|
-
meta:
|
|
4092
|
+
meta: CoreMeta;
|
|
3386
4093
|
}>;
|
|
3387
4094
|
update: _trpc_server.TRPCMutationProcedure<{
|
|
3388
4095
|
input: {
|
|
@@ -3411,7 +4118,7 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3411
4118
|
status: "draft" | "waiting" | "ready" | "scheduled" | "published";
|
|
3412
4119
|
publishedAt: string | null;
|
|
3413
4120
|
};
|
|
3414
|
-
meta:
|
|
4121
|
+
meta: CoreMeta;
|
|
3415
4122
|
}>;
|
|
3416
4123
|
remove: _trpc_server.TRPCMutationProcedure<{
|
|
3417
4124
|
input: {
|
|
@@ -3420,7 +4127,7 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3420
4127
|
output: {
|
|
3421
4128
|
removed: string;
|
|
3422
4129
|
};
|
|
3423
|
-
meta:
|
|
4130
|
+
meta: CoreMeta;
|
|
3424
4131
|
}>;
|
|
3425
4132
|
}>>;
|
|
3426
4133
|
}>>;
|
|
@@ -3495,7 +4202,7 @@ declare function createCore({ env }?: {
|
|
|
3495
4202
|
}): Core;
|
|
3496
4203
|
declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
3497
4204
|
ctx: CoreContext;
|
|
3498
|
-
meta:
|
|
4205
|
+
meta: CoreMeta;
|
|
3499
4206
|
errorShape: {
|
|
3500
4207
|
data: {
|
|
3501
4208
|
type?: string | undefined;
|
|
@@ -3511,7 +4218,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3511
4218
|
}, _trpc_server.TRPCDecorateCreateRouterOptions<{
|
|
3512
4219
|
health: _trpc_server.TRPCBuiltRouter<{
|
|
3513
4220
|
ctx: CoreContext;
|
|
3514
|
-
meta:
|
|
4221
|
+
meta: CoreMeta;
|
|
3515
4222
|
errorShape: {
|
|
3516
4223
|
data: {
|
|
3517
4224
|
type?: string | undefined;
|
|
@@ -3528,12 +4235,12 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3528
4235
|
ping: _trpc_server.TRPCQueryProcedure<{
|
|
3529
4236
|
input: void;
|
|
3530
4237
|
output: HealthStatus;
|
|
3531
|
-
meta:
|
|
4238
|
+
meta: CoreMeta;
|
|
3532
4239
|
}>;
|
|
3533
4240
|
}>>;
|
|
3534
4241
|
auth: _trpc_server.TRPCBuiltRouter<{
|
|
3535
4242
|
ctx: CoreContext;
|
|
3536
|
-
meta:
|
|
4243
|
+
meta: CoreMeta;
|
|
3537
4244
|
errorShape: {
|
|
3538
4245
|
data: {
|
|
3539
4246
|
type?: string | undefined;
|
|
@@ -3562,14 +4269,14 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3562
4269
|
role: "admin" | "redacteur";
|
|
3563
4270
|
};
|
|
3564
4271
|
};
|
|
3565
|
-
meta:
|
|
4272
|
+
meta: CoreMeta;
|
|
3566
4273
|
}>;
|
|
3567
4274
|
logout: _trpc_server.TRPCMutationProcedure<{
|
|
3568
4275
|
input: void;
|
|
3569
4276
|
output: {
|
|
3570
4277
|
loggedOut: boolean;
|
|
3571
4278
|
};
|
|
3572
|
-
meta:
|
|
4279
|
+
meta: CoreMeta;
|
|
3573
4280
|
}>;
|
|
3574
4281
|
me: _trpc_server.TRPCQueryProcedure<{
|
|
3575
4282
|
input: void;
|
|
@@ -3581,11 +4288,11 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3581
4288
|
role: "admin" | "redacteur";
|
|
3582
4289
|
};
|
|
3583
4290
|
};
|
|
3584
|
-
meta:
|
|
4291
|
+
meta: CoreMeta;
|
|
3585
4292
|
}>;
|
|
3586
4293
|
sessions: _trpc_server.TRPCBuiltRouter<{
|
|
3587
4294
|
ctx: CoreContext;
|
|
3588
|
-
meta:
|
|
4295
|
+
meta: CoreMeta;
|
|
3589
4296
|
errorShape: {
|
|
3590
4297
|
data: {
|
|
3591
4298
|
type?: string | undefined;
|
|
@@ -3609,7 +4316,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3609
4316
|
ip: string | null;
|
|
3610
4317
|
current: boolean;
|
|
3611
4318
|
}[];
|
|
3612
|
-
meta:
|
|
4319
|
+
meta: CoreMeta;
|
|
3613
4320
|
}>;
|
|
3614
4321
|
revoke: _trpc_server.TRPCMutationProcedure<{
|
|
3615
4322
|
input: {
|
|
@@ -3618,7 +4325,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3618
4325
|
output: {
|
|
3619
4326
|
revoked: string;
|
|
3620
4327
|
};
|
|
3621
|
-
meta:
|
|
4328
|
+
meta: CoreMeta;
|
|
3622
4329
|
}>;
|
|
3623
4330
|
}>>;
|
|
3624
4331
|
acceptInvitation: _trpc_server.TRPCMutationProcedure<{
|
|
@@ -3635,7 +4342,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3635
4342
|
role: "admin" | "redacteur";
|
|
3636
4343
|
};
|
|
3637
4344
|
};
|
|
3638
|
-
meta:
|
|
4345
|
+
meta: CoreMeta;
|
|
3639
4346
|
}>;
|
|
3640
4347
|
requestPasswordReset: _trpc_server.TRPCMutationProcedure<{
|
|
3641
4348
|
input: {
|
|
@@ -3644,12 +4351,12 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3644
4351
|
output: {
|
|
3645
4352
|
ok: boolean;
|
|
3646
4353
|
};
|
|
3647
|
-
meta:
|
|
4354
|
+
meta: CoreMeta;
|
|
3648
4355
|
}>;
|
|
3649
4356
|
}>>;
|
|
3650
4357
|
users: _trpc_server.TRPCBuiltRouter<{
|
|
3651
4358
|
ctx: CoreContext;
|
|
3652
|
-
meta:
|
|
4359
|
+
meta: CoreMeta;
|
|
3653
4360
|
errorShape: {
|
|
3654
4361
|
data: {
|
|
3655
4362
|
type?: string | undefined;
|
|
@@ -3671,7 +4378,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3671
4378
|
name: string;
|
|
3672
4379
|
role: "admin" | "redacteur";
|
|
3673
4380
|
}[];
|
|
3674
|
-
meta:
|
|
4381
|
+
meta: CoreMeta;
|
|
3675
4382
|
}>;
|
|
3676
4383
|
directory: _trpc_server.TRPCQueryProcedure<{
|
|
3677
4384
|
input: void;
|
|
@@ -3679,7 +4386,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3679
4386
|
id: string;
|
|
3680
4387
|
name: string;
|
|
3681
4388
|
}[];
|
|
3682
|
-
meta:
|
|
4389
|
+
meta: CoreMeta;
|
|
3683
4390
|
}>;
|
|
3684
4391
|
get: _trpc_server.TRPCQueryProcedure<{
|
|
3685
4392
|
input: {
|
|
@@ -3691,7 +4398,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3691
4398
|
name: string;
|
|
3692
4399
|
role: "admin" | "redacteur";
|
|
3693
4400
|
};
|
|
3694
|
-
meta:
|
|
4401
|
+
meta: CoreMeta;
|
|
3695
4402
|
}>;
|
|
3696
4403
|
invite: _trpc_server.TRPCMutationProcedure<{
|
|
3697
4404
|
input: {
|
|
@@ -3702,7 +4409,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3702
4409
|
token: string;
|
|
3703
4410
|
expiresAt: string;
|
|
3704
4411
|
};
|
|
3705
|
-
meta:
|
|
4412
|
+
meta: CoreMeta;
|
|
3706
4413
|
}>;
|
|
3707
4414
|
update: _trpc_server.TRPCMutationProcedure<{
|
|
3708
4415
|
input: {
|
|
@@ -3719,7 +4426,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3719
4426
|
name: string;
|
|
3720
4427
|
role: "admin" | "redacteur";
|
|
3721
4428
|
};
|
|
3722
|
-
meta:
|
|
4429
|
+
meta: CoreMeta;
|
|
3723
4430
|
}>;
|
|
3724
4431
|
remove: _trpc_server.TRPCMutationProcedure<{
|
|
3725
4432
|
input: {
|
|
@@ -3728,12 +4435,12 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3728
4435
|
output: {
|
|
3729
4436
|
removed: string;
|
|
3730
4437
|
};
|
|
3731
|
-
meta:
|
|
4438
|
+
meta: CoreMeta;
|
|
3732
4439
|
}>;
|
|
3733
4440
|
}>>;
|
|
3734
4441
|
apiTokens: _trpc_server.TRPCBuiltRouter<{
|
|
3735
4442
|
ctx: CoreContext;
|
|
3736
|
-
meta:
|
|
4443
|
+
meta: CoreMeta;
|
|
3737
4444
|
errorShape: {
|
|
3738
4445
|
data: {
|
|
3739
4446
|
type?: string | undefined;
|
|
@@ -3757,7 +4464,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3757
4464
|
tokenHash: string;
|
|
3758
4465
|
lastUsedAt: string | null;
|
|
3759
4466
|
}, "id" | "name" | "createdAt" | "revokedAt" | "lastUsedAt">[];
|
|
3760
|
-
meta:
|
|
4467
|
+
meta: CoreMeta;
|
|
3761
4468
|
}>;
|
|
3762
4469
|
create: _trpc_server.TRPCMutationProcedure<{
|
|
3763
4470
|
input: {
|
|
@@ -3768,7 +4475,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3768
4475
|
id: string;
|
|
3769
4476
|
name: string;
|
|
3770
4477
|
};
|
|
3771
|
-
meta:
|
|
4478
|
+
meta: CoreMeta;
|
|
3772
4479
|
}>;
|
|
3773
4480
|
revoke: _trpc_server.TRPCMutationProcedure<{
|
|
3774
4481
|
input: {
|
|
@@ -3777,12 +4484,12 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3777
4484
|
output: {
|
|
3778
4485
|
revoked: string;
|
|
3779
4486
|
};
|
|
3780
|
-
meta:
|
|
4487
|
+
meta: CoreMeta;
|
|
3781
4488
|
}>;
|
|
3782
4489
|
}>>;
|
|
3783
4490
|
organization: _trpc_server.TRPCBuiltRouter<{
|
|
3784
4491
|
ctx: CoreContext;
|
|
3785
|
-
meta:
|
|
4492
|
+
meta: CoreMeta;
|
|
3786
4493
|
errorShape: {
|
|
3787
4494
|
data: {
|
|
3788
4495
|
type?: string | undefined;
|
|
@@ -3816,7 +4523,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3816
4523
|
updatedBy: string | null;
|
|
3817
4524
|
legacyExtra: Record<string, unknown> | null;
|
|
3818
4525
|
} | null;
|
|
3819
|
-
meta:
|
|
4526
|
+
meta: CoreMeta;
|
|
3820
4527
|
}>;
|
|
3821
4528
|
init: _trpc_server.TRPCMutationProcedure<{
|
|
3822
4529
|
input: {
|
|
@@ -3850,7 +4557,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3850
4557
|
updatedBy: string | null;
|
|
3851
4558
|
legacyExtra: Record<string, unknown> | null;
|
|
3852
4559
|
};
|
|
3853
|
-
meta:
|
|
4560
|
+
meta: CoreMeta;
|
|
3854
4561
|
}>;
|
|
3855
4562
|
update: _trpc_server.TRPCMutationProcedure<{
|
|
3856
4563
|
input: {
|
|
@@ -3884,19 +4591,19 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3884
4591
|
updatedBy: string | null;
|
|
3885
4592
|
legacyExtra: Record<string, unknown> | null;
|
|
3886
4593
|
};
|
|
3887
|
-
meta:
|
|
4594
|
+
meta: CoreMeta;
|
|
3888
4595
|
}>;
|
|
3889
4596
|
deploy: _trpc_server.TRPCMutationProcedure<{
|
|
3890
4597
|
input: void;
|
|
3891
4598
|
output: {
|
|
3892
4599
|
status: number;
|
|
3893
4600
|
};
|
|
3894
|
-
meta:
|
|
4601
|
+
meta: CoreMeta;
|
|
3895
4602
|
}>;
|
|
3896
4603
|
}>>;
|
|
3897
4604
|
media: _trpc_server.TRPCBuiltRouter<{
|
|
3898
4605
|
ctx: CoreContext;
|
|
3899
|
-
meta:
|
|
4606
|
+
meta: CoreMeta;
|
|
3900
4607
|
errorShape: {
|
|
3901
4608
|
data: {
|
|
3902
4609
|
type?: string | undefined;
|
|
@@ -3920,7 +4627,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3920
4627
|
key: string;
|
|
3921
4628
|
url: string;
|
|
3922
4629
|
};
|
|
3923
|
-
meta:
|
|
4630
|
+
meta: CoreMeta;
|
|
3924
4631
|
}>;
|
|
3925
4632
|
finalize: _trpc_server.TRPCMutationProcedure<{
|
|
3926
4633
|
input: {
|
|
@@ -3945,7 +4652,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3945
4652
|
objects: Record<string, unknown>;
|
|
3946
4653
|
createdBy: string | null;
|
|
3947
4654
|
};
|
|
3948
|
-
meta:
|
|
4655
|
+
meta: CoreMeta;
|
|
3949
4656
|
}>;
|
|
3950
4657
|
list: _trpc_server.TRPCQueryProcedure<{
|
|
3951
4658
|
input: void;
|
|
@@ -3966,7 +4673,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3966
4673
|
} & {
|
|
3967
4674
|
objects: Record<string, string>;
|
|
3968
4675
|
})[];
|
|
3969
|
-
meta:
|
|
4676
|
+
meta: CoreMeta;
|
|
3970
4677
|
}>;
|
|
3971
4678
|
get: _trpc_server.TRPCQueryProcedure<{
|
|
3972
4679
|
input: {
|
|
@@ -3989,7 +4696,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3989
4696
|
} & {
|
|
3990
4697
|
objects: Record<string, string>;
|
|
3991
4698
|
};
|
|
3992
|
-
meta:
|
|
4699
|
+
meta: CoreMeta;
|
|
3993
4700
|
}>;
|
|
3994
4701
|
update: _trpc_server.TRPCMutationProcedure<{
|
|
3995
4702
|
input: {
|
|
@@ -4015,7 +4722,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4015
4722
|
objects: Record<string, unknown>;
|
|
4016
4723
|
createdBy: string | null;
|
|
4017
4724
|
};
|
|
4018
|
-
meta:
|
|
4725
|
+
meta: CoreMeta;
|
|
4019
4726
|
}>;
|
|
4020
4727
|
remove: _trpc_server.TRPCMutationProcedure<{
|
|
4021
4728
|
input: {
|
|
@@ -4024,12 +4731,12 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4024
4731
|
output: {
|
|
4025
4732
|
removed: string;
|
|
4026
4733
|
};
|
|
4027
|
-
meta:
|
|
4734
|
+
meta: CoreMeta;
|
|
4028
4735
|
}>;
|
|
4029
4736
|
}>>;
|
|
4030
4737
|
collections: _trpc_server.TRPCBuiltRouter<{
|
|
4031
4738
|
ctx: CoreContext;
|
|
4032
|
-
meta:
|
|
4739
|
+
meta: CoreMeta;
|
|
4033
4740
|
errorShape: {
|
|
4034
4741
|
data: {
|
|
4035
4742
|
type?: string | undefined;
|
|
@@ -4068,26 +4775,22 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4068
4775
|
display: Record<string, unknown> | null;
|
|
4069
4776
|
headings: Record<string, unknown> | null;
|
|
4070
4777
|
}[];
|
|
4071
|
-
meta:
|
|
4778
|
+
meta: CoreMeta;
|
|
4072
4779
|
}>;
|
|
4073
4780
|
get: _trpc_server.TRPCQueryProcedure<{
|
|
4074
4781
|
input: {
|
|
4075
4782
|
idOrSlug: string;
|
|
4076
4783
|
};
|
|
4077
4784
|
output: {
|
|
4078
|
-
description: string | null;
|
|
4079
4785
|
id: string;
|
|
4080
4786
|
name: string;
|
|
4081
|
-
createdAt: string;
|
|
4082
|
-
updatedAt: string;
|
|
4083
4787
|
slug: string;
|
|
4084
|
-
|
|
4085
|
-
legacyExtra: Record<string, unknown> | null;
|
|
4086
|
-
createdBy: string | null;
|
|
4788
|
+
description: string | null;
|
|
4087
4789
|
fields: {
|
|
4790
|
+
[x: string]: unknown;
|
|
4088
4791
|
name: string;
|
|
4089
4792
|
label: string;
|
|
4090
|
-
type:
|
|
4793
|
+
type: string;
|
|
4091
4794
|
required: boolean;
|
|
4092
4795
|
hidden: boolean;
|
|
4093
4796
|
options?: string[] | undefined;
|
|
@@ -4096,8 +4799,13 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4096
4799
|
editor: Record<string, unknown> | null;
|
|
4097
4800
|
display: Record<string, unknown> | null;
|
|
4098
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;
|
|
4099
4807
|
};
|
|
4100
|
-
meta:
|
|
4808
|
+
meta: CoreMeta;
|
|
4101
4809
|
}>;
|
|
4102
4810
|
create: _trpc_server.TRPCMutationProcedure<{
|
|
4103
4811
|
input: {
|
|
@@ -4140,7 +4848,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4140
4848
|
display: Record<string, unknown> | null;
|
|
4141
4849
|
headings: Record<string, unknown> | null;
|
|
4142
4850
|
};
|
|
4143
|
-
meta:
|
|
4851
|
+
meta: CoreMeta;
|
|
4144
4852
|
}>;
|
|
4145
4853
|
update: _trpc_server.TRPCMutationProcedure<{
|
|
4146
4854
|
input: {
|
|
@@ -4186,7 +4894,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4186
4894
|
display: Record<string, unknown> | null;
|
|
4187
4895
|
headings: Record<string, unknown> | null;
|
|
4188
4896
|
};
|
|
4189
|
-
meta:
|
|
4897
|
+
meta: CoreMeta;
|
|
4190
4898
|
}>;
|
|
4191
4899
|
remove: _trpc_server.TRPCMutationProcedure<{
|
|
4192
4900
|
input: {
|
|
@@ -4195,11 +4903,11 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4195
4903
|
output: {
|
|
4196
4904
|
removed: string;
|
|
4197
4905
|
};
|
|
4198
|
-
meta:
|
|
4906
|
+
meta: CoreMeta;
|
|
4199
4907
|
}>;
|
|
4200
4908
|
entries: _trpc_server.TRPCBuiltRouter<{
|
|
4201
4909
|
ctx: CoreContext;
|
|
4202
|
-
meta:
|
|
4910
|
+
meta: CoreMeta;
|
|
4203
4911
|
errorShape: {
|
|
4204
4912
|
data: {
|
|
4205
4913
|
type?: string | undefined;
|
|
@@ -4219,46 +4927,71 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4219
4927
|
};
|
|
4220
4928
|
output: {
|
|
4221
4929
|
id: string;
|
|
4930
|
+
collectionId: string;
|
|
4931
|
+
title: string;
|
|
4932
|
+
slug: string;
|
|
4222
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;
|
|
4223
4940
|
createdAt: string;
|
|
4224
4941
|
updatedAt: string;
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
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;
|
|
4229
4954
|
collectionId: string;
|
|
4230
|
-
status: "draft" | "waiting" | "ready" | "scheduled" | "published";
|
|
4231
4955
|
title: string;
|
|
4956
|
+
slug: string;
|
|
4957
|
+
data: Record<string, unknown>;
|
|
4232
4958
|
related: string[] | null;
|
|
4959
|
+
createdBy: string | null;
|
|
4960
|
+
updatedBy: string | null;
|
|
4961
|
+
status: "draft" | "waiting" | "ready" | "scheduled" | "published";
|
|
4233
4962
|
publishedAt: string | null;
|
|
4234
|
-
|
|
4235
|
-
|
|
4963
|
+
legacyExtra: drizzle_zod.Json;
|
|
4964
|
+
createdAt: string;
|
|
4965
|
+
updatedAt: string;
|
|
4966
|
+
collectionSlug: string;
|
|
4967
|
+
}[];
|
|
4968
|
+
meta: CoreMeta;
|
|
4236
4969
|
}>;
|
|
4237
4970
|
list: _trpc_server.TRPCQueryProcedure<{
|
|
4238
4971
|
input: {
|
|
4239
4972
|
collectionId: string;
|
|
4240
4973
|
status?: ("draft" | "waiting" | "ready" | "scheduled" | "published")[] | undefined;
|
|
4241
4974
|
search?: string | undefined;
|
|
4242
|
-
order?: "
|
|
4975
|
+
order?: "title" | "recent" | "oldest" | undefined;
|
|
4243
4976
|
skip?: number | undefined;
|
|
4244
4977
|
limit?: number | undefined;
|
|
4245
4978
|
};
|
|
4246
4979
|
output: {
|
|
4247
4980
|
id: string;
|
|
4248
|
-
data: Record<string, unknown>;
|
|
4249
|
-
createdAt: string;
|
|
4250
|
-
updatedAt: string;
|
|
4251
|
-
slug: string;
|
|
4252
|
-
updatedBy: string | null;
|
|
4253
|
-
legacyExtra: Record<string, unknown> | null;
|
|
4254
|
-
createdBy: string | null;
|
|
4255
4981
|
collectionId: string;
|
|
4256
|
-
status: "draft" | "waiting" | "ready" | "scheduled" | "published";
|
|
4257
4982
|
title: string;
|
|
4983
|
+
slug: string;
|
|
4984
|
+
data: Record<string, unknown>;
|
|
4258
4985
|
related: string[] | null;
|
|
4986
|
+
createdBy: string | null;
|
|
4987
|
+
updatedBy: string | null;
|
|
4988
|
+
status: "draft" | "waiting" | "ready" | "scheduled" | "published";
|
|
4259
4989
|
publishedAt: string | null;
|
|
4990
|
+
legacyExtra: drizzle_zod.Json;
|
|
4991
|
+
createdAt: string;
|
|
4992
|
+
updatedAt: string;
|
|
4260
4993
|
}[];
|
|
4261
|
-
meta:
|
|
4994
|
+
meta: CoreMeta;
|
|
4262
4995
|
}>;
|
|
4263
4996
|
count: _trpc_server.TRPCQueryProcedure<{
|
|
4264
4997
|
input: {
|
|
@@ -4267,7 +5000,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4267
5000
|
search?: string | undefined;
|
|
4268
5001
|
};
|
|
4269
5002
|
output: number;
|
|
4270
|
-
meta:
|
|
5003
|
+
meta: CoreMeta;
|
|
4271
5004
|
}>;
|
|
4272
5005
|
create: _trpc_server.TRPCMutationProcedure<{
|
|
4273
5006
|
input: {
|
|
@@ -4289,13 +5022,13 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4289
5022
|
updatedBy: string | null;
|
|
4290
5023
|
legacyExtra: Record<string, unknown> | null;
|
|
4291
5024
|
createdBy: string | null;
|
|
4292
|
-
collectionId: string;
|
|
4293
|
-
status: "draft" | "waiting" | "ready" | "scheduled" | "published";
|
|
4294
5025
|
title: string;
|
|
5026
|
+
collectionId: string;
|
|
4295
5027
|
related: string[] | null;
|
|
5028
|
+
status: "draft" | "waiting" | "ready" | "scheduled" | "published";
|
|
4296
5029
|
publishedAt: string | null;
|
|
4297
5030
|
};
|
|
4298
|
-
meta:
|
|
5031
|
+
meta: CoreMeta;
|
|
4299
5032
|
}>;
|
|
4300
5033
|
update: _trpc_server.TRPCMutationProcedure<{
|
|
4301
5034
|
input: {
|
|
@@ -4303,8 +5036,8 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4303
5036
|
data: {
|
|
4304
5037
|
data?: Record<string, unknown> | undefined;
|
|
4305
5038
|
slug?: string | undefined;
|
|
4306
|
-
status?: "draft" | "waiting" | "ready" | "scheduled" | "published" | undefined;
|
|
4307
5039
|
title?: string | undefined;
|
|
5040
|
+
status?: "draft" | "waiting" | "ready" | "scheduled" | "published" | undefined;
|
|
4308
5041
|
publishedAt?: string | null | undefined;
|
|
4309
5042
|
related?: string[] | undefined;
|
|
4310
5043
|
};
|
|
@@ -4318,13 +5051,13 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4318
5051
|
updatedBy: string | null;
|
|
4319
5052
|
legacyExtra: Record<string, unknown> | null;
|
|
4320
5053
|
createdBy: string | null;
|
|
4321
|
-
collectionId: string;
|
|
4322
|
-
status: "draft" | "waiting" | "ready" | "scheduled" | "published";
|
|
4323
5054
|
title: string;
|
|
5055
|
+
collectionId: string;
|
|
4324
5056
|
related: string[] | null;
|
|
5057
|
+
status: "draft" | "waiting" | "ready" | "scheduled" | "published";
|
|
4325
5058
|
publishedAt: string | null;
|
|
4326
5059
|
};
|
|
4327
|
-
meta:
|
|
5060
|
+
meta: CoreMeta;
|
|
4328
5061
|
}>;
|
|
4329
5062
|
remove: _trpc_server.TRPCMutationProcedure<{
|
|
4330
5063
|
input: {
|
|
@@ -4333,12 +5066,12 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4333
5066
|
output: {
|
|
4334
5067
|
removed: string;
|
|
4335
5068
|
};
|
|
4336
|
-
meta:
|
|
5069
|
+
meta: CoreMeta;
|
|
4337
5070
|
}>;
|
|
4338
5071
|
}>>;
|
|
4339
5072
|
}>>;
|
|
4340
5073
|
}>>;
|
|
4341
5074
|
type AppRouter = typeof appRouter;
|
|
4342
5075
|
|
|
4343
|
-
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 };
|
|
4344
|
-
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 };
|