@open-commune/core 0.2.16 → 0.2.18

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/dtos.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- export { o as AUDIENCE_PERIODS, p as AcceptInvitationDto, r as ApiTokenCreateDto, l as AudienceAsk, m as AudiencePanelData, t as AudienceQuery, u as AudienceSummary, D as DefinitionCreateDto, h as DefinitionUpdateDto, v as ERROR_TYPES, j as EntryCreateDto, i as EntrySearchHit, k as EntryUpdateDto, n as ErrorType, w as InviteDto, L as LoginDto, d as MediaFinalizeDto, x as MediaRequestUploadDto, e as MediaUpdateDto, a as OrganizationInitDto, b as OrganizationUpdateDto, P as PublicUser, R as RequestPasswordResetDto, z as UpdateOwnProfileDto, B as UserUpdateDto, F as acceptInvitationDto, H as apiTokenCreateDto, K as audienceAskDto, Q as audienceQuerySchema, T as audienceSummarySchema, W as definitionCreateDto, X as definitionDto, Y as definitionUpdateDto, _ as entryCreateDto, $ as entryDto, a0 as entrySearchHitDto, a1 as entryUpdateDto, a3 as inviteDto, a4 as isErrorType, a5 as loginDto, a7 as mediaFinalizeDto, a8 as mediaRequestUploadDto, a9 as mediaUpdateDto, ab as organizationInitDto, ac as organizationUpdateDto, ad as requestPasswordResetDto, af as toPublicUser, ag as updateOwnProfileDto, ah as userUpdateDto } from './shared/core.7Us3D2yq.mjs';
1
+ export { o as AUDIENCE_PERIODS, p as AcceptInvitationDto, r as ApiTokenCreateDto, l as AudienceAsk, m as AudiencePanelData, t as AudienceQuery, u as AudienceSummary, D as DefinitionCreateDto, h as DefinitionUpdateDto, v as ERROR_TYPES, j as EntryCreateDto, i as EntrySearchHit, k as EntryUpdateDto, n as ErrorType, w as InviteDto, L as LoginDto, d as MediaFinalizeDto, x as MediaRequestUploadDto, e as MediaUpdateDto, a as OrganizationInitDto, b as OrganizationUpdateDto, P as PublicUser, R as RequestPasswordResetDto, z as SessionUser, B as UpdateOwnProfileDto, F as UserUpdateDto, G as acceptInvitationDto, J as apiTokenCreateDto, Q as audienceAskDto, T as audienceQuerySchema, V as audienceSummarySchema, X as definitionCreateDto, Y as definitionDto, Z as definitionUpdateDto, $ as entryCreateDto, a0 as entryDto, a1 as entrySearchHitDto, a2 as entryUpdateDto, a4 as inviteDto, a5 as isErrorType, a6 as loginDto, a8 as mediaFinalizeDto, a9 as mediaRequestUploadDto, aa as mediaUpdateDto, ac as organizationInitDto, ad as organizationUpdateDto, ae as requestPasswordResetDto, ag as toPublicUser, ah as toSessionUser, ai as updateOwnProfileDto, aj as userUpdateDto } from './shared/core.C8czg6gz.mjs';
2
2
  import 'drizzle-zod';
3
3
  import 'drizzle-orm/sqlite-core';
4
4
  import 'zod';
package/dist/dtos.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { o as AUDIENCE_PERIODS, p as AcceptInvitationDto, r as ApiTokenCreateDto, l as AudienceAsk, m as AudiencePanelData, t as AudienceQuery, u as AudienceSummary, D as DefinitionCreateDto, h as DefinitionUpdateDto, v as ERROR_TYPES, j as EntryCreateDto, i as EntrySearchHit, k as EntryUpdateDto, n as ErrorType, w as InviteDto, L as LoginDto, d as MediaFinalizeDto, x as MediaRequestUploadDto, e as MediaUpdateDto, a as OrganizationInitDto, b as OrganizationUpdateDto, P as PublicUser, R as RequestPasswordResetDto, z as UpdateOwnProfileDto, B as UserUpdateDto, F as acceptInvitationDto, H as apiTokenCreateDto, K as audienceAskDto, Q as audienceQuerySchema, T as audienceSummarySchema, W as definitionCreateDto, X as definitionDto, Y as definitionUpdateDto, _ as entryCreateDto, $ as entryDto, a0 as entrySearchHitDto, a1 as entryUpdateDto, a3 as inviteDto, a4 as isErrorType, a5 as loginDto, a7 as mediaFinalizeDto, a8 as mediaRequestUploadDto, a9 as mediaUpdateDto, ab as organizationInitDto, ac as organizationUpdateDto, ad as requestPasswordResetDto, af as toPublicUser, ag as updateOwnProfileDto, ah as userUpdateDto } from './shared/core.C6dz9OyV.js';
1
+ export { o as AUDIENCE_PERIODS, p as AcceptInvitationDto, r as ApiTokenCreateDto, l as AudienceAsk, m as AudiencePanelData, t as AudienceQuery, u as AudienceSummary, D as DefinitionCreateDto, h as DefinitionUpdateDto, v as ERROR_TYPES, j as EntryCreateDto, i as EntrySearchHit, k as EntryUpdateDto, n as ErrorType, w as InviteDto, L as LoginDto, d as MediaFinalizeDto, x as MediaRequestUploadDto, e as MediaUpdateDto, a as OrganizationInitDto, b as OrganizationUpdateDto, P as PublicUser, R as RequestPasswordResetDto, z as SessionUser, B as UpdateOwnProfileDto, F as UserUpdateDto, G as acceptInvitationDto, J as apiTokenCreateDto, Q as audienceAskDto, T as audienceQuerySchema, V as audienceSummarySchema, X as definitionCreateDto, Y as definitionDto, Z as definitionUpdateDto, $ as entryCreateDto, a0 as entryDto, a1 as entrySearchHitDto, a2 as entryUpdateDto, a4 as inviteDto, a5 as isErrorType, a6 as loginDto, a8 as mediaFinalizeDto, a9 as mediaRequestUploadDto, aa as mediaUpdateDto, ac as organizationInitDto, ad as organizationUpdateDto, ae as requestPasswordResetDto, ag as toPublicUser, ah as toSessionUser, ai as updateOwnProfileDto, aj as userUpdateDto } from './shared/core.bkXizwPE.js';
2
2
  import 'drizzle-zod';
3
3
  import 'drizzle-orm/sqlite-core';
4
4
  import 'zod';
package/dist/dtos.mjs CHANGED
@@ -1 +1 @@
1
- export{A as AUDIENCE_PERIODS,E as ERROR_TYPES,a as acceptInvitationDto,b as apiTokenCreateDto,c as audienceAskDto,d as audienceQuerySchema,e as audienceSummarySchema,f as definitionCreateDto,g as definitionDto,h as definitionUpdateDto,i as entryCreateDto,j as entryDto,k as entrySearchHitDto,l as entryUpdateDto,m as inviteDto,n as isErrorType,o as loginDto,p as mediaFinalizeDto,q as mediaRequestUploadDto,r as mediaUpdateDto,s as organizationInitDto,t as organizationUpdateDto,u as requestPasswordResetDto,v as toPublicUser,w as updateOwnProfileDto,x as userUpdateDto}from"./shared/core.QEqE4rFK.mjs";import"drizzle-zod";import"zod";import"./domains/collections/utils.mjs";import"./domains/collections/constants.mjs";import"drizzle-orm/sqlite-core";
1
+ export{A as AUDIENCE_PERIODS,E as ERROR_TYPES,a as acceptInvitationDto,b as apiTokenCreateDto,c as audienceAskDto,d as audienceQuerySchema,e as audienceSummarySchema,f as definitionCreateDto,g as definitionDto,h as definitionUpdateDto,i as entryCreateDto,j as entryDto,k as entrySearchHitDto,l as entryUpdateDto,m as inviteDto,n as isErrorType,o as loginDto,p as mediaFinalizeDto,q as mediaRequestUploadDto,r as mediaUpdateDto,s as organizationInitDto,t as organizationUpdateDto,u as requestPasswordResetDto,v as toPublicUser,w as toSessionUser,x as updateOwnProfileDto,y as userUpdateDto}from"./shared/core.BR6-3c3l.mjs";import"drizzle-zod";import"zod";import"./domains/collections/utils.mjs";import"./domains/collections/constants.mjs";import"drizzle-orm/sqlite-core";
package/dist/index.d.mts CHANGED
@@ -3,8 +3,8 @@ import * as _trpc_server from '@trpc/server';
3
3
  import { z } from 'zod';
4
4
  import * as drizzle_orm_bun_sqlite from 'drizzle-orm/bun-sqlite';
5
5
  import { Database } from 'bun:sqlite';
6
- import { s as schema, U as User, S as Session, I as Invitation, A as ApiToken, O as Organization, N as NewOrganization, a as OrganizationInitDto, b as OrganizationUpdateDto, c as NewMedia, M as Media, d as MediaFinalizeDto, e as MediaUpdateDto, C as CollectionDefinition, f as NewCollectionDefinition, E as Entry, g as NewEntry, D as DefinitionCreateDto, h as DefinitionUpdateDto, i as EntrySearchHit, j as EntryCreateDto, k as EntryUpdateDto, l as AudienceAsk, m as AudiencePanelData, n as ErrorType } from './shared/core.7Us3D2yq.mjs';
7
- export { o as AUDIENCE_PERIODS, p as AcceptInvitationDto, q as Address, r as ApiTokenCreateDto, t as AudienceQuery, u as AudienceSummary, v as ERROR_TYPES, w as InviteDto, L as LoginDto, x as MediaRequestUploadDto, y as NewUser, P as PublicUser, R as RequestPasswordResetDto, z as UpdateOwnProfileDto, B as UserUpdateDto, F as acceptInvitationDto, G as addressSchema, H as apiTokenCreateDto, J as apiTokens, K as audienceAskDto, Q as audienceQuerySchema, T as audienceSummarySchema, V as collectionDefinitions, W as definitionCreateDto, X as definitionDto, Y as definitionUpdateDto, Z as entries, _ as entryCreateDto, $ as entryDto, a0 as entrySearchHitDto, a1 as entryUpdateDto, a2 as invitations, a3 as inviteDto, a4 as isErrorType, a5 as loginDto, a6 as media, a7 as mediaFinalizeDto, a8 as mediaRequestUploadDto, a9 as mediaUpdateDto, aa as organization, ab as organizationInitDto, ac as organizationUpdateDto, ad as requestPasswordResetDto, ae as sessions, af as toPublicUser, ag as updateOwnProfileDto, ah as userUpdateDto, ai as users } from './shared/core.7Us3D2yq.mjs';
6
+ import { s as schema, U as User, S as Session, I as Invitation, A as ApiToken, O as Organization, N as NewOrganization, a as OrganizationInitDto, b as OrganizationUpdateDto, c as NewMedia, M as Media, d as MediaFinalizeDto, e as MediaUpdateDto, C as CollectionDefinition, f as NewCollectionDefinition, E as Entry, g as NewEntry, D as DefinitionCreateDto, h as DefinitionUpdateDto, i as EntrySearchHit, j as EntryCreateDto, k as EntryUpdateDto, l as AudienceAsk, m as AudiencePanelData, n as ErrorType } from './shared/core.C8czg6gz.mjs';
7
+ export { o as AUDIENCE_PERIODS, p as AcceptInvitationDto, q as Address, r as ApiTokenCreateDto, t as AudienceQuery, u as AudienceSummary, v as ERROR_TYPES, w as InviteDto, L as LoginDto, x as MediaRequestUploadDto, y as NewUser, P as PublicUser, R as RequestPasswordResetDto, z as SessionUser, B as UpdateOwnProfileDto, F as UserUpdateDto, G as acceptInvitationDto, H as addressSchema, J as apiTokenCreateDto, K as apiTokens, Q as audienceAskDto, T as audienceQuerySchema, V as audienceSummarySchema, W as collectionDefinitions, X as definitionCreateDto, Y as definitionDto, Z as definitionUpdateDto, _ as entries, $ as entryCreateDto, a0 as entryDto, a1 as entrySearchHitDto, a2 as entryUpdateDto, a3 as invitations, a4 as inviteDto, a5 as isErrorType, a6 as loginDto, a7 as media, a8 as mediaFinalizeDto, a9 as mediaRequestUploadDto, aa as mediaUpdateDto, ab as organization, ac as organizationInitDto, ad as organizationUpdateDto, ae as requestPasswordResetDto, af as sessions, ag as toPublicUser, ah as toSessionUser, ai as updateOwnProfileDto, aj as userUpdateDto, ak as users } from './shared/core.C8czg6gz.mjs';
8
8
  export { FIELD_TYPES, FieldType, PUBLICATION_STATUSES, PublicationStatus } from './domains/collections/constants.mjs';
9
9
  export { FIELD_VALUE_SCHEMAS, FieldDefinition, buildDataSchema, fieldDefinitionSchema } from './domains/collections/utils.mjs';
10
10
  import 'drizzle-orm/sqlite-core';
@@ -296,13 +296,13 @@ declare class UsersService {
296
296
  verifyApiToken(token: string): Promise<boolean>;
297
297
  revokeApiToken(id: string): Promise<void>;
298
298
  listApiTokens(): Promise<Pick<{
299
- name: string;
300
299
  id: string;
300
+ name: string;
301
301
  createdAt: string;
302
302
  revokedAt: string | null;
303
303
  tokenHash: string;
304
304
  lastUsedAt: string | null;
305
- }, "name" | "id" | "createdAt" | "revokedAt" | "lastUsedAt">[]>;
305
+ }, "id" | "name" | "createdAt" | "revokedAt" | "lastUsedAt">[]>;
306
306
  }
307
307
 
308
308
  /**
@@ -575,6 +575,13 @@ declare class AudienceService {
575
575
  viewers?: string;
576
576
  fetchImpl?: typeof fetch;
577
577
  });
578
+ /**
579
+ * Whether this user may see the audience panels: a source is configured,
580
+ * and the viewers are unset or name them. The admin reads it from the
581
+ * session and mounts no panel otherwise, so a refused user never sees one
582
+ * flash while `summary` answers; `summary` still refuses on its own.
583
+ */
584
+ visibleTo(viewer: string): boolean;
578
585
  summary(ask: AudienceAsk, viewer: string): Promise<AudiencePanelData>;
579
586
  /** The source's answer, or `null`: any failure only hides the panel. */
580
587
  private ask;
@@ -718,10 +725,14 @@ declare const organizationRouter: _trpc_server.TRPCBuiltRouter<{
718
725
  input: void;
719
726
  output: {
720
727
  type: "commune" | "intercommunality" | "syndicate" | "other";
721
- name: string;
722
728
  id: number;
729
+ name: string;
723
730
  slug: string;
724
731
  description: string | null;
732
+ updatedBy: string | null;
733
+ legacyExtra: Record<string, unknown> | null;
734
+ createdAt: string;
735
+ updatedAt: string;
725
736
  address: {
726
737
  street?: string | undefined;
727
738
  postalCode?: string | undefined;
@@ -729,10 +740,6 @@ declare const organizationRouter: _trpc_server.TRPCBuiltRouter<{
729
740
  } | null;
730
741
  deployment: Record<string, unknown> | null;
731
742
  settings: Record<string, unknown> | null;
732
- updatedBy: string | null;
733
- legacyExtra: Record<string, unknown> | null;
734
- createdAt: string;
735
- updatedAt: string;
736
743
  } | null;
737
744
  meta: object;
738
745
  }>;
@@ -752,10 +759,14 @@ declare const organizationRouter: _trpc_server.TRPCBuiltRouter<{
752
759
  };
753
760
  output: {
754
761
  type: "commune" | "intercommunality" | "syndicate" | "other";
755
- name: string;
756
762
  id: number;
763
+ name: string;
757
764
  slug: string;
758
765
  description: string | null;
766
+ updatedBy: string | null;
767
+ legacyExtra: Record<string, unknown> | null;
768
+ createdAt: string;
769
+ updatedAt: string;
759
770
  address: {
760
771
  street?: string | undefined;
761
772
  postalCode?: string | undefined;
@@ -763,10 +774,6 @@ declare const organizationRouter: _trpc_server.TRPCBuiltRouter<{
763
774
  } | null;
764
775
  deployment: Record<string, unknown> | null;
765
776
  settings: Record<string, unknown> | null;
766
- updatedBy: string | null;
767
- legacyExtra: Record<string, unknown> | null;
768
- createdAt: string;
769
- updatedAt: string;
770
777
  };
771
778
  meta: object;
772
779
  }>;
@@ -786,10 +793,14 @@ declare const organizationRouter: _trpc_server.TRPCBuiltRouter<{
786
793
  };
787
794
  output: {
788
795
  type: "commune" | "intercommunality" | "syndicate" | "other";
789
- name: string;
790
796
  id: number;
797
+ name: string;
791
798
  slug: string;
792
799
  description: string | null;
800
+ updatedBy: string | null;
801
+ legacyExtra: Record<string, unknown> | null;
802
+ createdAt: string;
803
+ updatedAt: string;
793
804
  address: {
794
805
  street?: string | undefined;
795
806
  postalCode?: string | undefined;
@@ -797,10 +808,6 @@ declare const organizationRouter: _trpc_server.TRPCBuiltRouter<{
797
808
  } | null;
798
809
  deployment: Record<string, unknown> | null;
799
810
  settings: Record<string, unknown> | null;
800
- updatedBy: string | null;
801
- legacyExtra: Record<string, unknown> | null;
802
- createdAt: string;
803
- updatedAt: string;
804
811
  };
805
812
  meta: object;
806
813
  }>;
@@ -905,6 +912,7 @@ declare const authRouter: _trpc_server.TRPCBuiltRouter<{
905
912
  token: string;
906
913
  expiresAt: string;
907
914
  user: {
915
+ audience: boolean;
908
916
  id: string;
909
917
  email: string;
910
918
  name: string;
@@ -924,6 +932,7 @@ declare const authRouter: _trpc_server.TRPCBuiltRouter<{
924
932
  input: void;
925
933
  output: {
926
934
  user: {
935
+ audience: boolean;
927
936
  id: string;
928
937
  email: string;
929
938
  name: string;
@@ -1131,13 +1140,13 @@ declare const apiTokensRouter: _trpc_server.TRPCBuiltRouter<{
1131
1140
  list: _trpc_server.TRPCQueryProcedure<{
1132
1141
  input: void;
1133
1142
  output: Pick<{
1134
- name: string;
1135
1143
  id: string;
1144
+ name: string;
1136
1145
  createdAt: string;
1137
1146
  revokedAt: string | null;
1138
1147
  tokenHash: string;
1139
1148
  lastUsedAt: string | null;
1140
- }, "name" | "id" | "createdAt" | "revokedAt" | "lastUsedAt">[];
1149
+ }, "id" | "name" | "createdAt" | "revokedAt" | "lastUsedAt">[];
1141
1150
  meta: object;
1142
1151
  }>;
1143
1152
  /** The plaintext token is returned ONCE — only its hash is stored. */
@@ -1364,38 +1373,38 @@ declare const mediaRouter: _trpc_server.TRPCBuiltRouter<{
1364
1373
  metaData?: Record<string, unknown> | undefined;
1365
1374
  };
1366
1375
  output: {
1367
- filename: string;
1368
1376
  id: string;
1377
+ createdBy: string | null;
1369
1378
  updatedBy: string | null;
1370
1379
  legacyExtra: Record<string, unknown> | null;
1371
1380
  createdAt: string;
1372
1381
  updatedAt: string;
1382
+ filename: string;
1373
1383
  mime: string;
1374
1384
  size: number;
1375
1385
  alt: string | null;
1376
1386
  caption: string | null;
1377
1387
  objects: Record<string, unknown>;
1378
1388
  metaData: Record<string, unknown> | null;
1379
- createdBy: string | null;
1380
1389
  };
1381
1390
  meta: object;
1382
1391
  }>;
1383
1392
  list: _trpc_server.TRPCQueryProcedure<{
1384
1393
  input: void;
1385
1394
  output: ({
1386
- filename: string;
1387
1395
  id: string;
1396
+ createdBy: string | null;
1388
1397
  updatedBy: string | null;
1389
1398
  legacyExtra: Record<string, unknown> | null;
1390
1399
  createdAt: string;
1391
1400
  updatedAt: string;
1401
+ filename: string;
1392
1402
  mime: string;
1393
1403
  size: number;
1394
1404
  alt: string | null;
1395
1405
  caption: string | null;
1396
1406
  objects: Record<string, unknown>;
1397
1407
  metaData: Record<string, unknown> | null;
1398
- createdBy: string | null;
1399
1408
  } & {
1400
1409
  objects: Record<string, string>;
1401
1410
  })[];
@@ -1406,19 +1415,19 @@ declare const mediaRouter: _trpc_server.TRPCBuiltRouter<{
1406
1415
  id: string;
1407
1416
  };
1408
1417
  output: {
1409
- filename: string;
1410
1418
  id: string;
1419
+ createdBy: string | null;
1411
1420
  updatedBy: string | null;
1412
1421
  legacyExtra: Record<string, unknown> | null;
1413
1422
  createdAt: string;
1414
1423
  updatedAt: string;
1424
+ filename: string;
1415
1425
  mime: string;
1416
1426
  size: number;
1417
1427
  alt: string | null;
1418
1428
  caption: string | null;
1419
1429
  objects: Record<string, unknown>;
1420
1430
  metaData: Record<string, unknown> | null;
1421
- createdBy: string | null;
1422
1431
  } & {
1423
1432
  objects: Record<string, string>;
1424
1433
  };
@@ -1434,19 +1443,19 @@ declare const mediaRouter: _trpc_server.TRPCBuiltRouter<{
1434
1443
  };
1435
1444
  };
1436
1445
  output: {
1437
- filename: string;
1438
1446
  id: string;
1447
+ createdBy: string | null;
1439
1448
  updatedBy: string | null;
1440
1449
  legacyExtra: Record<string, unknown> | null;
1441
1450
  createdAt: string;
1442
1451
  updatedAt: string;
1452
+ filename: string;
1443
1453
  mime: string;
1444
1454
  size: number;
1445
1455
  alt: string | null;
1446
1456
  caption: string | null;
1447
1457
  objects: Record<string, unknown>;
1448
1458
  metaData: Record<string, unknown> | null;
1449
- createdBy: string | null;
1450
1459
  };
1451
1460
  meta: object;
1452
1461
  }>;
@@ -1529,19 +1538,14 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
1529
1538
  list: _trpc_server.TRPCQueryProcedure<{
1530
1539
  input: void;
1531
1540
  output: {
1532
- name: string;
1533
1541
  id: string;
1542
+ name: string;
1534
1543
  slug: string;
1535
1544
  description: string | null;
1536
- updatedBy: string | null;
1537
- legacyExtra: Record<string, unknown> | null;
1538
- createdAt: string;
1539
- updatedAt: string;
1540
- createdBy: string | null;
1541
1545
  fields: {
1542
1546
  name: string;
1543
1547
  label: string;
1544
- type: "number" | "boolean" | "text" | "rich-text" | "date" | "media" | "relation" | "select" | "steps" | "json";
1548
+ type: "number" | "boolean" | "json" | "date" | "text" | "rich-text" | "media" | "relation" | "select" | "steps";
1545
1549
  required: boolean;
1546
1550
  hidden: boolean;
1547
1551
  options?: string[] | undefined;
@@ -1550,6 +1554,11 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
1550
1554
  editor: Record<string, unknown> | null;
1551
1555
  display: Record<string, unknown> | null;
1552
1556
  headings: Record<string, unknown> | null;
1557
+ createdBy: string | null;
1558
+ updatedBy: string | null;
1559
+ legacyExtra: Record<string, unknown> | null;
1560
+ createdAt: string;
1561
+ updatedAt: string;
1553
1562
  }[];
1554
1563
  meta: object;
1555
1564
  }>;
@@ -1589,7 +1598,7 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
1589
1598
  fields: {
1590
1599
  name: string;
1591
1600
  label: string;
1592
- type: "number" | "boolean" | "text" | "rich-text" | "date" | "media" | "relation" | "select" | "steps" | "json";
1601
+ type: "number" | "boolean" | "json" | "date" | "text" | "rich-text" | "media" | "relation" | "select" | "steps";
1593
1602
  required?: boolean | undefined;
1594
1603
  hidden?: boolean | undefined;
1595
1604
  options?: string[] | undefined;
@@ -1602,19 +1611,14 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
1602
1611
  slug?: string | undefined;
1603
1612
  };
1604
1613
  output: {
1605
- name: string;
1606
1614
  id: string;
1615
+ name: string;
1607
1616
  slug: string;
1608
1617
  description: string | null;
1609
- updatedBy: string | null;
1610
- legacyExtra: Record<string, unknown> | null;
1611
- createdAt: string;
1612
- updatedAt: string;
1613
- createdBy: string | null;
1614
1618
  fields: {
1615
1619
  name: string;
1616
1620
  label: string;
1617
- type: "number" | "boolean" | "text" | "rich-text" | "date" | "media" | "relation" | "select" | "steps" | "json";
1621
+ type: "number" | "boolean" | "json" | "date" | "text" | "rich-text" | "media" | "relation" | "select" | "steps";
1618
1622
  required: boolean;
1619
1623
  hidden: boolean;
1620
1624
  options?: string[] | undefined;
@@ -1623,6 +1627,11 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
1623
1627
  editor: Record<string, unknown> | null;
1624
1628
  display: Record<string, unknown> | null;
1625
1629
  headings: Record<string, unknown> | null;
1630
+ createdBy: string | null;
1631
+ updatedBy: string | null;
1632
+ legacyExtra: Record<string, unknown> | null;
1633
+ createdAt: string;
1634
+ updatedAt: string;
1626
1635
  };
1627
1636
  meta: object;
1628
1637
  }>;
@@ -1639,7 +1648,7 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
1639
1648
  fields?: {
1640
1649
  name: string;
1641
1650
  label: string;
1642
- type: "number" | "boolean" | "text" | "rich-text" | "date" | "media" | "relation" | "select" | "steps" | "json";
1651
+ type: "number" | "boolean" | "json" | "date" | "text" | "rich-text" | "media" | "relation" | "select" | "steps";
1643
1652
  required?: boolean | undefined;
1644
1653
  hidden?: boolean | undefined;
1645
1654
  options?: string[] | undefined;
@@ -1648,19 +1657,14 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
1648
1657
  };
1649
1658
  };
1650
1659
  output: {
1651
- name: string;
1652
1660
  id: string;
1661
+ name: string;
1653
1662
  slug: string;
1654
1663
  description: string | null;
1655
- updatedBy: string | null;
1656
- legacyExtra: Record<string, unknown> | null;
1657
- createdAt: string;
1658
- updatedAt: string;
1659
- createdBy: string | null;
1660
1664
  fields: {
1661
1665
  name: string;
1662
1666
  label: string;
1663
- type: "number" | "boolean" | "text" | "rich-text" | "date" | "media" | "relation" | "select" | "steps" | "json";
1667
+ type: "number" | "boolean" | "json" | "date" | "text" | "rich-text" | "media" | "relation" | "select" | "steps";
1664
1668
  required: boolean;
1665
1669
  hidden: boolean;
1666
1670
  options?: string[] | undefined;
@@ -1669,6 +1673,11 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
1669
1673
  editor: Record<string, unknown> | null;
1670
1674
  display: Record<string, unknown> | null;
1671
1675
  headings: Record<string, unknown> | null;
1676
+ createdBy: string | null;
1677
+ updatedBy: string | null;
1678
+ legacyExtra: Record<string, unknown> | null;
1679
+ createdAt: string;
1680
+ updatedAt: string;
1672
1681
  };
1673
1682
  meta: object;
1674
1683
  }>;
@@ -1828,13 +1837,13 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
1828
1837
  id: string;
1829
1838
  data: Record<string, unknown>;
1830
1839
  slug: string;
1840
+ createdBy: string | null;
1831
1841
  updatedBy: string | null;
1832
1842
  legacyExtra: Record<string, unknown> | null;
1833
1843
  createdAt: string;
1834
1844
  updatedAt: string;
1835
- createdBy: string | null;
1836
- collectionId: string;
1837
1845
  title: string;
1846
+ collectionId: string;
1838
1847
  related: string[] | null;
1839
1848
  status: "draft" | "waiting" | "ready" | "scheduled" | "published";
1840
1849
  publishedAt: string | null;
@@ -1857,13 +1866,13 @@ declare const collectionsRouter: _trpc_server.TRPCBuiltRouter<{
1857
1866
  id: string;
1858
1867
  data: Record<string, unknown>;
1859
1868
  slug: string;
1869
+ createdBy: string | null;
1860
1870
  updatedBy: string | null;
1861
1871
  legacyExtra: Record<string, unknown> | null;
1862
1872
  createdAt: string;
1863
1873
  updatedAt: string;
1864
- createdBy: string | null;
1865
- collectionId: string;
1866
1874
  title: string;
1875
+ collectionId: string;
1867
1876
  related: string[] | null;
1868
1877
  status: "draft" | "waiting" | "ready" | "scheduled" | "published";
1869
1878
  publishedAt: string | null;
@@ -2062,6 +2071,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
2062
2071
  token: string;
2063
2072
  expiresAt: string;
2064
2073
  user: {
2074
+ audience: boolean;
2065
2075
  id: string;
2066
2076
  email: string;
2067
2077
  name: string;
@@ -2081,6 +2091,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
2081
2091
  input: void;
2082
2092
  output: {
2083
2093
  user: {
2094
+ audience: boolean;
2084
2095
  id: string;
2085
2096
  email: string;
2086
2097
  name: string;