@open-commune/core 0.2.1 → 0.2.3
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 +932 -196
- package/dist/index.d.ts +932 -196
- 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';
|
|
@@ -11,7 +13,7 @@ export { FIELD_VALUE_SCHEMAS, buildDataSchema } from './domains/collections/util
|
|
|
11
13
|
declare const envSchema: z.ZodObject<{
|
|
12
14
|
COMMUN_DATA_DIR: z.ZodDefault<z.ZodString>;
|
|
13
15
|
COMMUN_MIGRATIONS_DIR: z.ZodOptional<z.ZodString>;
|
|
14
|
-
COMMUN_S3_ENDPOINT: z.
|
|
16
|
+
COMMUN_S3_ENDPOINT: z.ZodString;
|
|
15
17
|
COMMUN_S3_REGION: z.ZodDefault<z.ZodString>;
|
|
16
18
|
COMMUN_S3_BUCKET: z.ZodString;
|
|
17
19
|
COMMUN_S3_ACCESS_KEY: z.ZodString;
|
|
@@ -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;
|
|
@@ -1681,9 +1683,9 @@ declare class HealthService {
|
|
|
1681
1683
|
}
|
|
1682
1684
|
|
|
1683
1685
|
/**
|
|
1684
|
-
* S3-compatible object storage is the only media backend
|
|
1685
|
-
*
|
|
1686
|
-
* backends.
|
|
1686
|
+
* S3-compatible object storage is the only media backend: any store that
|
|
1687
|
+
* accepts a bucket policy making the public `medias/` prefix readable. The
|
|
1688
|
+
* interface exists for test doubles, not for alternative backends.
|
|
1687
1689
|
*/
|
|
1688
1690
|
interface StorageDriver {
|
|
1689
1691
|
/** Pre-signed URL for a direct client PUT. */
|
|
@@ -1699,13 +1701,16 @@ interface StorageDriver {
|
|
|
1699
1701
|
url(key: string): Promise<string>;
|
|
1700
1702
|
}
|
|
1701
1703
|
interface S3Config {
|
|
1702
|
-
endpoint
|
|
1704
|
+
endpoint: string;
|
|
1703
1705
|
region: string;
|
|
1704
1706
|
bucket: string;
|
|
1705
1707
|
accessKey: string;
|
|
1706
1708
|
secretKey: string;
|
|
1707
1709
|
}
|
|
1708
|
-
/**
|
|
1710
|
+
/**
|
|
1711
|
+
* Works with any S3-compatible endpoint whose bucket policy makes the public
|
|
1712
|
+
* `medias/` prefix readable.
|
|
1713
|
+
*/
|
|
1709
1714
|
declare class S3Storage implements StorageDriver {
|
|
1710
1715
|
private readonly config;
|
|
1711
1716
|
private readonly client;
|
|
@@ -1892,13 +1897,13 @@ declare class UsersService {
|
|
|
1892
1897
|
verifyApiToken(token: string): Promise<boolean>;
|
|
1893
1898
|
revokeApiToken(id: string): Promise<void>;
|
|
1894
1899
|
listApiTokens(): Promise<Pick<{
|
|
1895
|
-
id: string;
|
|
1896
1900
|
name: string;
|
|
1901
|
+
id: string;
|
|
1897
1902
|
createdAt: string;
|
|
1898
1903
|
revokedAt: string | null;
|
|
1899
1904
|
tokenHash: string;
|
|
1900
1905
|
lastUsedAt: string | null;
|
|
1901
|
-
}, "
|
|
1906
|
+
}, "name" | "id" | "createdAt" | "revokedAt" | "lastUsedAt">[]>;
|
|
1902
1907
|
}
|
|
1903
1908
|
|
|
1904
1909
|
/**
|
|
@@ -1920,9 +1925,9 @@ declare const organizationInitDto: z.ZodObject<{
|
|
|
1920
1925
|
syndicate: "syndicate";
|
|
1921
1926
|
other: "other";
|
|
1922
1927
|
}>>;
|
|
1923
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1924
1928
|
name: z.ZodString;
|
|
1925
1929
|
slug: z.ZodString;
|
|
1930
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1926
1931
|
address: z.ZodOptional<z.ZodNullable<z.ZodType<{
|
|
1927
1932
|
street?: string | undefined;
|
|
1928
1933
|
postalCode?: string | undefined;
|
|
@@ -1953,9 +1958,9 @@ declare const organizationUpdateDto: z.ZodObject<{
|
|
|
1953
1958
|
syndicate: "syndicate";
|
|
1954
1959
|
other: "other";
|
|
1955
1960
|
}>>;
|
|
1956
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1957
1961
|
name: z.ZodOptional<z.ZodString>;
|
|
1958
1962
|
slug: z.ZodOptional<z.ZodString>;
|
|
1963
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1959
1964
|
address: z.ZodOptional<z.ZodNullable<z.ZodType<{
|
|
1960
1965
|
street?: string | undefined;
|
|
1961
1966
|
postalCode?: string | undefined;
|
|
@@ -2113,6 +2118,21 @@ declare class EntryRepository {
|
|
|
2113
2118
|
* entries would not fit in it anyway.
|
|
2114
2119
|
*/
|
|
2115
2120
|
private narrowing;
|
|
2121
|
+
/**
|
|
2122
|
+
* Text match on the title and the data. One LIKE is enough at a commune's
|
|
2123
|
+
* scale, and it leaves the title index usable.
|
|
2124
|
+
*/
|
|
2125
|
+
private matching;
|
|
2126
|
+
/**
|
|
2127
|
+
* Text search across collections, most recently updated first — how an agent
|
|
2128
|
+
* finds content without knowing where it lives.
|
|
2129
|
+
*/
|
|
2130
|
+
search(options: {
|
|
2131
|
+
search: string;
|
|
2132
|
+
collectionIds?: string[];
|
|
2133
|
+
status?: Entry['status'][];
|
|
2134
|
+
limit: number;
|
|
2135
|
+
}): Promise<Entry[]>;
|
|
2116
2136
|
/** The total a paginated listing is a window onto. Counted in SQL. */
|
|
2117
2137
|
countMatching(options: {
|
|
2118
2138
|
collectionId: string;
|
|
@@ -2138,8 +2158,8 @@ declare class EntryRepository {
|
|
|
2138
2158
|
}
|
|
2139
2159
|
|
|
2140
2160
|
declare const definitionCreateDto: z.ZodObject<{
|
|
2141
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2142
2161
|
name: z.ZodString;
|
|
2162
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2143
2163
|
editor: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
|
|
2144
2164
|
display: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
|
|
2145
2165
|
headings: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
|
|
@@ -2149,14 +2169,14 @@ declare const definitionCreateDto: z.ZodObject<{
|
|
|
2149
2169
|
type: z.ZodEnum<{
|
|
2150
2170
|
number: "number";
|
|
2151
2171
|
boolean: "boolean";
|
|
2152
|
-
json: "json";
|
|
2153
|
-
date: "date";
|
|
2154
2172
|
text: "text";
|
|
2155
|
-
select: "select";
|
|
2156
|
-
media: "media";
|
|
2157
2173
|
"rich-text": "rich-text";
|
|
2174
|
+
date: "date";
|
|
2175
|
+
media: "media";
|
|
2158
2176
|
relation: "relation";
|
|
2177
|
+
select: "select";
|
|
2159
2178
|
steps: "steps";
|
|
2179
|
+
json: "json";
|
|
2160
2180
|
}>;
|
|
2161
2181
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
2162
2182
|
hidden: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -2169,9 +2189,9 @@ declare const definitionCreateDto: z.ZodObject<{
|
|
|
2169
2189
|
in: {};
|
|
2170
2190
|
}>;
|
|
2171
2191
|
declare const definitionUpdateDto: z.ZodObject<{
|
|
2172
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2173
2192
|
name: z.ZodOptional<z.ZodString>;
|
|
2174
2193
|
slug: z.ZodOptional<z.ZodString>;
|
|
2194
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2175
2195
|
editor: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
|
|
2176
2196
|
display: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
|
|
2177
2197
|
headings: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
|
|
@@ -2181,14 +2201,14 @@ declare const definitionUpdateDto: z.ZodObject<{
|
|
|
2181
2201
|
type: z.ZodEnum<{
|
|
2182
2202
|
number: "number";
|
|
2183
2203
|
boolean: "boolean";
|
|
2184
|
-
json: "json";
|
|
2185
|
-
date: "date";
|
|
2186
2204
|
text: "text";
|
|
2187
|
-
select: "select";
|
|
2188
|
-
media: "media";
|
|
2189
2205
|
"rich-text": "rich-text";
|
|
2206
|
+
date: "date";
|
|
2207
|
+
media: "media";
|
|
2190
2208
|
relation: "relation";
|
|
2209
|
+
select: "select";
|
|
2191
2210
|
steps: "steps";
|
|
2211
|
+
json: "json";
|
|
2192
2212
|
}>;
|
|
2193
2213
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
2194
2214
|
hidden: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -2199,6 +2219,292 @@ declare const definitionUpdateDto: z.ZodObject<{
|
|
|
2199
2219
|
out: {};
|
|
2200
2220
|
in: {};
|
|
2201
2221
|
}>;
|
|
2222
|
+
declare const definitionDto: drizzle_zod.BuildSchema<"select", {
|
|
2223
|
+
id: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2224
|
+
name: "id";
|
|
2225
|
+
tableName: "collection_definitions";
|
|
2226
|
+
dataType: "string";
|
|
2227
|
+
columnType: "SQLiteText";
|
|
2228
|
+
data: string;
|
|
2229
|
+
driverParam: string;
|
|
2230
|
+
notNull: true;
|
|
2231
|
+
hasDefault: true;
|
|
2232
|
+
isPrimaryKey: true;
|
|
2233
|
+
isAutoincrement: false;
|
|
2234
|
+
hasRuntimeDefault: true;
|
|
2235
|
+
enumValues: [string, ...string[]];
|
|
2236
|
+
baseColumn: never;
|
|
2237
|
+
identity: undefined;
|
|
2238
|
+
generated: undefined;
|
|
2239
|
+
}, {}, {
|
|
2240
|
+
length: number | undefined;
|
|
2241
|
+
}>;
|
|
2242
|
+
name: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2243
|
+
name: "name";
|
|
2244
|
+
tableName: "collection_definitions";
|
|
2245
|
+
dataType: "string";
|
|
2246
|
+
columnType: "SQLiteText";
|
|
2247
|
+
data: string;
|
|
2248
|
+
driverParam: string;
|
|
2249
|
+
notNull: true;
|
|
2250
|
+
hasDefault: false;
|
|
2251
|
+
isPrimaryKey: false;
|
|
2252
|
+
isAutoincrement: false;
|
|
2253
|
+
hasRuntimeDefault: false;
|
|
2254
|
+
enumValues: [string, ...string[]];
|
|
2255
|
+
baseColumn: never;
|
|
2256
|
+
identity: undefined;
|
|
2257
|
+
generated: undefined;
|
|
2258
|
+
}, {}, {
|
|
2259
|
+
length: number | undefined;
|
|
2260
|
+
}>;
|
|
2261
|
+
slug: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2262
|
+
name: "slug";
|
|
2263
|
+
tableName: "collection_definitions";
|
|
2264
|
+
dataType: "string";
|
|
2265
|
+
columnType: "SQLiteText";
|
|
2266
|
+
data: string;
|
|
2267
|
+
driverParam: string;
|
|
2268
|
+
notNull: true;
|
|
2269
|
+
hasDefault: false;
|
|
2270
|
+
isPrimaryKey: false;
|
|
2271
|
+
isAutoincrement: false;
|
|
2272
|
+
hasRuntimeDefault: false;
|
|
2273
|
+
enumValues: [string, ...string[]];
|
|
2274
|
+
baseColumn: never;
|
|
2275
|
+
identity: undefined;
|
|
2276
|
+
generated: undefined;
|
|
2277
|
+
}, {}, {
|
|
2278
|
+
length: number | undefined;
|
|
2279
|
+
}>;
|
|
2280
|
+
description: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2281
|
+
name: "description";
|
|
2282
|
+
tableName: "collection_definitions";
|
|
2283
|
+
dataType: "string";
|
|
2284
|
+
columnType: "SQLiteText";
|
|
2285
|
+
data: string;
|
|
2286
|
+
driverParam: string;
|
|
2287
|
+
notNull: false;
|
|
2288
|
+
hasDefault: false;
|
|
2289
|
+
isPrimaryKey: false;
|
|
2290
|
+
isAutoincrement: false;
|
|
2291
|
+
hasRuntimeDefault: false;
|
|
2292
|
+
enumValues: [string, ...string[]];
|
|
2293
|
+
baseColumn: never;
|
|
2294
|
+
identity: undefined;
|
|
2295
|
+
generated: undefined;
|
|
2296
|
+
}, {}, {
|
|
2297
|
+
length: number | undefined;
|
|
2298
|
+
}>;
|
|
2299
|
+
fields: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2300
|
+
name: "fields";
|
|
2301
|
+
tableName: "collection_definitions";
|
|
2302
|
+
dataType: "json";
|
|
2303
|
+
columnType: "SQLiteTextJson";
|
|
2304
|
+
data: {
|
|
2305
|
+
name: string;
|
|
2306
|
+
label: string;
|
|
2307
|
+
type: "number" | "boolean" | "text" | "rich-text" | "date" | "media" | "relation" | "select" | "steps" | "json";
|
|
2308
|
+
required: boolean;
|
|
2309
|
+
hidden: boolean;
|
|
2310
|
+
options?: string[] | undefined;
|
|
2311
|
+
target?: string | undefined;
|
|
2312
|
+
}[];
|
|
2313
|
+
driverParam: string;
|
|
2314
|
+
notNull: true;
|
|
2315
|
+
hasDefault: false;
|
|
2316
|
+
isPrimaryKey: false;
|
|
2317
|
+
isAutoincrement: false;
|
|
2318
|
+
hasRuntimeDefault: false;
|
|
2319
|
+
enumValues: undefined;
|
|
2320
|
+
baseColumn: never;
|
|
2321
|
+
identity: undefined;
|
|
2322
|
+
generated: undefined;
|
|
2323
|
+
}, {}, {
|
|
2324
|
+
$type: {
|
|
2325
|
+
name: string;
|
|
2326
|
+
label: string;
|
|
2327
|
+
type: "number" | "boolean" | "text" | "rich-text" | "date" | "media" | "relation" | "select" | "steps" | "json";
|
|
2328
|
+
required: boolean;
|
|
2329
|
+
hidden: boolean;
|
|
2330
|
+
options?: string[] | undefined;
|
|
2331
|
+
target?: string | undefined;
|
|
2332
|
+
}[];
|
|
2333
|
+
}>;
|
|
2334
|
+
editor: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2335
|
+
name: "editor";
|
|
2336
|
+
tableName: "collection_definitions";
|
|
2337
|
+
dataType: "json";
|
|
2338
|
+
columnType: "SQLiteTextJson";
|
|
2339
|
+
data: Record<string, unknown>;
|
|
2340
|
+
driverParam: string;
|
|
2341
|
+
notNull: false;
|
|
2342
|
+
hasDefault: false;
|
|
2343
|
+
isPrimaryKey: false;
|
|
2344
|
+
isAutoincrement: false;
|
|
2345
|
+
hasRuntimeDefault: false;
|
|
2346
|
+
enumValues: undefined;
|
|
2347
|
+
baseColumn: never;
|
|
2348
|
+
identity: undefined;
|
|
2349
|
+
generated: undefined;
|
|
2350
|
+
}, {}, {
|
|
2351
|
+
$type: Record<string, unknown>;
|
|
2352
|
+
}>;
|
|
2353
|
+
display: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2354
|
+
name: "display";
|
|
2355
|
+
tableName: "collection_definitions";
|
|
2356
|
+
dataType: "json";
|
|
2357
|
+
columnType: "SQLiteTextJson";
|
|
2358
|
+
data: Record<string, unknown>;
|
|
2359
|
+
driverParam: string;
|
|
2360
|
+
notNull: false;
|
|
2361
|
+
hasDefault: false;
|
|
2362
|
+
isPrimaryKey: false;
|
|
2363
|
+
isAutoincrement: false;
|
|
2364
|
+
hasRuntimeDefault: false;
|
|
2365
|
+
enumValues: undefined;
|
|
2366
|
+
baseColumn: never;
|
|
2367
|
+
identity: undefined;
|
|
2368
|
+
generated: undefined;
|
|
2369
|
+
}, {}, {
|
|
2370
|
+
$type: Record<string, unknown>;
|
|
2371
|
+
}>;
|
|
2372
|
+
headings: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2373
|
+
name: "headings";
|
|
2374
|
+
tableName: "collection_definitions";
|
|
2375
|
+
dataType: "json";
|
|
2376
|
+
columnType: "SQLiteTextJson";
|
|
2377
|
+
data: Record<string, unknown>;
|
|
2378
|
+
driverParam: string;
|
|
2379
|
+
notNull: false;
|
|
2380
|
+
hasDefault: false;
|
|
2381
|
+
isPrimaryKey: false;
|
|
2382
|
+
isAutoincrement: false;
|
|
2383
|
+
hasRuntimeDefault: false;
|
|
2384
|
+
enumValues: undefined;
|
|
2385
|
+
baseColumn: never;
|
|
2386
|
+
identity: undefined;
|
|
2387
|
+
generated: undefined;
|
|
2388
|
+
}, {}, {
|
|
2389
|
+
$type: Record<string, unknown>;
|
|
2390
|
+
}>;
|
|
2391
|
+
createdBy: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2392
|
+
name: "created_by";
|
|
2393
|
+
tableName: "collection_definitions";
|
|
2394
|
+
dataType: "string";
|
|
2395
|
+
columnType: "SQLiteText";
|
|
2396
|
+
data: string;
|
|
2397
|
+
driverParam: string;
|
|
2398
|
+
notNull: false;
|
|
2399
|
+
hasDefault: false;
|
|
2400
|
+
isPrimaryKey: false;
|
|
2401
|
+
isAutoincrement: false;
|
|
2402
|
+
hasRuntimeDefault: false;
|
|
2403
|
+
enumValues: [string, ...string[]];
|
|
2404
|
+
baseColumn: never;
|
|
2405
|
+
identity: undefined;
|
|
2406
|
+
generated: undefined;
|
|
2407
|
+
}, {}, {
|
|
2408
|
+
length: number | undefined;
|
|
2409
|
+
}>;
|
|
2410
|
+
updatedBy: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2411
|
+
name: "updated_by";
|
|
2412
|
+
tableName: "collection_definitions";
|
|
2413
|
+
dataType: "string";
|
|
2414
|
+
columnType: "SQLiteText";
|
|
2415
|
+
data: string;
|
|
2416
|
+
driverParam: string;
|
|
2417
|
+
notNull: false;
|
|
2418
|
+
hasDefault: false;
|
|
2419
|
+
isPrimaryKey: false;
|
|
2420
|
+
isAutoincrement: false;
|
|
2421
|
+
hasRuntimeDefault: false;
|
|
2422
|
+
enumValues: [string, ...string[]];
|
|
2423
|
+
baseColumn: never;
|
|
2424
|
+
identity: undefined;
|
|
2425
|
+
generated: undefined;
|
|
2426
|
+
}, {}, {
|
|
2427
|
+
length: number | undefined;
|
|
2428
|
+
}>;
|
|
2429
|
+
legacyExtra: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2430
|
+
name: "legacy_extra";
|
|
2431
|
+
tableName: "collection_definitions";
|
|
2432
|
+
dataType: "json";
|
|
2433
|
+
columnType: "SQLiteTextJson";
|
|
2434
|
+
data: Record<string, unknown> | null;
|
|
2435
|
+
driverParam: string;
|
|
2436
|
+
notNull: false;
|
|
2437
|
+
hasDefault: false;
|
|
2438
|
+
isPrimaryKey: false;
|
|
2439
|
+
isAutoincrement: false;
|
|
2440
|
+
hasRuntimeDefault: false;
|
|
2441
|
+
enumValues: undefined;
|
|
2442
|
+
baseColumn: never;
|
|
2443
|
+
identity: undefined;
|
|
2444
|
+
generated: undefined;
|
|
2445
|
+
}, {}, {
|
|
2446
|
+
$type: Record<string, unknown> | null;
|
|
2447
|
+
}>;
|
|
2448
|
+
createdAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2449
|
+
name: "created_at";
|
|
2450
|
+
tableName: "collection_definitions";
|
|
2451
|
+
dataType: "string";
|
|
2452
|
+
columnType: "SQLiteText";
|
|
2453
|
+
data: string;
|
|
2454
|
+
driverParam: string;
|
|
2455
|
+
notNull: true;
|
|
2456
|
+
hasDefault: true;
|
|
2457
|
+
isPrimaryKey: false;
|
|
2458
|
+
isAutoincrement: false;
|
|
2459
|
+
hasRuntimeDefault: true;
|
|
2460
|
+
enumValues: [string, ...string[]];
|
|
2461
|
+
baseColumn: never;
|
|
2462
|
+
identity: undefined;
|
|
2463
|
+
generated: undefined;
|
|
2464
|
+
}, {}, {
|
|
2465
|
+
length: number | undefined;
|
|
2466
|
+
}>;
|
|
2467
|
+
updatedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2468
|
+
name: "updated_at";
|
|
2469
|
+
tableName: "collection_definitions";
|
|
2470
|
+
dataType: "string";
|
|
2471
|
+
columnType: "SQLiteText";
|
|
2472
|
+
data: string;
|
|
2473
|
+
driverParam: string;
|
|
2474
|
+
notNull: true;
|
|
2475
|
+
hasDefault: true;
|
|
2476
|
+
isPrimaryKey: false;
|
|
2477
|
+
isAutoincrement: false;
|
|
2478
|
+
hasRuntimeDefault: true;
|
|
2479
|
+
enumValues: [string, ...string[]];
|
|
2480
|
+
baseColumn: never;
|
|
2481
|
+
identity: undefined;
|
|
2482
|
+
generated: undefined;
|
|
2483
|
+
}, {}, {
|
|
2484
|
+
length: number | undefined;
|
|
2485
|
+
}>;
|
|
2486
|
+
}, {
|
|
2487
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
2488
|
+
name: z.ZodString;
|
|
2489
|
+
label: z.ZodString;
|
|
2490
|
+
type: z.ZodUnion<[z.ZodEnum<{
|
|
2491
|
+
number: "number";
|
|
2492
|
+
boolean: "boolean";
|
|
2493
|
+
text: "text";
|
|
2494
|
+
"rich-text": "rich-text";
|
|
2495
|
+
date: "date";
|
|
2496
|
+
media: "media";
|
|
2497
|
+
relation: "relation";
|
|
2498
|
+
select: "select";
|
|
2499
|
+
steps: "steps";
|
|
2500
|
+
json: "json";
|
|
2501
|
+
}>, z.ZodString]>;
|
|
2502
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
2503
|
+
hidden: z.ZodDefault<z.ZodBoolean>;
|
|
2504
|
+
options: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2505
|
+
target: z.ZodOptional<z.ZodString>;
|
|
2506
|
+
}, z.core.$loose>>;
|
|
2507
|
+
}, undefined>;
|
|
2202
2508
|
type DefinitionCreateDto = z.infer<typeof definitionCreateDto>;
|
|
2203
2509
|
type DefinitionUpdateDto = z.infer<typeof definitionUpdateDto>;
|
|
2204
2510
|
|
|
@@ -2235,8 +2541,302 @@ declare const entryUpdateDto: z.ZodObject<{
|
|
|
2235
2541
|
out: {};
|
|
2236
2542
|
in: {};
|
|
2237
2543
|
}>;
|
|
2544
|
+
declare const entryDto: drizzle_zod.BuildSchema<"select", {
|
|
2545
|
+
id: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2546
|
+
name: "id";
|
|
2547
|
+
tableName: "entries";
|
|
2548
|
+
dataType: "string";
|
|
2549
|
+
columnType: "SQLiteText";
|
|
2550
|
+
data: string;
|
|
2551
|
+
driverParam: string;
|
|
2552
|
+
notNull: true;
|
|
2553
|
+
hasDefault: true;
|
|
2554
|
+
isPrimaryKey: true;
|
|
2555
|
+
isAutoincrement: false;
|
|
2556
|
+
hasRuntimeDefault: true;
|
|
2557
|
+
enumValues: [string, ...string[]];
|
|
2558
|
+
baseColumn: never;
|
|
2559
|
+
identity: undefined;
|
|
2560
|
+
generated: undefined;
|
|
2561
|
+
}, {}, {
|
|
2562
|
+
length: number | undefined;
|
|
2563
|
+
}>;
|
|
2564
|
+
collectionId: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2565
|
+
name: "collection_id";
|
|
2566
|
+
tableName: "entries";
|
|
2567
|
+
dataType: "string";
|
|
2568
|
+
columnType: "SQLiteText";
|
|
2569
|
+
data: string;
|
|
2570
|
+
driverParam: string;
|
|
2571
|
+
notNull: true;
|
|
2572
|
+
hasDefault: false;
|
|
2573
|
+
isPrimaryKey: false;
|
|
2574
|
+
isAutoincrement: false;
|
|
2575
|
+
hasRuntimeDefault: false;
|
|
2576
|
+
enumValues: [string, ...string[]];
|
|
2577
|
+
baseColumn: never;
|
|
2578
|
+
identity: undefined;
|
|
2579
|
+
generated: undefined;
|
|
2580
|
+
}, {}, {
|
|
2581
|
+
length: number | undefined;
|
|
2582
|
+
}>;
|
|
2583
|
+
title: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2584
|
+
name: "title";
|
|
2585
|
+
tableName: "entries";
|
|
2586
|
+
dataType: "string";
|
|
2587
|
+
columnType: "SQLiteText";
|
|
2588
|
+
data: string;
|
|
2589
|
+
driverParam: string;
|
|
2590
|
+
notNull: true;
|
|
2591
|
+
hasDefault: false;
|
|
2592
|
+
isPrimaryKey: false;
|
|
2593
|
+
isAutoincrement: false;
|
|
2594
|
+
hasRuntimeDefault: false;
|
|
2595
|
+
enumValues: [string, ...string[]];
|
|
2596
|
+
baseColumn: never;
|
|
2597
|
+
identity: undefined;
|
|
2598
|
+
generated: undefined;
|
|
2599
|
+
}, {}, {
|
|
2600
|
+
length: number | undefined;
|
|
2601
|
+
}>;
|
|
2602
|
+
slug: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2603
|
+
name: "slug";
|
|
2604
|
+
tableName: "entries";
|
|
2605
|
+
dataType: "string";
|
|
2606
|
+
columnType: "SQLiteText";
|
|
2607
|
+
data: string;
|
|
2608
|
+
driverParam: string;
|
|
2609
|
+
notNull: true;
|
|
2610
|
+
hasDefault: false;
|
|
2611
|
+
isPrimaryKey: false;
|
|
2612
|
+
isAutoincrement: false;
|
|
2613
|
+
hasRuntimeDefault: false;
|
|
2614
|
+
enumValues: [string, ...string[]];
|
|
2615
|
+
baseColumn: never;
|
|
2616
|
+
identity: undefined;
|
|
2617
|
+
generated: undefined;
|
|
2618
|
+
}, {}, {
|
|
2619
|
+
length: number | undefined;
|
|
2620
|
+
}>;
|
|
2621
|
+
data: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2622
|
+
name: "data";
|
|
2623
|
+
tableName: "entries";
|
|
2624
|
+
dataType: "json";
|
|
2625
|
+
columnType: "SQLiteTextJson";
|
|
2626
|
+
data: Record<string, unknown>;
|
|
2627
|
+
driverParam: string;
|
|
2628
|
+
notNull: true;
|
|
2629
|
+
hasDefault: false;
|
|
2630
|
+
isPrimaryKey: false;
|
|
2631
|
+
isAutoincrement: false;
|
|
2632
|
+
hasRuntimeDefault: false;
|
|
2633
|
+
enumValues: undefined;
|
|
2634
|
+
baseColumn: never;
|
|
2635
|
+
identity: undefined;
|
|
2636
|
+
generated: undefined;
|
|
2637
|
+
}, {}, {
|
|
2638
|
+
$type: Record<string, unknown>;
|
|
2639
|
+
}>;
|
|
2640
|
+
related: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2641
|
+
name: "related";
|
|
2642
|
+
tableName: "entries";
|
|
2643
|
+
dataType: "json";
|
|
2644
|
+
columnType: "SQLiteTextJson";
|
|
2645
|
+
data: string[];
|
|
2646
|
+
driverParam: string;
|
|
2647
|
+
notNull: false;
|
|
2648
|
+
hasDefault: false;
|
|
2649
|
+
isPrimaryKey: false;
|
|
2650
|
+
isAutoincrement: false;
|
|
2651
|
+
hasRuntimeDefault: false;
|
|
2652
|
+
enumValues: undefined;
|
|
2653
|
+
baseColumn: never;
|
|
2654
|
+
identity: undefined;
|
|
2655
|
+
generated: undefined;
|
|
2656
|
+
}, {}, {
|
|
2657
|
+
$type: string[];
|
|
2658
|
+
}>;
|
|
2659
|
+
createdBy: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2660
|
+
name: "created_by";
|
|
2661
|
+
tableName: "entries";
|
|
2662
|
+
dataType: "string";
|
|
2663
|
+
columnType: "SQLiteText";
|
|
2664
|
+
data: string;
|
|
2665
|
+
driverParam: string;
|
|
2666
|
+
notNull: false;
|
|
2667
|
+
hasDefault: false;
|
|
2668
|
+
isPrimaryKey: false;
|
|
2669
|
+
isAutoincrement: false;
|
|
2670
|
+
hasRuntimeDefault: false;
|
|
2671
|
+
enumValues: [string, ...string[]];
|
|
2672
|
+
baseColumn: never;
|
|
2673
|
+
identity: undefined;
|
|
2674
|
+
generated: undefined;
|
|
2675
|
+
}, {}, {
|
|
2676
|
+
length: number | undefined;
|
|
2677
|
+
}>;
|
|
2678
|
+
updatedBy: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2679
|
+
name: "updated_by";
|
|
2680
|
+
tableName: "entries";
|
|
2681
|
+
dataType: "string";
|
|
2682
|
+
columnType: "SQLiteText";
|
|
2683
|
+
data: string;
|
|
2684
|
+
driverParam: string;
|
|
2685
|
+
notNull: false;
|
|
2686
|
+
hasDefault: false;
|
|
2687
|
+
isPrimaryKey: false;
|
|
2688
|
+
isAutoincrement: false;
|
|
2689
|
+
hasRuntimeDefault: false;
|
|
2690
|
+
enumValues: [string, ...string[]];
|
|
2691
|
+
baseColumn: never;
|
|
2692
|
+
identity: undefined;
|
|
2693
|
+
generated: undefined;
|
|
2694
|
+
}, {}, {
|
|
2695
|
+
length: number | undefined;
|
|
2696
|
+
}>;
|
|
2697
|
+
status: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2698
|
+
name: "status";
|
|
2699
|
+
tableName: "entries";
|
|
2700
|
+
dataType: "string";
|
|
2701
|
+
columnType: "SQLiteText";
|
|
2702
|
+
data: "draft" | "waiting" | "ready" | "scheduled" | "published";
|
|
2703
|
+
driverParam: string;
|
|
2704
|
+
notNull: true;
|
|
2705
|
+
hasDefault: true;
|
|
2706
|
+
isPrimaryKey: false;
|
|
2707
|
+
isAutoincrement: false;
|
|
2708
|
+
hasRuntimeDefault: false;
|
|
2709
|
+
enumValues: ["draft", "waiting", "ready", "scheduled", "published"];
|
|
2710
|
+
baseColumn: never;
|
|
2711
|
+
identity: undefined;
|
|
2712
|
+
generated: undefined;
|
|
2713
|
+
}, {}, {
|
|
2714
|
+
length: number | undefined;
|
|
2715
|
+
}>;
|
|
2716
|
+
publishedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2717
|
+
name: "published_at";
|
|
2718
|
+
tableName: "entries";
|
|
2719
|
+
dataType: "string";
|
|
2720
|
+
columnType: "SQLiteText";
|
|
2721
|
+
data: string;
|
|
2722
|
+
driverParam: string;
|
|
2723
|
+
notNull: false;
|
|
2724
|
+
hasDefault: false;
|
|
2725
|
+
isPrimaryKey: false;
|
|
2726
|
+
isAutoincrement: false;
|
|
2727
|
+
hasRuntimeDefault: false;
|
|
2728
|
+
enumValues: [string, ...string[]];
|
|
2729
|
+
baseColumn: never;
|
|
2730
|
+
identity: undefined;
|
|
2731
|
+
generated: undefined;
|
|
2732
|
+
}, {}, {
|
|
2733
|
+
length: number | undefined;
|
|
2734
|
+
}>;
|
|
2735
|
+
legacyExtra: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2736
|
+
name: "legacy_extra";
|
|
2737
|
+
tableName: "entries";
|
|
2738
|
+
dataType: "json";
|
|
2739
|
+
columnType: "SQLiteTextJson";
|
|
2740
|
+
data: Record<string, unknown> | null;
|
|
2741
|
+
driverParam: string;
|
|
2742
|
+
notNull: false;
|
|
2743
|
+
hasDefault: false;
|
|
2744
|
+
isPrimaryKey: false;
|
|
2745
|
+
isAutoincrement: false;
|
|
2746
|
+
hasRuntimeDefault: false;
|
|
2747
|
+
enumValues: undefined;
|
|
2748
|
+
baseColumn: never;
|
|
2749
|
+
identity: undefined;
|
|
2750
|
+
generated: undefined;
|
|
2751
|
+
}, {}, {
|
|
2752
|
+
$type: Record<string, unknown> | null;
|
|
2753
|
+
}>;
|
|
2754
|
+
createdAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2755
|
+
name: "created_at";
|
|
2756
|
+
tableName: "entries";
|
|
2757
|
+
dataType: "string";
|
|
2758
|
+
columnType: "SQLiteText";
|
|
2759
|
+
data: string;
|
|
2760
|
+
driverParam: string;
|
|
2761
|
+
notNull: true;
|
|
2762
|
+
hasDefault: true;
|
|
2763
|
+
isPrimaryKey: false;
|
|
2764
|
+
isAutoincrement: false;
|
|
2765
|
+
hasRuntimeDefault: true;
|
|
2766
|
+
enumValues: [string, ...string[]];
|
|
2767
|
+
baseColumn: never;
|
|
2768
|
+
identity: undefined;
|
|
2769
|
+
generated: undefined;
|
|
2770
|
+
}, {}, {
|
|
2771
|
+
length: number | undefined;
|
|
2772
|
+
}>;
|
|
2773
|
+
updatedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2774
|
+
name: "updated_at";
|
|
2775
|
+
tableName: "entries";
|
|
2776
|
+
dataType: "string";
|
|
2777
|
+
columnType: "SQLiteText";
|
|
2778
|
+
data: string;
|
|
2779
|
+
driverParam: string;
|
|
2780
|
+
notNull: true;
|
|
2781
|
+
hasDefault: true;
|
|
2782
|
+
isPrimaryKey: false;
|
|
2783
|
+
isAutoincrement: false;
|
|
2784
|
+
hasRuntimeDefault: true;
|
|
2785
|
+
enumValues: [string, ...string[]];
|
|
2786
|
+
baseColumn: never;
|
|
2787
|
+
identity: undefined;
|
|
2788
|
+
generated: undefined;
|
|
2789
|
+
}, {}, {
|
|
2790
|
+
length: number | undefined;
|
|
2791
|
+
}>;
|
|
2792
|
+
}, {
|
|
2793
|
+
collectionId: (schema: z.ZodString) => z.ZodString;
|
|
2794
|
+
slug: (schema: z.ZodString) => z.ZodString;
|
|
2795
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2796
|
+
related: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
2797
|
+
status: (schema: z.ZodEnum<{
|
|
2798
|
+
draft: "draft";
|
|
2799
|
+
waiting: "waiting";
|
|
2800
|
+
ready: "ready";
|
|
2801
|
+
scheduled: "scheduled";
|
|
2802
|
+
published: "published";
|
|
2803
|
+
}>) => z.ZodEnum<{
|
|
2804
|
+
draft: "draft";
|
|
2805
|
+
waiting: "waiting";
|
|
2806
|
+
ready: "ready";
|
|
2807
|
+
scheduled: "scheduled";
|
|
2808
|
+
published: "published";
|
|
2809
|
+
}>;
|
|
2810
|
+
}, undefined>;
|
|
2811
|
+
/** A search hit: the entry, and which collection it comes from. */
|
|
2812
|
+
declare const entrySearchHitDto: z.ZodObject<{
|
|
2813
|
+
id: z.ZodString;
|
|
2814
|
+
collectionId: z.ZodString;
|
|
2815
|
+
title: z.ZodString;
|
|
2816
|
+
slug: z.ZodString;
|
|
2817
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2818
|
+
related: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
2819
|
+
createdBy: z.ZodNullable<z.ZodString>;
|
|
2820
|
+
updatedBy: z.ZodNullable<z.ZodString>;
|
|
2821
|
+
status: z.ZodEnum<{
|
|
2822
|
+
draft: "draft";
|
|
2823
|
+
waiting: "waiting";
|
|
2824
|
+
ready: "ready";
|
|
2825
|
+
scheduled: "scheduled";
|
|
2826
|
+
published: "published";
|
|
2827
|
+
}>;
|
|
2828
|
+
publishedAt: z.ZodNullable<z.ZodString>;
|
|
2829
|
+
legacyExtra: z.ZodNullable<z.ZodType<drizzle_zod.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod.Json, unknown>>>;
|
|
2830
|
+
createdAt: z.ZodString;
|
|
2831
|
+
updatedAt: z.ZodString;
|
|
2832
|
+
collectionSlug: z.ZodString;
|
|
2833
|
+
}, {
|
|
2834
|
+
out: {};
|
|
2835
|
+
in: {};
|
|
2836
|
+
}>;
|
|
2238
2837
|
type EntryCreateDto = z.infer<typeof entryCreateDto>;
|
|
2239
2838
|
type EntryUpdateDto = z.infer<typeof entryUpdateDto>;
|
|
2839
|
+
type EntrySearchHit = z.infer<typeof entrySearchHitDto>;
|
|
2240
2840
|
|
|
2241
2841
|
/**
|
|
2242
2842
|
* The content engine: collection definitions over a closed field-type set, and
|
|
@@ -2268,6 +2868,16 @@ declare class CollectionsService {
|
|
|
2268
2868
|
status?: Entry['status'][];
|
|
2269
2869
|
search?: string;
|
|
2270
2870
|
}): Promise<number>;
|
|
2871
|
+
/**
|
|
2872
|
+
* Text search across collections, or within the ones named (by id or slug).
|
|
2873
|
+
* Each hit carries the slug of its collection.
|
|
2874
|
+
*/
|
|
2875
|
+
searchEntries(options: {
|
|
2876
|
+
query: string;
|
|
2877
|
+
collections?: string[];
|
|
2878
|
+
status?: Entry['status'][];
|
|
2879
|
+
limit?: number;
|
|
2880
|
+
}): Promise<EntrySearchHit[]>;
|
|
2271
2881
|
listPublishedEntries(collectionIdOrSlug: string): Promise<Entry[]>;
|
|
2272
2882
|
createEntry(collectionIdOrSlug: string, input: EntryCreateDto, actorId?: string): Promise<Entry>;
|
|
2273
2883
|
/** PARTIAL update: `data` is merged field by field with what already exists. */
|
|
@@ -2350,9 +2960,82 @@ declare function createTypedError(type: string, trpcCode: TrpcErrorCode): {
|
|
|
2350
2960
|
stackTraceLimit: number;
|
|
2351
2961
|
};
|
|
2352
2962
|
|
|
2963
|
+
/**
|
|
2964
|
+
* What turns a tRPC procedure into an agent tool. A capability is declared
|
|
2965
|
+
* ONCE, on its procedure: this meta names and describes it, the procedure's
|
|
2966
|
+
* `.input()` and `.output()` give its schemas, its middleware gives its access
|
|
2967
|
+
* rules. The same declaration serves the admin, the internal agent and any MCP
|
|
2968
|
+
* server — the core itself depends on no MCP library.
|
|
2969
|
+
*
|
|
2970
|
+
* entries: router({
|
|
2971
|
+
* get: protectedProcedure
|
|
2972
|
+
* .meta({ agent: { name: 'entries_get', description: '…', annotations: { readOnlyHint: true } } })
|
|
2973
|
+
* .input(z.object({ id: z.string().describe('…') }))
|
|
2974
|
+
* .output(entryDto)
|
|
2975
|
+
* .query(…),
|
|
2976
|
+
* })
|
|
2977
|
+
*/
|
|
2978
|
+
interface AgentToolMeta {
|
|
2979
|
+
/** The tool name the model sees. `snake_case`, unique across the router. */
|
|
2980
|
+
name: string;
|
|
2981
|
+
/** A short human-readable title, shown by assistants that list tools. */
|
|
2982
|
+
title?: string;
|
|
2983
|
+
/** What the tool does and when to use it — written for the model. */
|
|
2984
|
+
description: string;
|
|
2985
|
+
/** MCP behaviour hints. They inform the assistant; they enforce nothing. */
|
|
2986
|
+
annotations?: {
|
|
2987
|
+
readOnlyHint?: boolean;
|
|
2988
|
+
destructiveHint?: boolean;
|
|
2989
|
+
idempotentHint?: boolean;
|
|
2990
|
+
openWorldHint?: boolean;
|
|
2991
|
+
};
|
|
2992
|
+
}
|
|
2993
|
+
/** The meta every procedure of the core may carry. */
|
|
2994
|
+
interface CoreMeta {
|
|
2995
|
+
/** Present when the procedure is exposed to agents. */
|
|
2996
|
+
agent?: AgentToolMeta;
|
|
2997
|
+
}
|
|
2998
|
+
|
|
2999
|
+
declare const AgentToolNotFoundError: {
|
|
3000
|
+
new (message?: string): {
|
|
3001
|
+
readonly type: string;
|
|
3002
|
+
readonly trpcCode: TrpcErrorCode;
|
|
3003
|
+
name: string;
|
|
3004
|
+
message: string;
|
|
3005
|
+
stack?: string;
|
|
3006
|
+
cause?: unknown;
|
|
3007
|
+
};
|
|
3008
|
+
isError(error: unknown): error is Error;
|
|
3009
|
+
isError(value: unknown): value is Error;
|
|
3010
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
3011
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
3012
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
3013
|
+
stackTraceLimit: number;
|
|
3014
|
+
};
|
|
3015
|
+
/**
|
|
3016
|
+
* A procedure carrying `agent` meta, with its zod schemas. An MCP server
|
|
3017
|
+
* registers it as is; the internal agent turns the schemas into its model's
|
|
3018
|
+
* format with `z.toJSONSchema`.
|
|
3019
|
+
*/
|
|
3020
|
+
interface AgentTool extends AgentToolMeta {
|
|
3021
|
+
/** Where the procedure sits in the router, e.g. `collections.entries.get`. */
|
|
3022
|
+
path: string;
|
|
3023
|
+
input: z.ZodObject;
|
|
3024
|
+
/** MCP wants an object: a list result is carried under `result`. */
|
|
3025
|
+
output?: z.ZodObject;
|
|
3026
|
+
}
|
|
3027
|
+
/** The tools a router exposes to agents: every procedure carrying `agent` meta. */
|
|
3028
|
+
declare function agentTools(router: AnyRouter): AgentTool[];
|
|
3029
|
+
/**
|
|
3030
|
+
* Runs a tool through its procedure, middlewares included: the caller has
|
|
3031
|
+
* exactly the rights its session gives in the admin. A list result comes back
|
|
3032
|
+
* as `{ result: [...] }`, as the tool's output schema says.
|
|
3033
|
+
*/
|
|
3034
|
+
declare function callTool(router: AnyRouter, ctx: CoreContext, name: string, args: unknown): Promise<unknown>;
|
|
3035
|
+
|
|
2353
3036
|
declare const organizationRouter: _trpc_server.TRPCBuiltRouter<{
|
|
2354
3037
|
ctx: CoreContext;
|
|
2355
|
-
meta:
|
|
3038
|
+
meta: CoreMeta;
|
|
2356
3039
|
errorShape: {
|
|
2357
3040
|
data: {
|
|
2358
3041
|
type?: string | undefined;
|
|
@@ -2370,10 +3053,10 @@ declare const organizationRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2370
3053
|
input: void;
|
|
2371
3054
|
output: {
|
|
2372
3055
|
type: "commune" | "intercommunality" | "syndicate" | "other";
|
|
2373
|
-
description: string | null;
|
|
2374
|
-
id: number;
|
|
2375
3056
|
name: string;
|
|
3057
|
+
id: number;
|
|
2376
3058
|
slug: string;
|
|
3059
|
+
description: string | null;
|
|
2377
3060
|
address: {
|
|
2378
3061
|
street?: string | undefined;
|
|
2379
3062
|
postalCode?: string | undefined;
|
|
@@ -2386,7 +3069,7 @@ declare const organizationRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2386
3069
|
createdAt: string;
|
|
2387
3070
|
updatedAt: string;
|
|
2388
3071
|
} | null;
|
|
2389
|
-
meta:
|
|
3072
|
+
meta: CoreMeta;
|
|
2390
3073
|
}>;
|
|
2391
3074
|
init: _trpc_server.TRPCMutationProcedure<{
|
|
2392
3075
|
input: {
|
|
@@ -2404,10 +3087,10 @@ declare const organizationRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2404
3087
|
};
|
|
2405
3088
|
output: {
|
|
2406
3089
|
type: "commune" | "intercommunality" | "syndicate" | "other";
|
|
2407
|
-
description: string | null;
|
|
2408
|
-
id: number;
|
|
2409
3090
|
name: string;
|
|
3091
|
+
id: number;
|
|
2410
3092
|
slug: string;
|
|
3093
|
+
description: string | null;
|
|
2411
3094
|
address: {
|
|
2412
3095
|
street?: string | undefined;
|
|
2413
3096
|
postalCode?: string | undefined;
|
|
@@ -2420,14 +3103,14 @@ declare const organizationRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2420
3103
|
createdAt: string;
|
|
2421
3104
|
updatedAt: string;
|
|
2422
3105
|
};
|
|
2423
|
-
meta:
|
|
3106
|
+
meta: CoreMeta;
|
|
2424
3107
|
}>;
|
|
2425
3108
|
update: _trpc_server.TRPCMutationProcedure<{
|
|
2426
3109
|
input: {
|
|
2427
3110
|
type?: "commune" | "intercommunality" | "syndicate" | "other" | undefined;
|
|
2428
|
-
description?: string | null | undefined;
|
|
2429
3111
|
name?: string | undefined;
|
|
2430
3112
|
slug?: string | undefined;
|
|
3113
|
+
description?: string | null | undefined;
|
|
2431
3114
|
address?: {
|
|
2432
3115
|
street?: string | undefined;
|
|
2433
3116
|
postalCode?: string | undefined;
|
|
@@ -2438,10 +3121,10 @@ declare const organizationRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2438
3121
|
};
|
|
2439
3122
|
output: {
|
|
2440
3123
|
type: "commune" | "intercommunality" | "syndicate" | "other";
|
|
2441
|
-
description: string | null;
|
|
2442
|
-
id: number;
|
|
2443
3124
|
name: string;
|
|
3125
|
+
id: number;
|
|
2444
3126
|
slug: string;
|
|
3127
|
+
description: string | null;
|
|
2445
3128
|
address: {
|
|
2446
3129
|
street?: string | undefined;
|
|
2447
3130
|
postalCode?: string | undefined;
|
|
@@ -2454,14 +3137,14 @@ declare const organizationRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2454
3137
|
createdAt: string;
|
|
2455
3138
|
updatedAt: string;
|
|
2456
3139
|
};
|
|
2457
|
-
meta:
|
|
3140
|
+
meta: CoreMeta;
|
|
2458
3141
|
}>;
|
|
2459
3142
|
deploy: _trpc_server.TRPCMutationProcedure<{
|
|
2460
3143
|
input: void;
|
|
2461
3144
|
output: {
|
|
2462
3145
|
status: number;
|
|
2463
3146
|
};
|
|
2464
|
-
meta:
|
|
3147
|
+
meta: CoreMeta;
|
|
2465
3148
|
}>;
|
|
2466
3149
|
}>>;
|
|
2467
3150
|
|
|
@@ -2582,7 +3265,7 @@ type ApiTokenCreateDto = z.infer<typeof apiTokenCreateDto>;
|
|
|
2582
3265
|
|
|
2583
3266
|
declare const authRouter: _trpc_server.TRPCBuiltRouter<{
|
|
2584
3267
|
ctx: CoreContext;
|
|
2585
|
-
meta:
|
|
3268
|
+
meta: CoreMeta;
|
|
2586
3269
|
errorShape: {
|
|
2587
3270
|
data: {
|
|
2588
3271
|
type?: string | undefined;
|
|
@@ -2613,14 +3296,14 @@ declare const authRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2613
3296
|
role: "admin" | "redacteur";
|
|
2614
3297
|
};
|
|
2615
3298
|
};
|
|
2616
|
-
meta:
|
|
3299
|
+
meta: CoreMeta;
|
|
2617
3300
|
}>;
|
|
2618
3301
|
logout: _trpc_server.TRPCMutationProcedure<{
|
|
2619
3302
|
input: void;
|
|
2620
3303
|
output: {
|
|
2621
3304
|
loggedOut: boolean;
|
|
2622
3305
|
};
|
|
2623
|
-
meta:
|
|
3306
|
+
meta: CoreMeta;
|
|
2624
3307
|
}>;
|
|
2625
3308
|
me: _trpc_server.TRPCQueryProcedure<{
|
|
2626
3309
|
input: void;
|
|
@@ -2632,12 +3315,12 @@ declare const authRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2632
3315
|
role: "admin" | "redacteur";
|
|
2633
3316
|
};
|
|
2634
3317
|
};
|
|
2635
|
-
meta:
|
|
3318
|
+
meta: CoreMeta;
|
|
2636
3319
|
}>;
|
|
2637
3320
|
/** Device management: the sessions listed on the account page. */
|
|
2638
3321
|
sessions: _trpc_server.TRPCBuiltRouter<{
|
|
2639
3322
|
ctx: CoreContext;
|
|
2640
|
-
meta:
|
|
3323
|
+
meta: CoreMeta;
|
|
2641
3324
|
errorShape: {
|
|
2642
3325
|
data: {
|
|
2643
3326
|
type?: string | undefined;
|
|
@@ -2661,7 +3344,7 @@ declare const authRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2661
3344
|
ip: string | null;
|
|
2662
3345
|
current: boolean;
|
|
2663
3346
|
}[];
|
|
2664
|
-
meta:
|
|
3347
|
+
meta: CoreMeta;
|
|
2665
3348
|
}>;
|
|
2666
3349
|
revoke: _trpc_server.TRPCMutationProcedure<{
|
|
2667
3350
|
input: {
|
|
@@ -2670,7 +3353,7 @@ declare const authRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2670
3353
|
output: {
|
|
2671
3354
|
revoked: string;
|
|
2672
3355
|
};
|
|
2673
|
-
meta:
|
|
3356
|
+
meta: CoreMeta;
|
|
2674
3357
|
}>;
|
|
2675
3358
|
}>>;
|
|
2676
3359
|
/** Consume an invitation link and set the password (public, single-use). */
|
|
@@ -2688,7 +3371,7 @@ declare const authRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2688
3371
|
role: "admin" | "redacteur";
|
|
2689
3372
|
};
|
|
2690
3373
|
};
|
|
2691
|
-
meta:
|
|
3374
|
+
meta: CoreMeta;
|
|
2692
3375
|
}>;
|
|
2693
3376
|
/**
|
|
2694
3377
|
* « Forgotten password » — public, and the response is ALWAYS { ok: true }
|
|
@@ -2702,12 +3385,12 @@ declare const authRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2702
3385
|
output: {
|
|
2703
3386
|
ok: boolean;
|
|
2704
3387
|
};
|
|
2705
|
-
meta:
|
|
3388
|
+
meta: CoreMeta;
|
|
2706
3389
|
}>;
|
|
2707
3390
|
}>>;
|
|
2708
3391
|
declare const usersRouter: _trpc_server.TRPCBuiltRouter<{
|
|
2709
3392
|
ctx: CoreContext;
|
|
2710
|
-
meta:
|
|
3393
|
+
meta: CoreMeta;
|
|
2711
3394
|
errorShape: {
|
|
2712
3395
|
data: {
|
|
2713
3396
|
type?: string | undefined;
|
|
@@ -2729,7 +3412,7 @@ declare const usersRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2729
3412
|
name: string;
|
|
2730
3413
|
role: "admin" | "redacteur";
|
|
2731
3414
|
}[];
|
|
2732
|
-
meta:
|
|
3415
|
+
meta: CoreMeta;
|
|
2733
3416
|
}>;
|
|
2734
3417
|
/**
|
|
2735
3418
|
* A {id, name} directory readable by any signed-in member: the admin shows
|
|
@@ -2742,7 +3425,7 @@ declare const usersRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2742
3425
|
id: string;
|
|
2743
3426
|
name: string;
|
|
2744
3427
|
}[];
|
|
2745
|
-
meta:
|
|
3428
|
+
meta: CoreMeta;
|
|
2746
3429
|
}>;
|
|
2747
3430
|
/** Read a single user. */
|
|
2748
3431
|
get: _trpc_server.TRPCQueryProcedure<{
|
|
@@ -2755,7 +3438,7 @@ declare const usersRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2755
3438
|
name: string;
|
|
2756
3439
|
role: "admin" | "redacteur";
|
|
2757
3440
|
};
|
|
2758
|
-
meta:
|
|
3441
|
+
meta: CoreMeta;
|
|
2759
3442
|
}>;
|
|
2760
3443
|
/** Invite a new member — the single-use link is returned to the admin. */
|
|
2761
3444
|
invite: _trpc_server.TRPCMutationProcedure<{
|
|
@@ -2767,7 +3450,7 @@ declare const usersRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2767
3450
|
token: string;
|
|
2768
3451
|
expiresAt: string;
|
|
2769
3452
|
};
|
|
2770
|
-
meta:
|
|
3453
|
+
meta: CoreMeta;
|
|
2771
3454
|
}>;
|
|
2772
3455
|
update: _trpc_server.TRPCMutationProcedure<{
|
|
2773
3456
|
input: {
|
|
@@ -2784,7 +3467,7 @@ declare const usersRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2784
3467
|
name: string;
|
|
2785
3468
|
role: "admin" | "redacteur";
|
|
2786
3469
|
};
|
|
2787
|
-
meta:
|
|
3470
|
+
meta: CoreMeta;
|
|
2788
3471
|
}>;
|
|
2789
3472
|
remove: _trpc_server.TRPCMutationProcedure<{
|
|
2790
3473
|
input: {
|
|
@@ -2793,12 +3476,12 @@ declare const usersRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2793
3476
|
output: {
|
|
2794
3477
|
removed: string;
|
|
2795
3478
|
};
|
|
2796
|
-
meta:
|
|
3479
|
+
meta: CoreMeta;
|
|
2797
3480
|
}>;
|
|
2798
3481
|
}>>;
|
|
2799
3482
|
declare const apiTokensRouter: _trpc_server.TRPCBuiltRouter<{
|
|
2800
3483
|
ctx: CoreContext;
|
|
2801
|
-
meta:
|
|
3484
|
+
meta: CoreMeta;
|
|
2802
3485
|
errorShape: {
|
|
2803
3486
|
data: {
|
|
2804
3487
|
type?: string | undefined;
|
|
@@ -2815,14 +3498,14 @@ declare const apiTokensRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2815
3498
|
list: _trpc_server.TRPCQueryProcedure<{
|
|
2816
3499
|
input: void;
|
|
2817
3500
|
output: Pick<{
|
|
2818
|
-
id: string;
|
|
2819
3501
|
name: string;
|
|
3502
|
+
id: string;
|
|
2820
3503
|
createdAt: string;
|
|
2821
3504
|
revokedAt: string | null;
|
|
2822
3505
|
tokenHash: string;
|
|
2823
3506
|
lastUsedAt: string | null;
|
|
2824
|
-
}, "
|
|
2825
|
-
meta:
|
|
3507
|
+
}, "name" | "id" | "createdAt" | "revokedAt" | "lastUsedAt">[];
|
|
3508
|
+
meta: CoreMeta;
|
|
2826
3509
|
}>;
|
|
2827
3510
|
/** The plaintext token is returned ONCE — only its hash is stored. */
|
|
2828
3511
|
create: _trpc_server.TRPCMutationProcedure<{
|
|
@@ -2834,7 +3517,7 @@ declare const apiTokensRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2834
3517
|
id: string;
|
|
2835
3518
|
name: string;
|
|
2836
3519
|
};
|
|
2837
|
-
meta:
|
|
3520
|
+
meta: CoreMeta;
|
|
2838
3521
|
}>;
|
|
2839
3522
|
revoke: _trpc_server.TRPCMutationProcedure<{
|
|
2840
3523
|
input: {
|
|
@@ -2843,7 +3526,7 @@ declare const apiTokensRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2843
3526
|
output: {
|
|
2844
3527
|
revoked: string;
|
|
2845
3528
|
};
|
|
2846
|
-
meta:
|
|
3529
|
+
meta: CoreMeta;
|
|
2847
3530
|
}>;
|
|
2848
3531
|
}>>;
|
|
2849
3532
|
|
|
@@ -2931,7 +3614,7 @@ declare const TooManyAttemptsError: {
|
|
|
2931
3614
|
|
|
2932
3615
|
declare const mediaRouter: _trpc_server.TRPCBuiltRouter<{
|
|
2933
3616
|
ctx: CoreContext;
|
|
2934
|
-
meta:
|
|
3617
|
+
meta: CoreMeta;
|
|
2935
3618
|
errorShape: {
|
|
2936
3619
|
data: {
|
|
2937
3620
|
type?: string | undefined;
|
|
@@ -2955,7 +3638,7 @@ declare const mediaRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2955
3638
|
key: string;
|
|
2956
3639
|
url: string;
|
|
2957
3640
|
};
|
|
2958
|
-
meta:
|
|
3641
|
+
meta: CoreMeta;
|
|
2959
3642
|
}>;
|
|
2960
3643
|
finalize: _trpc_server.TRPCMutationProcedure<{
|
|
2961
3644
|
input: {
|
|
@@ -2966,65 +3649,65 @@ declare const mediaRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2966
3649
|
metaData?: Record<string, unknown> | undefined;
|
|
2967
3650
|
};
|
|
2968
3651
|
output: {
|
|
3652
|
+
filename: string;
|
|
2969
3653
|
id: string;
|
|
2970
3654
|
updatedBy: string | null;
|
|
2971
3655
|
legacyExtra: Record<string, unknown> | null;
|
|
2972
3656
|
createdAt: string;
|
|
2973
3657
|
updatedAt: string;
|
|
2974
|
-
filename: string;
|
|
2975
3658
|
mime: string;
|
|
2976
|
-
metaData: Record<string, unknown> | null;
|
|
2977
|
-
alt: string | null;
|
|
2978
3659
|
size: number;
|
|
3660
|
+
alt: string | null;
|
|
2979
3661
|
caption: string | null;
|
|
2980
3662
|
objects: Record<string, unknown>;
|
|
3663
|
+
metaData: Record<string, unknown> | null;
|
|
2981
3664
|
createdBy: string | null;
|
|
2982
3665
|
};
|
|
2983
|
-
meta:
|
|
3666
|
+
meta: CoreMeta;
|
|
2984
3667
|
}>;
|
|
2985
3668
|
list: _trpc_server.TRPCQueryProcedure<{
|
|
2986
3669
|
input: void;
|
|
2987
3670
|
output: ({
|
|
3671
|
+
filename: string;
|
|
2988
3672
|
id: string;
|
|
2989
3673
|
updatedBy: string | null;
|
|
2990
3674
|
legacyExtra: Record<string, unknown> | null;
|
|
2991
3675
|
createdAt: string;
|
|
2992
3676
|
updatedAt: string;
|
|
2993
|
-
filename: string;
|
|
2994
3677
|
mime: string;
|
|
2995
|
-
metaData: Record<string, unknown> | null;
|
|
2996
|
-
alt: string | null;
|
|
2997
3678
|
size: number;
|
|
3679
|
+
alt: string | null;
|
|
2998
3680
|
caption: string | null;
|
|
2999
3681
|
objects: Record<string, unknown>;
|
|
3682
|
+
metaData: Record<string, unknown> | null;
|
|
3000
3683
|
createdBy: string | null;
|
|
3001
3684
|
} & {
|
|
3002
3685
|
objects: Record<string, string>;
|
|
3003
3686
|
})[];
|
|
3004
|
-
meta:
|
|
3687
|
+
meta: CoreMeta;
|
|
3005
3688
|
}>;
|
|
3006
3689
|
get: _trpc_server.TRPCQueryProcedure<{
|
|
3007
3690
|
input: {
|
|
3008
3691
|
id: string;
|
|
3009
3692
|
};
|
|
3010
3693
|
output: {
|
|
3694
|
+
filename: string;
|
|
3011
3695
|
id: string;
|
|
3012
3696
|
updatedBy: string | null;
|
|
3013
3697
|
legacyExtra: Record<string, unknown> | null;
|
|
3014
3698
|
createdAt: string;
|
|
3015
3699
|
updatedAt: string;
|
|
3016
|
-
filename: string;
|
|
3017
3700
|
mime: string;
|
|
3018
|
-
metaData: Record<string, unknown> | null;
|
|
3019
|
-
alt: string | null;
|
|
3020
3701
|
size: number;
|
|
3702
|
+
alt: string | null;
|
|
3021
3703
|
caption: string | null;
|
|
3022
3704
|
objects: Record<string, unknown>;
|
|
3705
|
+
metaData: Record<string, unknown> | null;
|
|
3023
3706
|
createdBy: string | null;
|
|
3024
3707
|
} & {
|
|
3025
3708
|
objects: Record<string, string>;
|
|
3026
3709
|
};
|
|
3027
|
-
meta:
|
|
3710
|
+
meta: CoreMeta;
|
|
3028
3711
|
}>;
|
|
3029
3712
|
update: _trpc_server.TRPCMutationProcedure<{
|
|
3030
3713
|
input: {
|
|
@@ -3036,21 +3719,21 @@ declare const mediaRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3036
3719
|
};
|
|
3037
3720
|
};
|
|
3038
3721
|
output: {
|
|
3722
|
+
filename: string;
|
|
3039
3723
|
id: string;
|
|
3040
3724
|
updatedBy: string | null;
|
|
3041
3725
|
legacyExtra: Record<string, unknown> | null;
|
|
3042
3726
|
createdAt: string;
|
|
3043
3727
|
updatedAt: string;
|
|
3044
|
-
filename: string;
|
|
3045
3728
|
mime: string;
|
|
3046
|
-
metaData: Record<string, unknown> | null;
|
|
3047
|
-
alt: string | null;
|
|
3048
3729
|
size: number;
|
|
3730
|
+
alt: string | null;
|
|
3049
3731
|
caption: string | null;
|
|
3050
3732
|
objects: Record<string, unknown>;
|
|
3733
|
+
metaData: Record<string, unknown> | null;
|
|
3051
3734
|
createdBy: string | null;
|
|
3052
3735
|
};
|
|
3053
|
-
meta:
|
|
3736
|
+
meta: CoreMeta;
|
|
3054
3737
|
}>;
|
|
3055
3738
|
remove: _trpc_server.TRPCMutationProcedure<{
|
|
3056
3739
|
input: {
|
|
@@ -3059,7 +3742,7 @@ declare const mediaRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3059
3742
|
output: {
|
|
3060
3743
|
removed: string;
|
|
3061
3744
|
};
|
|
3062
|
-
meta:
|
|
3745
|
+
meta: CoreMeta;
|
|
3063
3746
|
}>;
|
|
3064
3747
|
}>>;
|
|
3065
3748
|
|
|
@@ -3114,7 +3797,7 @@ declare const UploadIncompleteError: {
|
|
|
3114
3797
|
|
|
3115
3798
|
declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
3116
3799
|
ctx: CoreContext;
|
|
3117
|
-
meta:
|
|
3800
|
+
meta: CoreMeta;
|
|
3118
3801
|
errorShape: {
|
|
3119
3802
|
data: {
|
|
3120
3803
|
type?: string | undefined;
|
|
@@ -3131,10 +3814,10 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3131
3814
|
list: _trpc_server.TRPCQueryProcedure<{
|
|
3132
3815
|
input: void;
|
|
3133
3816
|
output: {
|
|
3134
|
-
description: string | null;
|
|
3135
|
-
id: string;
|
|
3136
3817
|
name: string;
|
|
3818
|
+
id: string;
|
|
3137
3819
|
slug: string;
|
|
3820
|
+
description: string | null;
|
|
3138
3821
|
updatedBy: string | null;
|
|
3139
3822
|
legacyExtra: Record<string, unknown> | null;
|
|
3140
3823
|
createdAt: string;
|
|
@@ -3143,7 +3826,7 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3143
3826
|
fields: {
|
|
3144
3827
|
name: string;
|
|
3145
3828
|
label: string;
|
|
3146
|
-
type: "number" | "boolean" | "
|
|
3829
|
+
type: "number" | "boolean" | "text" | "rich-text" | "date" | "media" | "relation" | "select" | "steps" | "json";
|
|
3147
3830
|
required: boolean;
|
|
3148
3831
|
hidden: boolean;
|
|
3149
3832
|
options?: string[] | undefined;
|
|
@@ -3153,26 +3836,22 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3153
3836
|
display: Record<string, unknown> | null;
|
|
3154
3837
|
headings: Record<string, unknown> | null;
|
|
3155
3838
|
}[];
|
|
3156
|
-
meta:
|
|
3839
|
+
meta: CoreMeta;
|
|
3157
3840
|
}>;
|
|
3158
3841
|
get: _trpc_server.TRPCQueryProcedure<{
|
|
3159
3842
|
input: {
|
|
3160
3843
|
idOrSlug: string;
|
|
3161
3844
|
};
|
|
3162
3845
|
output: {
|
|
3163
|
-
description: string | null;
|
|
3164
3846
|
id: string;
|
|
3165
3847
|
name: string;
|
|
3166
3848
|
slug: string;
|
|
3167
|
-
|
|
3168
|
-
legacyExtra: Record<string, unknown> | null;
|
|
3169
|
-
createdAt: string;
|
|
3170
|
-
updatedAt: string;
|
|
3171
|
-
createdBy: string | null;
|
|
3849
|
+
description: string | null;
|
|
3172
3850
|
fields: {
|
|
3851
|
+
[x: string]: unknown;
|
|
3173
3852
|
name: string;
|
|
3174
3853
|
label: string;
|
|
3175
|
-
type:
|
|
3854
|
+
type: string;
|
|
3176
3855
|
required: boolean;
|
|
3177
3856
|
hidden: boolean;
|
|
3178
3857
|
options?: string[] | undefined;
|
|
@@ -3181,8 +3860,13 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3181
3860
|
editor: Record<string, unknown> | null;
|
|
3182
3861
|
display: Record<string, unknown> | null;
|
|
3183
3862
|
headings: Record<string, unknown> | null;
|
|
3863
|
+
createdBy: string | null;
|
|
3864
|
+
updatedBy: string | null;
|
|
3865
|
+
legacyExtra: drizzle_zod.Json;
|
|
3866
|
+
createdAt: string;
|
|
3867
|
+
updatedAt: string;
|
|
3184
3868
|
};
|
|
3185
|
-
meta:
|
|
3869
|
+
meta: CoreMeta;
|
|
3186
3870
|
}>;
|
|
3187
3871
|
create: _trpc_server.TRPCMutationProcedure<{
|
|
3188
3872
|
input: {
|
|
@@ -3190,7 +3874,7 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3190
3874
|
fields: {
|
|
3191
3875
|
name: string;
|
|
3192
3876
|
label: string;
|
|
3193
|
-
type: "number" | "boolean" | "
|
|
3877
|
+
type: "number" | "boolean" | "text" | "rich-text" | "date" | "media" | "relation" | "select" | "steps" | "json";
|
|
3194
3878
|
required?: boolean | undefined;
|
|
3195
3879
|
hidden?: boolean | undefined;
|
|
3196
3880
|
options?: string[] | undefined;
|
|
@@ -3203,10 +3887,10 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3203
3887
|
slug?: string | undefined;
|
|
3204
3888
|
};
|
|
3205
3889
|
output: {
|
|
3206
|
-
description: string | null;
|
|
3207
|
-
id: string;
|
|
3208
3890
|
name: string;
|
|
3891
|
+
id: string;
|
|
3209
3892
|
slug: string;
|
|
3893
|
+
description: string | null;
|
|
3210
3894
|
updatedBy: string | null;
|
|
3211
3895
|
legacyExtra: Record<string, unknown> | null;
|
|
3212
3896
|
createdAt: string;
|
|
@@ -3215,7 +3899,7 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3215
3899
|
fields: {
|
|
3216
3900
|
name: string;
|
|
3217
3901
|
label: string;
|
|
3218
|
-
type: "number" | "boolean" | "
|
|
3902
|
+
type: "number" | "boolean" | "text" | "rich-text" | "date" | "media" | "relation" | "select" | "steps" | "json";
|
|
3219
3903
|
required: boolean;
|
|
3220
3904
|
hidden: boolean;
|
|
3221
3905
|
options?: string[] | undefined;
|
|
@@ -3225,22 +3909,22 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3225
3909
|
display: Record<string, unknown> | null;
|
|
3226
3910
|
headings: Record<string, unknown> | null;
|
|
3227
3911
|
};
|
|
3228
|
-
meta:
|
|
3912
|
+
meta: CoreMeta;
|
|
3229
3913
|
}>;
|
|
3230
3914
|
update: _trpc_server.TRPCMutationProcedure<{
|
|
3231
3915
|
input: {
|
|
3232
3916
|
id: string;
|
|
3233
3917
|
data: {
|
|
3234
|
-
description?: string | null | undefined;
|
|
3235
3918
|
name?: string | undefined;
|
|
3236
3919
|
slug?: string | undefined;
|
|
3920
|
+
description?: string | null | undefined;
|
|
3237
3921
|
editor?: Record<string, unknown> | null | undefined;
|
|
3238
3922
|
display?: Record<string, unknown> | null | undefined;
|
|
3239
3923
|
headings?: Record<string, unknown> | null | undefined;
|
|
3240
3924
|
fields?: {
|
|
3241
3925
|
name: string;
|
|
3242
3926
|
label: string;
|
|
3243
|
-
type: "number" | "boolean" | "
|
|
3927
|
+
type: "number" | "boolean" | "text" | "rich-text" | "date" | "media" | "relation" | "select" | "steps" | "json";
|
|
3244
3928
|
required?: boolean | undefined;
|
|
3245
3929
|
hidden?: boolean | undefined;
|
|
3246
3930
|
options?: string[] | undefined;
|
|
@@ -3249,10 +3933,10 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3249
3933
|
};
|
|
3250
3934
|
};
|
|
3251
3935
|
output: {
|
|
3252
|
-
description: string | null;
|
|
3253
|
-
id: string;
|
|
3254
3936
|
name: string;
|
|
3937
|
+
id: string;
|
|
3255
3938
|
slug: string;
|
|
3939
|
+
description: string | null;
|
|
3256
3940
|
updatedBy: string | null;
|
|
3257
3941
|
legacyExtra: Record<string, unknown> | null;
|
|
3258
3942
|
createdAt: string;
|
|
@@ -3261,7 +3945,7 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3261
3945
|
fields: {
|
|
3262
3946
|
name: string;
|
|
3263
3947
|
label: string;
|
|
3264
|
-
type: "number" | "boolean" | "
|
|
3948
|
+
type: "number" | "boolean" | "text" | "rich-text" | "date" | "media" | "relation" | "select" | "steps" | "json";
|
|
3265
3949
|
required: boolean;
|
|
3266
3950
|
hidden: boolean;
|
|
3267
3951
|
options?: string[] | undefined;
|
|
@@ -3271,7 +3955,7 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3271
3955
|
display: Record<string, unknown> | null;
|
|
3272
3956
|
headings: Record<string, unknown> | null;
|
|
3273
3957
|
};
|
|
3274
|
-
meta:
|
|
3958
|
+
meta: CoreMeta;
|
|
3275
3959
|
}>;
|
|
3276
3960
|
remove: _trpc_server.TRPCMutationProcedure<{
|
|
3277
3961
|
input: {
|
|
@@ -3280,11 +3964,11 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3280
3964
|
output: {
|
|
3281
3965
|
removed: string;
|
|
3282
3966
|
};
|
|
3283
|
-
meta:
|
|
3967
|
+
meta: CoreMeta;
|
|
3284
3968
|
}>;
|
|
3285
3969
|
entries: _trpc_server.TRPCBuiltRouter<{
|
|
3286
3970
|
ctx: CoreContext;
|
|
3287
|
-
meta:
|
|
3971
|
+
meta: CoreMeta;
|
|
3288
3972
|
errorShape: {
|
|
3289
3973
|
data: {
|
|
3290
3974
|
type?: string | undefined;
|
|
@@ -3304,20 +3988,46 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3304
3988
|
};
|
|
3305
3989
|
output: {
|
|
3306
3990
|
id: string;
|
|
3307
|
-
|
|
3991
|
+
collectionId: string;
|
|
3992
|
+
title: string;
|
|
3308
3993
|
slug: string;
|
|
3994
|
+
data: Record<string, unknown>;
|
|
3995
|
+
related: string[] | null;
|
|
3996
|
+
createdBy: string | null;
|
|
3309
3997
|
updatedBy: string | null;
|
|
3310
|
-
|
|
3998
|
+
status: "draft" | "waiting" | "ready" | "scheduled" | "published";
|
|
3999
|
+
publishedAt: string | null;
|
|
4000
|
+
legacyExtra: drizzle_zod.Json;
|
|
3311
4001
|
createdAt: string;
|
|
3312
4002
|
updatedAt: string;
|
|
3313
|
-
|
|
4003
|
+
};
|
|
4004
|
+
meta: CoreMeta;
|
|
4005
|
+
}>;
|
|
4006
|
+
/** Across collections: what an agent uses to find content. */
|
|
4007
|
+
search: _trpc_server.TRPCQueryProcedure<{
|
|
4008
|
+
input: {
|
|
4009
|
+
query: string;
|
|
4010
|
+
collections?: string[] | undefined;
|
|
4011
|
+
status?: ("draft" | "waiting" | "ready" | "scheduled" | "published")[] | undefined;
|
|
4012
|
+
limit?: number | undefined;
|
|
4013
|
+
};
|
|
4014
|
+
output: {
|
|
4015
|
+
id: string;
|
|
3314
4016
|
collectionId: string;
|
|
3315
4017
|
title: string;
|
|
4018
|
+
slug: string;
|
|
4019
|
+
data: Record<string, unknown>;
|
|
3316
4020
|
related: string[] | null;
|
|
4021
|
+
createdBy: string | null;
|
|
4022
|
+
updatedBy: string | null;
|
|
3317
4023
|
status: "draft" | "waiting" | "ready" | "scheduled" | "published";
|
|
3318
4024
|
publishedAt: string | null;
|
|
3319
|
-
|
|
3320
|
-
|
|
4025
|
+
legacyExtra: drizzle_zod.Json;
|
|
4026
|
+
createdAt: string;
|
|
4027
|
+
updatedAt: string;
|
|
4028
|
+
collectionSlug: string;
|
|
4029
|
+
}[];
|
|
4030
|
+
meta: CoreMeta;
|
|
3321
4031
|
}>;
|
|
3322
4032
|
/** Narrowing is optional: a caller that ignores it keeps the old behaviour. */
|
|
3323
4033
|
list: _trpc_server.TRPCQueryProcedure<{
|
|
@@ -3331,20 +4041,20 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3331
4041
|
};
|
|
3332
4042
|
output: {
|
|
3333
4043
|
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
4044
|
collectionId: string;
|
|
3342
4045
|
title: string;
|
|
4046
|
+
slug: string;
|
|
4047
|
+
data: Record<string, unknown>;
|
|
3343
4048
|
related: string[] | null;
|
|
4049
|
+
createdBy: string | null;
|
|
4050
|
+
updatedBy: string | null;
|
|
3344
4051
|
status: "draft" | "waiting" | "ready" | "scheduled" | "published";
|
|
3345
4052
|
publishedAt: string | null;
|
|
4053
|
+
legacyExtra: drizzle_zod.Json;
|
|
4054
|
+
createdAt: string;
|
|
4055
|
+
updatedAt: string;
|
|
3346
4056
|
}[];
|
|
3347
|
-
meta:
|
|
4057
|
+
meta: CoreMeta;
|
|
3348
4058
|
}>;
|
|
3349
4059
|
/** The total a listing is a window onto, under the same narrowing. */
|
|
3350
4060
|
count: _trpc_server.TRPCQueryProcedure<{
|
|
@@ -3354,7 +4064,7 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3354
4064
|
search?: string | undefined;
|
|
3355
4065
|
};
|
|
3356
4066
|
output: number;
|
|
3357
|
-
meta:
|
|
4067
|
+
meta: CoreMeta;
|
|
3358
4068
|
}>;
|
|
3359
4069
|
create: _trpc_server.TRPCMutationProcedure<{
|
|
3360
4070
|
input: {
|
|
@@ -3382,7 +4092,7 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3382
4092
|
status: "draft" | "waiting" | "ready" | "scheduled" | "published";
|
|
3383
4093
|
publishedAt: string | null;
|
|
3384
4094
|
};
|
|
3385
|
-
meta:
|
|
4095
|
+
meta: CoreMeta;
|
|
3386
4096
|
}>;
|
|
3387
4097
|
update: _trpc_server.TRPCMutationProcedure<{
|
|
3388
4098
|
input: {
|
|
@@ -3411,7 +4121,7 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3411
4121
|
status: "draft" | "waiting" | "ready" | "scheduled" | "published";
|
|
3412
4122
|
publishedAt: string | null;
|
|
3413
4123
|
};
|
|
3414
|
-
meta:
|
|
4124
|
+
meta: CoreMeta;
|
|
3415
4125
|
}>;
|
|
3416
4126
|
remove: _trpc_server.TRPCMutationProcedure<{
|
|
3417
4127
|
input: {
|
|
@@ -3420,7 +4130,7 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3420
4130
|
output: {
|
|
3421
4131
|
removed: string;
|
|
3422
4132
|
};
|
|
3423
|
-
meta:
|
|
4133
|
+
meta: CoreMeta;
|
|
3424
4134
|
}>;
|
|
3425
4135
|
}>>;
|
|
3426
4136
|
}>>;
|
|
@@ -3495,7 +4205,7 @@ declare function createCore({ env }?: {
|
|
|
3495
4205
|
}): Core;
|
|
3496
4206
|
declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
3497
4207
|
ctx: CoreContext;
|
|
3498
|
-
meta:
|
|
4208
|
+
meta: CoreMeta;
|
|
3499
4209
|
errorShape: {
|
|
3500
4210
|
data: {
|
|
3501
4211
|
type?: string | undefined;
|
|
@@ -3511,7 +4221,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3511
4221
|
}, _trpc_server.TRPCDecorateCreateRouterOptions<{
|
|
3512
4222
|
health: _trpc_server.TRPCBuiltRouter<{
|
|
3513
4223
|
ctx: CoreContext;
|
|
3514
|
-
meta:
|
|
4224
|
+
meta: CoreMeta;
|
|
3515
4225
|
errorShape: {
|
|
3516
4226
|
data: {
|
|
3517
4227
|
type?: string | undefined;
|
|
@@ -3528,12 +4238,12 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3528
4238
|
ping: _trpc_server.TRPCQueryProcedure<{
|
|
3529
4239
|
input: void;
|
|
3530
4240
|
output: HealthStatus;
|
|
3531
|
-
meta:
|
|
4241
|
+
meta: CoreMeta;
|
|
3532
4242
|
}>;
|
|
3533
4243
|
}>>;
|
|
3534
4244
|
auth: _trpc_server.TRPCBuiltRouter<{
|
|
3535
4245
|
ctx: CoreContext;
|
|
3536
|
-
meta:
|
|
4246
|
+
meta: CoreMeta;
|
|
3537
4247
|
errorShape: {
|
|
3538
4248
|
data: {
|
|
3539
4249
|
type?: string | undefined;
|
|
@@ -3562,14 +4272,14 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3562
4272
|
role: "admin" | "redacteur";
|
|
3563
4273
|
};
|
|
3564
4274
|
};
|
|
3565
|
-
meta:
|
|
4275
|
+
meta: CoreMeta;
|
|
3566
4276
|
}>;
|
|
3567
4277
|
logout: _trpc_server.TRPCMutationProcedure<{
|
|
3568
4278
|
input: void;
|
|
3569
4279
|
output: {
|
|
3570
4280
|
loggedOut: boolean;
|
|
3571
4281
|
};
|
|
3572
|
-
meta:
|
|
4282
|
+
meta: CoreMeta;
|
|
3573
4283
|
}>;
|
|
3574
4284
|
me: _trpc_server.TRPCQueryProcedure<{
|
|
3575
4285
|
input: void;
|
|
@@ -3581,11 +4291,11 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3581
4291
|
role: "admin" | "redacteur";
|
|
3582
4292
|
};
|
|
3583
4293
|
};
|
|
3584
|
-
meta:
|
|
4294
|
+
meta: CoreMeta;
|
|
3585
4295
|
}>;
|
|
3586
4296
|
sessions: _trpc_server.TRPCBuiltRouter<{
|
|
3587
4297
|
ctx: CoreContext;
|
|
3588
|
-
meta:
|
|
4298
|
+
meta: CoreMeta;
|
|
3589
4299
|
errorShape: {
|
|
3590
4300
|
data: {
|
|
3591
4301
|
type?: string | undefined;
|
|
@@ -3609,7 +4319,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3609
4319
|
ip: string | null;
|
|
3610
4320
|
current: boolean;
|
|
3611
4321
|
}[];
|
|
3612
|
-
meta:
|
|
4322
|
+
meta: CoreMeta;
|
|
3613
4323
|
}>;
|
|
3614
4324
|
revoke: _trpc_server.TRPCMutationProcedure<{
|
|
3615
4325
|
input: {
|
|
@@ -3618,7 +4328,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3618
4328
|
output: {
|
|
3619
4329
|
revoked: string;
|
|
3620
4330
|
};
|
|
3621
|
-
meta:
|
|
4331
|
+
meta: CoreMeta;
|
|
3622
4332
|
}>;
|
|
3623
4333
|
}>>;
|
|
3624
4334
|
acceptInvitation: _trpc_server.TRPCMutationProcedure<{
|
|
@@ -3635,7 +4345,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3635
4345
|
role: "admin" | "redacteur";
|
|
3636
4346
|
};
|
|
3637
4347
|
};
|
|
3638
|
-
meta:
|
|
4348
|
+
meta: CoreMeta;
|
|
3639
4349
|
}>;
|
|
3640
4350
|
requestPasswordReset: _trpc_server.TRPCMutationProcedure<{
|
|
3641
4351
|
input: {
|
|
@@ -3644,12 +4354,12 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3644
4354
|
output: {
|
|
3645
4355
|
ok: boolean;
|
|
3646
4356
|
};
|
|
3647
|
-
meta:
|
|
4357
|
+
meta: CoreMeta;
|
|
3648
4358
|
}>;
|
|
3649
4359
|
}>>;
|
|
3650
4360
|
users: _trpc_server.TRPCBuiltRouter<{
|
|
3651
4361
|
ctx: CoreContext;
|
|
3652
|
-
meta:
|
|
4362
|
+
meta: CoreMeta;
|
|
3653
4363
|
errorShape: {
|
|
3654
4364
|
data: {
|
|
3655
4365
|
type?: string | undefined;
|
|
@@ -3671,7 +4381,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3671
4381
|
name: string;
|
|
3672
4382
|
role: "admin" | "redacteur";
|
|
3673
4383
|
}[];
|
|
3674
|
-
meta:
|
|
4384
|
+
meta: CoreMeta;
|
|
3675
4385
|
}>;
|
|
3676
4386
|
directory: _trpc_server.TRPCQueryProcedure<{
|
|
3677
4387
|
input: void;
|
|
@@ -3679,7 +4389,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3679
4389
|
id: string;
|
|
3680
4390
|
name: string;
|
|
3681
4391
|
}[];
|
|
3682
|
-
meta:
|
|
4392
|
+
meta: CoreMeta;
|
|
3683
4393
|
}>;
|
|
3684
4394
|
get: _trpc_server.TRPCQueryProcedure<{
|
|
3685
4395
|
input: {
|
|
@@ -3691,7 +4401,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3691
4401
|
name: string;
|
|
3692
4402
|
role: "admin" | "redacteur";
|
|
3693
4403
|
};
|
|
3694
|
-
meta:
|
|
4404
|
+
meta: CoreMeta;
|
|
3695
4405
|
}>;
|
|
3696
4406
|
invite: _trpc_server.TRPCMutationProcedure<{
|
|
3697
4407
|
input: {
|
|
@@ -3702,7 +4412,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3702
4412
|
token: string;
|
|
3703
4413
|
expiresAt: string;
|
|
3704
4414
|
};
|
|
3705
|
-
meta:
|
|
4415
|
+
meta: CoreMeta;
|
|
3706
4416
|
}>;
|
|
3707
4417
|
update: _trpc_server.TRPCMutationProcedure<{
|
|
3708
4418
|
input: {
|
|
@@ -3719,7 +4429,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3719
4429
|
name: string;
|
|
3720
4430
|
role: "admin" | "redacteur";
|
|
3721
4431
|
};
|
|
3722
|
-
meta:
|
|
4432
|
+
meta: CoreMeta;
|
|
3723
4433
|
}>;
|
|
3724
4434
|
remove: _trpc_server.TRPCMutationProcedure<{
|
|
3725
4435
|
input: {
|
|
@@ -3728,12 +4438,12 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3728
4438
|
output: {
|
|
3729
4439
|
removed: string;
|
|
3730
4440
|
};
|
|
3731
|
-
meta:
|
|
4441
|
+
meta: CoreMeta;
|
|
3732
4442
|
}>;
|
|
3733
4443
|
}>>;
|
|
3734
4444
|
apiTokens: _trpc_server.TRPCBuiltRouter<{
|
|
3735
4445
|
ctx: CoreContext;
|
|
3736
|
-
meta:
|
|
4446
|
+
meta: CoreMeta;
|
|
3737
4447
|
errorShape: {
|
|
3738
4448
|
data: {
|
|
3739
4449
|
type?: string | undefined;
|
|
@@ -3757,7 +4467,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3757
4467
|
tokenHash: string;
|
|
3758
4468
|
lastUsedAt: string | null;
|
|
3759
4469
|
}, "id" | "name" | "createdAt" | "revokedAt" | "lastUsedAt">[];
|
|
3760
|
-
meta:
|
|
4470
|
+
meta: CoreMeta;
|
|
3761
4471
|
}>;
|
|
3762
4472
|
create: _trpc_server.TRPCMutationProcedure<{
|
|
3763
4473
|
input: {
|
|
@@ -3768,7 +4478,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3768
4478
|
id: string;
|
|
3769
4479
|
name: string;
|
|
3770
4480
|
};
|
|
3771
|
-
meta:
|
|
4481
|
+
meta: CoreMeta;
|
|
3772
4482
|
}>;
|
|
3773
4483
|
revoke: _trpc_server.TRPCMutationProcedure<{
|
|
3774
4484
|
input: {
|
|
@@ -3777,12 +4487,12 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3777
4487
|
output: {
|
|
3778
4488
|
revoked: string;
|
|
3779
4489
|
};
|
|
3780
|
-
meta:
|
|
4490
|
+
meta: CoreMeta;
|
|
3781
4491
|
}>;
|
|
3782
4492
|
}>>;
|
|
3783
4493
|
organization: _trpc_server.TRPCBuiltRouter<{
|
|
3784
4494
|
ctx: CoreContext;
|
|
3785
|
-
meta:
|
|
4495
|
+
meta: CoreMeta;
|
|
3786
4496
|
errorShape: {
|
|
3787
4497
|
data: {
|
|
3788
4498
|
type?: string | undefined;
|
|
@@ -3816,7 +4526,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3816
4526
|
updatedBy: string | null;
|
|
3817
4527
|
legacyExtra: Record<string, unknown> | null;
|
|
3818
4528
|
} | null;
|
|
3819
|
-
meta:
|
|
4529
|
+
meta: CoreMeta;
|
|
3820
4530
|
}>;
|
|
3821
4531
|
init: _trpc_server.TRPCMutationProcedure<{
|
|
3822
4532
|
input: {
|
|
@@ -3850,7 +4560,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3850
4560
|
updatedBy: string | null;
|
|
3851
4561
|
legacyExtra: Record<string, unknown> | null;
|
|
3852
4562
|
};
|
|
3853
|
-
meta:
|
|
4563
|
+
meta: CoreMeta;
|
|
3854
4564
|
}>;
|
|
3855
4565
|
update: _trpc_server.TRPCMutationProcedure<{
|
|
3856
4566
|
input: {
|
|
@@ -3884,19 +4594,19 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3884
4594
|
updatedBy: string | null;
|
|
3885
4595
|
legacyExtra: Record<string, unknown> | null;
|
|
3886
4596
|
};
|
|
3887
|
-
meta:
|
|
4597
|
+
meta: CoreMeta;
|
|
3888
4598
|
}>;
|
|
3889
4599
|
deploy: _trpc_server.TRPCMutationProcedure<{
|
|
3890
4600
|
input: void;
|
|
3891
4601
|
output: {
|
|
3892
4602
|
status: number;
|
|
3893
4603
|
};
|
|
3894
|
-
meta:
|
|
4604
|
+
meta: CoreMeta;
|
|
3895
4605
|
}>;
|
|
3896
4606
|
}>>;
|
|
3897
4607
|
media: _trpc_server.TRPCBuiltRouter<{
|
|
3898
4608
|
ctx: CoreContext;
|
|
3899
|
-
meta:
|
|
4609
|
+
meta: CoreMeta;
|
|
3900
4610
|
errorShape: {
|
|
3901
4611
|
data: {
|
|
3902
4612
|
type?: string | undefined;
|
|
@@ -3920,7 +4630,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3920
4630
|
key: string;
|
|
3921
4631
|
url: string;
|
|
3922
4632
|
};
|
|
3923
|
-
meta:
|
|
4633
|
+
meta: CoreMeta;
|
|
3924
4634
|
}>;
|
|
3925
4635
|
finalize: _trpc_server.TRPCMutationProcedure<{
|
|
3926
4636
|
input: {
|
|
@@ -3945,7 +4655,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3945
4655
|
objects: Record<string, unknown>;
|
|
3946
4656
|
createdBy: string | null;
|
|
3947
4657
|
};
|
|
3948
|
-
meta:
|
|
4658
|
+
meta: CoreMeta;
|
|
3949
4659
|
}>;
|
|
3950
4660
|
list: _trpc_server.TRPCQueryProcedure<{
|
|
3951
4661
|
input: void;
|
|
@@ -3966,7 +4676,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3966
4676
|
} & {
|
|
3967
4677
|
objects: Record<string, string>;
|
|
3968
4678
|
})[];
|
|
3969
|
-
meta:
|
|
4679
|
+
meta: CoreMeta;
|
|
3970
4680
|
}>;
|
|
3971
4681
|
get: _trpc_server.TRPCQueryProcedure<{
|
|
3972
4682
|
input: {
|
|
@@ -3989,7 +4699,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3989
4699
|
} & {
|
|
3990
4700
|
objects: Record<string, string>;
|
|
3991
4701
|
};
|
|
3992
|
-
meta:
|
|
4702
|
+
meta: CoreMeta;
|
|
3993
4703
|
}>;
|
|
3994
4704
|
update: _trpc_server.TRPCMutationProcedure<{
|
|
3995
4705
|
input: {
|
|
@@ -4015,7 +4725,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4015
4725
|
objects: Record<string, unknown>;
|
|
4016
4726
|
createdBy: string | null;
|
|
4017
4727
|
};
|
|
4018
|
-
meta:
|
|
4728
|
+
meta: CoreMeta;
|
|
4019
4729
|
}>;
|
|
4020
4730
|
remove: _trpc_server.TRPCMutationProcedure<{
|
|
4021
4731
|
input: {
|
|
@@ -4024,12 +4734,12 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4024
4734
|
output: {
|
|
4025
4735
|
removed: string;
|
|
4026
4736
|
};
|
|
4027
|
-
meta:
|
|
4737
|
+
meta: CoreMeta;
|
|
4028
4738
|
}>;
|
|
4029
4739
|
}>>;
|
|
4030
4740
|
collections: _trpc_server.TRPCBuiltRouter<{
|
|
4031
4741
|
ctx: CoreContext;
|
|
4032
|
-
meta:
|
|
4742
|
+
meta: CoreMeta;
|
|
4033
4743
|
errorShape: {
|
|
4034
4744
|
data: {
|
|
4035
4745
|
type?: string | undefined;
|
|
@@ -4068,26 +4778,22 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4068
4778
|
display: Record<string, unknown> | null;
|
|
4069
4779
|
headings: Record<string, unknown> | null;
|
|
4070
4780
|
}[];
|
|
4071
|
-
meta:
|
|
4781
|
+
meta: CoreMeta;
|
|
4072
4782
|
}>;
|
|
4073
4783
|
get: _trpc_server.TRPCQueryProcedure<{
|
|
4074
4784
|
input: {
|
|
4075
4785
|
idOrSlug: string;
|
|
4076
4786
|
};
|
|
4077
4787
|
output: {
|
|
4078
|
-
description: string | null;
|
|
4079
4788
|
id: string;
|
|
4080
4789
|
name: string;
|
|
4081
|
-
createdAt: string;
|
|
4082
|
-
updatedAt: string;
|
|
4083
4790
|
slug: string;
|
|
4084
|
-
|
|
4085
|
-
legacyExtra: Record<string, unknown> | null;
|
|
4086
|
-
createdBy: string | null;
|
|
4791
|
+
description: string | null;
|
|
4087
4792
|
fields: {
|
|
4793
|
+
[x: string]: unknown;
|
|
4088
4794
|
name: string;
|
|
4089
4795
|
label: string;
|
|
4090
|
-
type:
|
|
4796
|
+
type: string;
|
|
4091
4797
|
required: boolean;
|
|
4092
4798
|
hidden: boolean;
|
|
4093
4799
|
options?: string[] | undefined;
|
|
@@ -4096,8 +4802,13 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4096
4802
|
editor: Record<string, unknown> | null;
|
|
4097
4803
|
display: Record<string, unknown> | null;
|
|
4098
4804
|
headings: Record<string, unknown> | null;
|
|
4805
|
+
createdBy: string | null;
|
|
4806
|
+
updatedBy: string | null;
|
|
4807
|
+
legacyExtra: drizzle_zod.Json;
|
|
4808
|
+
createdAt: string;
|
|
4809
|
+
updatedAt: string;
|
|
4099
4810
|
};
|
|
4100
|
-
meta:
|
|
4811
|
+
meta: CoreMeta;
|
|
4101
4812
|
}>;
|
|
4102
4813
|
create: _trpc_server.TRPCMutationProcedure<{
|
|
4103
4814
|
input: {
|
|
@@ -4140,7 +4851,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4140
4851
|
display: Record<string, unknown> | null;
|
|
4141
4852
|
headings: Record<string, unknown> | null;
|
|
4142
4853
|
};
|
|
4143
|
-
meta:
|
|
4854
|
+
meta: CoreMeta;
|
|
4144
4855
|
}>;
|
|
4145
4856
|
update: _trpc_server.TRPCMutationProcedure<{
|
|
4146
4857
|
input: {
|
|
@@ -4186,7 +4897,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4186
4897
|
display: Record<string, unknown> | null;
|
|
4187
4898
|
headings: Record<string, unknown> | null;
|
|
4188
4899
|
};
|
|
4189
|
-
meta:
|
|
4900
|
+
meta: CoreMeta;
|
|
4190
4901
|
}>;
|
|
4191
4902
|
remove: _trpc_server.TRPCMutationProcedure<{
|
|
4192
4903
|
input: {
|
|
@@ -4195,11 +4906,11 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4195
4906
|
output: {
|
|
4196
4907
|
removed: string;
|
|
4197
4908
|
};
|
|
4198
|
-
meta:
|
|
4909
|
+
meta: CoreMeta;
|
|
4199
4910
|
}>;
|
|
4200
4911
|
entries: _trpc_server.TRPCBuiltRouter<{
|
|
4201
4912
|
ctx: CoreContext;
|
|
4202
|
-
meta:
|
|
4913
|
+
meta: CoreMeta;
|
|
4203
4914
|
errorShape: {
|
|
4204
4915
|
data: {
|
|
4205
4916
|
type?: string | undefined;
|
|
@@ -4219,46 +4930,71 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4219
4930
|
};
|
|
4220
4931
|
output: {
|
|
4221
4932
|
id: string;
|
|
4933
|
+
collectionId: string;
|
|
4934
|
+
title: string;
|
|
4935
|
+
slug: string;
|
|
4222
4936
|
data: Record<string, unknown>;
|
|
4937
|
+
related: string[] | null;
|
|
4938
|
+
createdBy: string | null;
|
|
4939
|
+
updatedBy: string | null;
|
|
4940
|
+
status: "draft" | "waiting" | "ready" | "scheduled" | "published";
|
|
4941
|
+
publishedAt: string | null;
|
|
4942
|
+
legacyExtra: drizzle_zod.Json;
|
|
4223
4943
|
createdAt: string;
|
|
4224
4944
|
updatedAt: string;
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4945
|
+
};
|
|
4946
|
+
meta: CoreMeta;
|
|
4947
|
+
}>;
|
|
4948
|
+
search: _trpc_server.TRPCQueryProcedure<{
|
|
4949
|
+
input: {
|
|
4950
|
+
query: string;
|
|
4951
|
+
collections?: string[] | undefined;
|
|
4952
|
+
status?: ("draft" | "waiting" | "ready" | "scheduled" | "published")[] | undefined;
|
|
4953
|
+
limit?: number | undefined;
|
|
4954
|
+
};
|
|
4955
|
+
output: {
|
|
4956
|
+
id: string;
|
|
4229
4957
|
collectionId: string;
|
|
4230
|
-
status: "draft" | "waiting" | "ready" | "scheduled" | "published";
|
|
4231
4958
|
title: string;
|
|
4959
|
+
slug: string;
|
|
4960
|
+
data: Record<string, unknown>;
|
|
4232
4961
|
related: string[] | null;
|
|
4962
|
+
createdBy: string | null;
|
|
4963
|
+
updatedBy: string | null;
|
|
4964
|
+
status: "draft" | "waiting" | "ready" | "scheduled" | "published";
|
|
4233
4965
|
publishedAt: string | null;
|
|
4234
|
-
|
|
4235
|
-
|
|
4966
|
+
legacyExtra: drizzle_zod.Json;
|
|
4967
|
+
createdAt: string;
|
|
4968
|
+
updatedAt: string;
|
|
4969
|
+
collectionSlug: string;
|
|
4970
|
+
}[];
|
|
4971
|
+
meta: CoreMeta;
|
|
4236
4972
|
}>;
|
|
4237
4973
|
list: _trpc_server.TRPCQueryProcedure<{
|
|
4238
4974
|
input: {
|
|
4239
4975
|
collectionId: string;
|
|
4240
4976
|
status?: ("draft" | "waiting" | "ready" | "scheduled" | "published")[] | undefined;
|
|
4241
4977
|
search?: string | undefined;
|
|
4242
|
-
order?: "
|
|
4978
|
+
order?: "title" | "recent" | "oldest" | undefined;
|
|
4243
4979
|
skip?: number | undefined;
|
|
4244
4980
|
limit?: number | undefined;
|
|
4245
4981
|
};
|
|
4246
4982
|
output: {
|
|
4247
4983
|
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
4984
|
collectionId: string;
|
|
4256
|
-
status: "draft" | "waiting" | "ready" | "scheduled" | "published";
|
|
4257
4985
|
title: string;
|
|
4986
|
+
slug: string;
|
|
4987
|
+
data: Record<string, unknown>;
|
|
4258
4988
|
related: string[] | null;
|
|
4989
|
+
createdBy: string | null;
|
|
4990
|
+
updatedBy: string | null;
|
|
4991
|
+
status: "draft" | "waiting" | "ready" | "scheduled" | "published";
|
|
4259
4992
|
publishedAt: string | null;
|
|
4993
|
+
legacyExtra: drizzle_zod.Json;
|
|
4994
|
+
createdAt: string;
|
|
4995
|
+
updatedAt: string;
|
|
4260
4996
|
}[];
|
|
4261
|
-
meta:
|
|
4997
|
+
meta: CoreMeta;
|
|
4262
4998
|
}>;
|
|
4263
4999
|
count: _trpc_server.TRPCQueryProcedure<{
|
|
4264
5000
|
input: {
|
|
@@ -4267,7 +5003,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4267
5003
|
search?: string | undefined;
|
|
4268
5004
|
};
|
|
4269
5005
|
output: number;
|
|
4270
|
-
meta:
|
|
5006
|
+
meta: CoreMeta;
|
|
4271
5007
|
}>;
|
|
4272
5008
|
create: _trpc_server.TRPCMutationProcedure<{
|
|
4273
5009
|
input: {
|
|
@@ -4289,13 +5025,13 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4289
5025
|
updatedBy: string | null;
|
|
4290
5026
|
legacyExtra: Record<string, unknown> | null;
|
|
4291
5027
|
createdBy: string | null;
|
|
4292
|
-
collectionId: string;
|
|
4293
|
-
status: "draft" | "waiting" | "ready" | "scheduled" | "published";
|
|
4294
5028
|
title: string;
|
|
5029
|
+
collectionId: string;
|
|
4295
5030
|
related: string[] | null;
|
|
5031
|
+
status: "draft" | "waiting" | "ready" | "scheduled" | "published";
|
|
4296
5032
|
publishedAt: string | null;
|
|
4297
5033
|
};
|
|
4298
|
-
meta:
|
|
5034
|
+
meta: CoreMeta;
|
|
4299
5035
|
}>;
|
|
4300
5036
|
update: _trpc_server.TRPCMutationProcedure<{
|
|
4301
5037
|
input: {
|
|
@@ -4303,8 +5039,8 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4303
5039
|
data: {
|
|
4304
5040
|
data?: Record<string, unknown> | undefined;
|
|
4305
5041
|
slug?: string | undefined;
|
|
4306
|
-
status?: "draft" | "waiting" | "ready" | "scheduled" | "published" | undefined;
|
|
4307
5042
|
title?: string | undefined;
|
|
5043
|
+
status?: "draft" | "waiting" | "ready" | "scheduled" | "published" | undefined;
|
|
4308
5044
|
publishedAt?: string | null | undefined;
|
|
4309
5045
|
related?: string[] | undefined;
|
|
4310
5046
|
};
|
|
@@ -4318,13 +5054,13 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4318
5054
|
updatedBy: string | null;
|
|
4319
5055
|
legacyExtra: Record<string, unknown> | null;
|
|
4320
5056
|
createdBy: string | null;
|
|
4321
|
-
collectionId: string;
|
|
4322
|
-
status: "draft" | "waiting" | "ready" | "scheduled" | "published";
|
|
4323
5057
|
title: string;
|
|
5058
|
+
collectionId: string;
|
|
4324
5059
|
related: string[] | null;
|
|
5060
|
+
status: "draft" | "waiting" | "ready" | "scheduled" | "published";
|
|
4325
5061
|
publishedAt: string | null;
|
|
4326
5062
|
};
|
|
4327
|
-
meta:
|
|
5063
|
+
meta: CoreMeta;
|
|
4328
5064
|
}>;
|
|
4329
5065
|
remove: _trpc_server.TRPCMutationProcedure<{
|
|
4330
5066
|
input: {
|
|
@@ -4333,12 +5069,12 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
4333
5069
|
output: {
|
|
4334
5070
|
removed: string;
|
|
4335
5071
|
};
|
|
4336
|
-
meta:
|
|
5072
|
+
meta: CoreMeta;
|
|
4337
5073
|
}>;
|
|
4338
5074
|
}>>;
|
|
4339
5075
|
}>>;
|
|
4340
5076
|
}>>;
|
|
4341
5077
|
type AppRouter = typeof appRouter;
|
|
4342
5078
|
|
|
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 };
|
|
5079
|
+
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 };
|
|
5080
|
+
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 };
|