@opencrvs/toolkit 2.2.0-rc.3af310b → 2.2.0-rc.5bf5dfc

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.
Files changed (82) hide show
  1. package/build.sh +7 -2
  2. package/dist/application-config/index.js +9 -9
  3. package/dist/authentication/index.d.ts +2 -1
  4. package/dist/authentication/index.js +20 -12
  5. package/dist/cli.js +633 -333
  6. package/dist/commons/api/router.d.ts +249 -249
  7. package/dist/commons/application-config/index.d.ts +2 -2
  8. package/dist/commons/conditionals/conditionals.d.ts +4 -4
  9. package/dist/commons/conditionals/index.d.ts +1 -0
  10. package/dist/commons/conditionals/validate.d.ts +6 -1
  11. package/dist/commons/events/ActionConfig.d.ts +2 -2
  12. package/dist/commons/events/ActionDocument.d.ts +1 -0
  13. package/dist/commons/events/ActionInput.d.ts +4 -4
  14. package/dist/commons/events/ActionStatus.d.ts +2 -2
  15. package/dist/commons/events/ActionType.d.ts +2 -0
  16. package/dist/commons/events/AdvancedSearchConfig.d.ts +3 -0
  17. package/dist/commons/events/CompositeFieldValue.d.ts +5 -1
  18. package/dist/commons/events/Draft.d.ts +34 -1
  19. package/dist/commons/events/EventConfig.d.ts +1 -10
  20. package/dist/commons/events/EventIndex.d.ts +2 -2
  21. package/dist/commons/events/FieldConfig.d.ts +1 -1
  22. package/dist/commons/events/FieldTypeMapping.d.ts +17 -17
  23. package/dist/commons/events/Flag.d.ts +1 -1
  24. package/dist/commons/events/PlainDate.d.ts +1 -0
  25. package/dist/commons/events/eventConfigValidation.d.ts +1 -1
  26. package/dist/commons/events/field.d.ts +5 -0
  27. package/dist/commons/events/index.d.ts +3 -0
  28. package/dist/commons/events/locations.d.ts +1 -1
  29. package/dist/commons/events/scopes.d.ts +2 -1
  30. package/dist/commons/events/test.utils.d.ts +5 -6
  31. package/dist/commons/events/toNotificationForm.d.ts +17 -0
  32. package/dist/commons/events/utils.d.ts +26 -5
  33. package/dist/commons/users/Role.d.ts +23 -0
  34. package/dist/commons/users/User.d.ts +263 -0
  35. package/dist/commons/users/authentication.d.ts +67 -0
  36. package/dist/commons/users/index.d.ts +5 -0
  37. package/dist/commons/users/roleValidations.d.ts +15 -0
  38. package/dist/commons/users/scopes.d.ts +1402 -0
  39. package/dist/commons/users/userReferences.d.ts +176 -0
  40. package/dist/conditionals/index.js +5 -5
  41. package/dist/environment/custom-types.d.ts +1 -0
  42. package/dist/environment/custom-types.d.ts.map +1 -1
  43. package/dist/environment/derived-variables.d.ts +6 -4
  44. package/dist/environment/derived-variables.d.ts.map +1 -1
  45. package/dist/environment/derived-variables.js +6 -4
  46. package/dist/environment/questions.d.ts +42 -9
  47. package/dist/environment/questions.d.ts.map +1 -1
  48. package/dist/environment/questions.js +70 -47
  49. package/dist/environment/registry.d.ts +15 -0
  50. package/dist/environment/registry.d.ts.map +1 -0
  51. package/dist/environment/registry.js +112 -0
  52. package/dist/environment/setup-environment.d.ts.map +1 -1
  53. package/dist/environment/setup-environment.js +85 -29
  54. package/dist/events/index.js +214 -152
  55. package/dist/migrations/add-notify-config.d.ts +40 -0
  56. package/dist/migrations/add-notify-config.d.ts.map +1 -0
  57. package/dist/migrations/add-notify-config.js +249 -0
  58. package/dist/migrations/index.d.ts.map +1 -1
  59. package/dist/migrations/index.js +345 -143
  60. package/dist/migrations/move-declaration-to-declare-action.d.ts.map +1 -1
  61. package/dist/migrations/move-declaration-to-declare-action.js +27 -144
  62. package/dist/migrations/read-declaration-through-helper.d.ts.map +1 -1
  63. package/dist/migrations/read-declaration-through-helper.js +3 -61
  64. package/dist/migrations/utils.d.ts +61 -0
  65. package/dist/migrations/utils.d.ts.map +1 -0
  66. package/dist/migrations/utils.js +218 -0
  67. package/dist/notification/index.js +282 -90
  68. package/dist/roles/index.d.ts +2 -0
  69. package/dist/roles/index.d.ts.map +1 -0
  70. package/dist/roles/index.js +719 -0
  71. package/dist/scopes/index.d.ts +54 -61
  72. package/dist/scopes/index.js +15 -11
  73. package/dist/templates/charts-values/opencrvs-services/values.yaml +3 -4
  74. package/opencrvs-toolkit-2.2.0-rc.5bf5dfc.tgz +0 -0
  75. package/package.json +5 -3
  76. package/tsconfig.build.tsbuildinfo +1 -1
  77. package/tsconfig.json +3 -5
  78. package/dist/commons/events/notificationFormFallback.d.ts +0 -10
  79. package/dist/environment/dockerhub.d.ts +0 -15
  80. package/dist/environment/dockerhub.d.ts.map +0 -1
  81. package/dist/environment/dockerhub.js +0 -104
  82. package/opencrvs-toolkit-2.2.0-rc.3af310b.tgz +0 -0
@@ -2,18 +2,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2
2
  ctx: Partial<{
3
3
  token: `Bearer ${string}`;
4
4
  user: {
5
+ id: string & import("zod").$brand<"UUID">;
6
+ type: "system";
7
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
9
+ signature?: undefined;
10
+ } | {
5
11
  id: string & import("zod").$brand<"UUID">;
6
12
  role: string;
7
13
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
8
14
  primaryOfficeId: string & import("zod").$brand<"UUID">;
9
15
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
10
16
  type: "user";
11
- } | {
12
- id: string & import("zod").$brand<"UUID">;
13
- type: "system";
14
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
15
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
16
- signature?: undefined;
17
17
  };
18
18
  }>;
19
19
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -24,18 +24,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
24
24
  ctx: Partial<{
25
25
  token: `Bearer ${string}`;
26
26
  user: {
27
+ id: string & import("zod").$brand<"UUID">;
28
+ type: "system";
29
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
30
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
31
+ signature?: undefined;
32
+ } | {
27
33
  id: string & import("zod").$brand<"UUID">;
28
34
  role: string;
29
35
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
30
36
  primaryOfficeId: string & import("zod").$brand<"UUID">;
31
37
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
32
38
  type: "user";
33
- } | {
34
- id: string & import("zod").$brand<"UUID">;
35
- type: "system";
36
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
37
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
38
- signature?: undefined;
39
39
  };
40
40
  }>;
41
41
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -46,18 +46,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
46
46
  ctx: Partial<{
47
47
  token: `Bearer ${string}`;
48
48
  user: {
49
+ id: string & import("zod").$brand<"UUID">;
50
+ type: "system";
51
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
52
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
53
+ signature?: undefined;
54
+ } | {
49
55
  id: string & import("zod").$brand<"UUID">;
50
56
  role: string;
51
57
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
52
58
  primaryOfficeId: string & import("zod").$brand<"UUID">;
53
59
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
54
60
  type: "user";
55
- } | {
56
- id: string & import("zod").$brand<"UUID">;
57
- type: "system";
58
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
59
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
60
- signature?: undefined;
61
61
  };
62
62
  }>;
63
63
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -94,18 +94,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
94
94
  ctx: Partial<{
95
95
  token: `Bearer ${string}`;
96
96
  user: {
97
+ id: string & import("zod").$brand<"UUID">;
98
+ type: "system";
99
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
100
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
101
+ signature?: undefined;
102
+ } | {
97
103
  id: string & import("zod").$brand<"UUID">;
98
104
  role: string;
99
105
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
100
106
  primaryOfficeId: string & import("zod").$brand<"UUID">;
101
107
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
102
108
  type: "user";
103
- } | {
104
- id: string & import("zod").$brand<"UUID">;
105
- type: "system";
106
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
107
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
108
- signature?: undefined;
109
109
  };
110
110
  }>;
111
111
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -1191,18 +1191,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1191
1191
  ctx: Partial<{
1192
1192
  token: `Bearer ${string}`;
1193
1193
  user: {
1194
+ id: string & import("zod").$brand<"UUID">;
1195
+ type: "system";
1196
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1197
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1198
+ signature?: undefined;
1199
+ } | {
1194
1200
  id: string & import("zod").$brand<"UUID">;
1195
1201
  role: string;
1196
1202
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1197
1203
  primaryOfficeId: string & import("zod").$brand<"UUID">;
1198
1204
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1199
1205
  type: "user";
1200
- } | {
1201
- id: string & import("zod").$brand<"UUID">;
1202
- type: "system";
1203
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1204
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1205
- signature?: undefined;
1206
1206
  };
1207
1207
  }>;
1208
1208
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -1227,7 +1227,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1227
1227
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1228
1228
  status: "Accepted" | "Rejected" | "Requested";
1229
1229
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1230
- type: "APPROVE_CORRECTION" | "ARCHIVE" | "ASSIGN" | "CREATE" | "CUSTOM" | "DECLARE" | "DUPLICATE_DETECTED" | "EDIT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "NOTIFY" | "PRINT_CERTIFICATE" | "READ" | "REGISTER" | "REINSTATE_REGISTRATION" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "REVOKE_REGISTRATION" | "UNARCHIVE" | "UNASSIGN";
1230
+ type: "DECLARE" | "NOTIFY";
1231
1231
  };
1232
1232
  }[];
1233
1233
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -1243,7 +1243,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1243
1243
  keepAssignmentIfAccepted?: boolean | undefined;
1244
1244
  keepAssignmentIfRejected?: boolean | undefined;
1245
1245
  createdAtLocation?: string | null | undefined;
1246
- type: "DECLARE";
1246
+ type: "DECLARE" | "NOTIFY";
1247
1247
  status: "Accepted" | "Rejected" | "Requested";
1248
1248
  };
1249
1249
  output: {
@@ -1262,7 +1262,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1262
1262
  annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
1263
1263
  status: "Accepted" | "Rejected" | "Requested";
1264
1264
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1265
- type: "APPROVE_CORRECTION" | "ARCHIVE" | "ASSIGN" | "CREATE" | "CUSTOM" | "DECLARE" | "DUPLICATE_DETECTED" | "EDIT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "NOTIFY" | "PRINT_CERTIFICATE" | "READ" | "REGISTER" | "REINSTATE_REGISTRATION" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "REVOKE_REGISTRATION" | "UNARCHIVE" | "UNASSIGN";
1265
+ type: "DECLARE" | "NOTIFY";
1266
1266
  };
1267
1267
  };
1268
1268
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -1272,18 +1272,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1272
1272
  ctx: Partial<{
1273
1273
  token: `Bearer ${string}`;
1274
1274
  user: {
1275
+ id: string & import("zod").$brand<"UUID">;
1276
+ type: "system";
1277
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1278
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1279
+ signature?: undefined;
1280
+ } | {
1275
1281
  id: string & import("zod").$brand<"UUID">;
1276
1282
  role: string;
1277
1283
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1278
1284
  primaryOfficeId: string & import("zod").$brand<"UUID">;
1279
1285
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1280
1286
  type: "user";
1281
- } | {
1282
- id: string & import("zod").$brand<"UUID">;
1283
- type: "system";
1284
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1285
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1286
- signature?: undefined;
1287
1287
  };
1288
1288
  }>;
1289
1289
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -1304,18 +1304,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1304
1304
  ctx: Partial<{
1305
1305
  token: `Bearer ${string}`;
1306
1306
  user: {
1307
+ id: string & import("zod").$brand<"UUID">;
1308
+ type: "system";
1309
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1310
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1311
+ signature?: undefined;
1312
+ } | {
1307
1313
  id: string & import("zod").$brand<"UUID">;
1308
1314
  role: string;
1309
1315
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1310
1316
  primaryOfficeId: string & import("zod").$brand<"UUID">;
1311
1317
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1312
1318
  type: "user";
1313
- } | {
1314
- id: string & import("zod").$brand<"UUID">;
1315
- type: "system";
1316
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1317
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1318
- signature?: undefined;
1319
1319
  };
1320
1320
  }>;
1321
1321
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -1326,18 +1326,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1326
1326
  ctx: Partial<{
1327
1327
  token: `Bearer ${string}`;
1328
1328
  user: {
1329
+ id: string & import("zod").$brand<"UUID">;
1330
+ type: "system";
1331
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1332
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1333
+ signature?: undefined;
1334
+ } | {
1329
1335
  id: string & import("zod").$brand<"UUID">;
1330
1336
  role: string;
1331
1337
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1332
1338
  primaryOfficeId: string & import("zod").$brand<"UUID">;
1333
1339
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1334
1340
  type: "user";
1335
- } | {
1336
- id: string & import("zod").$brand<"UUID">;
1337
- type: "system";
1338
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1339
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1340
- signature?: undefined;
1341
1341
  };
1342
1342
  }>;
1343
1343
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -1378,14 +1378,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1378
1378
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1379
1379
  eventId: string;
1380
1380
  transactionId: string;
1381
- declaration?: Record<string, unknown> | undefined;
1382
- annotation?: Record<string, unknown> | undefined;
1383
1381
  originalActionId?: string | undefined;
1384
1382
  keepAssignment?: boolean | undefined;
1385
1383
  keepAssignmentIfAccepted?: boolean | undefined;
1386
1384
  keepAssignmentIfRejected?: boolean | undefined;
1387
1385
  waitFor?: boolean | undefined;
1388
1386
  type?: "NOTIFY" | undefined;
1387
+ declaration?: Record<string, unknown> | undefined;
1388
+ annotation?: Record<string, unknown> | undefined;
1389
1389
  createdAtLocation?: string | null | undefined;
1390
1390
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
1391
1391
  eventId: string;
@@ -1654,18 +1654,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1654
1654
  ctx: Partial<{
1655
1655
  token: `Bearer ${string}`;
1656
1656
  user: {
1657
+ id: string & import("zod").$brand<"UUID">;
1658
+ type: "system";
1659
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1660
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1661
+ signature?: undefined;
1662
+ } | {
1657
1663
  id: string & import("zod").$brand<"UUID">;
1658
1664
  role: string;
1659
1665
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
1660
1666
  primaryOfficeId: string & import("zod").$brand<"UUID">;
1661
1667
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
1662
1668
  type: "user";
1663
- } | {
1664
- id: string & import("zod").$brand<"UUID">;
1665
- type: "system";
1666
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
1667
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
1668
- signature?: undefined;
1669
1669
  };
1670
1670
  }>;
1671
1671
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -1675,13 +1675,13 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1675
1675
  request: import("@trpc/server").TRPCMutationProcedure<{
1676
1676
  input: {
1677
1677
  transactionId: string;
1678
- declaration?: Record<string, unknown> | undefined;
1679
- annotation?: Record<string, unknown> | undefined;
1680
1678
  originalActionId?: string | undefined;
1681
1679
  keepAssignment?: boolean | undefined;
1682
1680
  keepAssignmentIfAccepted?: boolean | undefined;
1683
1681
  keepAssignmentIfRejected?: boolean | undefined;
1684
1682
  waitFor?: boolean | undefined;
1683
+ declaration?: Record<string, unknown> | undefined;
1684
+ annotation?: Record<string, unknown> | undefined;
1685
1685
  eventType: string;
1686
1686
  createdAtLocation: string;
1687
1687
  };
@@ -2038,18 +2038,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2038
2038
  ctx: Partial<{
2039
2039
  token: `Bearer ${string}`;
2040
2040
  user: {
2041
+ id: string & import("zod").$brand<"UUID">;
2042
+ type: "system";
2043
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
2044
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
2045
+ signature?: undefined;
2046
+ } | {
2041
2047
  id: string & import("zod").$brand<"UUID">;
2042
2048
  role: string;
2043
2049
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2044
2050
  primaryOfficeId: string & import("zod").$brand<"UUID">;
2045
2051
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2046
2052
  type: "user";
2047
- } | {
2048
- id: string & import("zod").$brand<"UUID">;
2049
- type: "system";
2050
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
2051
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
2052
- signature?: undefined;
2053
2053
  };
2054
2054
  }>;
2055
2055
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -2085,14 +2085,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2085
2085
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2086
2086
  eventId: string;
2087
2087
  transactionId: string;
2088
- declaration?: Record<string, unknown> | undefined;
2089
- annotation?: Record<string, unknown> | undefined;
2090
2088
  originalActionId?: string | undefined;
2091
2089
  keepAssignment?: boolean | undefined;
2092
2090
  keepAssignmentIfAccepted?: boolean | undefined;
2093
2091
  keepAssignmentIfRejected?: boolean | undefined;
2094
2092
  waitFor?: boolean | undefined;
2095
2093
  type?: "NOTIFY" | undefined;
2094
+ declaration?: Record<string, unknown> | undefined;
2095
+ annotation?: Record<string, unknown> | undefined;
2096
2096
  createdAtLocation?: string | null | undefined;
2097
2097
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2098
2098
  eventId: string;
@@ -2723,18 +2723,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2723
2723
  ctx: Partial<{
2724
2724
  token: `Bearer ${string}`;
2725
2725
  user: {
2726
+ id: string & import("zod").$brand<"UUID">;
2727
+ type: "system";
2728
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
2729
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
2730
+ signature?: undefined;
2731
+ } | {
2726
2732
  id: string & import("zod").$brand<"UUID">;
2727
2733
  role: string;
2728
2734
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
2729
2735
  primaryOfficeId: string & import("zod").$brand<"UUID">;
2730
2736
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
2731
2737
  type: "user";
2732
- } | {
2733
- id: string & import("zod").$brand<"UUID">;
2734
- type: "system";
2735
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
2736
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
2737
- signature?: undefined;
2738
2738
  };
2739
2739
  }>;
2740
2740
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -2775,14 +2775,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2775
2775
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2776
2776
  eventId: string;
2777
2777
  transactionId: string;
2778
- declaration?: Record<string, unknown> | undefined;
2779
- annotation?: Record<string, unknown> | undefined;
2780
2778
  originalActionId?: string | undefined;
2781
2779
  keepAssignment?: boolean | undefined;
2782
2780
  keepAssignmentIfAccepted?: boolean | undefined;
2783
2781
  keepAssignmentIfRejected?: boolean | undefined;
2784
2782
  waitFor?: boolean | undefined;
2785
2783
  type?: "NOTIFY" | undefined;
2784
+ declaration?: Record<string, unknown> | undefined;
2785
+ annotation?: Record<string, unknown> | undefined;
2786
2786
  createdAtLocation?: string | null | undefined;
2787
2787
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
2788
2788
  eventId: string;
@@ -3051,18 +3051,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3051
3051
  ctx: Partial<{
3052
3052
  token: `Bearer ${string}`;
3053
3053
  user: {
3054
+ id: string & import("zod").$brand<"UUID">;
3055
+ type: "system";
3056
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
3057
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
3058
+ signature?: undefined;
3059
+ } | {
3054
3060
  id: string & import("zod").$brand<"UUID">;
3055
3061
  role: string;
3056
3062
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
3057
3063
  primaryOfficeId: string & import("zod").$brand<"UUID">;
3058
3064
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
3059
3065
  type: "user";
3060
- } | {
3061
- id: string & import("zod").$brand<"UUID">;
3062
- type: "system";
3063
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
3064
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
3065
- signature?: undefined;
3066
3066
  };
3067
3067
  }>;
3068
3068
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -3103,14 +3103,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3103
3103
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3104
3104
  eventId: string;
3105
3105
  transactionId: string;
3106
- declaration?: Record<string, unknown> | undefined;
3107
- annotation?: Record<string, unknown> | undefined;
3108
3106
  originalActionId?: string | undefined;
3109
3107
  keepAssignment?: boolean | undefined;
3110
3108
  keepAssignmentIfAccepted?: boolean | undefined;
3111
3109
  keepAssignmentIfRejected?: boolean | undefined;
3112
3110
  waitFor?: boolean | undefined;
3113
3111
  type?: "NOTIFY" | undefined;
3112
+ declaration?: Record<string, unknown> | undefined;
3113
+ annotation?: Record<string, unknown> | undefined;
3114
3114
  createdAtLocation?: string | null | undefined;
3115
3115
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3116
3116
  eventId: string;
@@ -3379,18 +3379,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3379
3379
  ctx: Partial<{
3380
3380
  token: `Bearer ${string}`;
3381
3381
  user: {
3382
+ id: string & import("zod").$brand<"UUID">;
3383
+ type: "system";
3384
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
3385
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
3386
+ signature?: undefined;
3387
+ } | {
3382
3388
  id: string & import("zod").$brand<"UUID">;
3383
3389
  role: string;
3384
3390
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
3385
3391
  primaryOfficeId: string & import("zod").$brand<"UUID">;
3386
3392
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
3387
3393
  type: "user";
3388
- } | {
3389
- id: string & import("zod").$brand<"UUID">;
3390
- type: "system";
3391
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
3392
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
3393
- signature?: undefined;
3394
3394
  };
3395
3395
  }>;
3396
3396
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -3431,14 +3431,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3431
3431
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3432
3432
  eventId: string;
3433
3433
  transactionId: string;
3434
- declaration?: Record<string, unknown> | undefined;
3435
- annotation?: Record<string, unknown> | undefined;
3436
3434
  originalActionId?: string | undefined;
3437
3435
  keepAssignment?: boolean | undefined;
3438
3436
  keepAssignmentIfAccepted?: boolean | undefined;
3439
3437
  keepAssignmentIfRejected?: boolean | undefined;
3440
3438
  waitFor?: boolean | undefined;
3441
3439
  type?: "NOTIFY" | undefined;
3440
+ declaration?: Record<string, unknown> | undefined;
3441
+ annotation?: Record<string, unknown> | undefined;
3442
3442
  createdAtLocation?: string | null | undefined;
3443
3443
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3444
3444
  eventId: string;
@@ -3707,18 +3707,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3707
3707
  ctx: Partial<{
3708
3708
  token: `Bearer ${string}`;
3709
3709
  user: {
3710
+ id: string & import("zod").$brand<"UUID">;
3711
+ type: "system";
3712
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
3713
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
3714
+ signature?: undefined;
3715
+ } | {
3710
3716
  id: string & import("zod").$brand<"UUID">;
3711
3717
  role: string;
3712
3718
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
3713
3719
  primaryOfficeId: string & import("zod").$brand<"UUID">;
3714
3720
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
3715
3721
  type: "user";
3716
- } | {
3717
- id: string & import("zod").$brand<"UUID">;
3718
- type: "system";
3719
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
3720
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
3721
- signature?: undefined;
3722
3722
  };
3723
3723
  }>;
3724
3724
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -3759,14 +3759,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3759
3759
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3760
3760
  eventId: string;
3761
3761
  transactionId: string;
3762
- declaration?: Record<string, unknown> | undefined;
3763
- annotation?: Record<string, unknown> | undefined;
3764
3762
  originalActionId?: string | undefined;
3765
3763
  keepAssignment?: boolean | undefined;
3766
3764
  keepAssignmentIfAccepted?: boolean | undefined;
3767
3765
  keepAssignmentIfRejected?: boolean | undefined;
3768
3766
  waitFor?: boolean | undefined;
3769
3767
  type?: "NOTIFY" | undefined;
3768
+ declaration?: Record<string, unknown> | undefined;
3769
+ annotation?: Record<string, unknown> | undefined;
3770
3770
  createdAtLocation?: string | null | undefined;
3771
3771
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
3772
3772
  eventId: string;
@@ -4035,18 +4035,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4035
4035
  ctx: Partial<{
4036
4036
  token: `Bearer ${string}`;
4037
4037
  user: {
4038
+ id: string & import("zod").$brand<"UUID">;
4039
+ type: "system";
4040
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4041
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4042
+ signature?: undefined;
4043
+ } | {
4038
4044
  id: string & import("zod").$brand<"UUID">;
4039
4045
  role: string;
4040
4046
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4041
4047
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4042
4048
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4043
4049
  type: "user";
4044
- } | {
4045
- id: string & import("zod").$brand<"UUID">;
4046
- type: "system";
4047
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4048
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4049
- signature?: undefined;
4050
4050
  };
4051
4051
  }>;
4052
4052
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -4087,14 +4087,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4087
4087
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4088
4088
  eventId: string;
4089
4089
  transactionId: string;
4090
- declaration?: Record<string, unknown> | undefined;
4091
- annotation?: Record<string, unknown> | undefined;
4092
4090
  originalActionId?: string | undefined;
4093
4091
  keepAssignment?: boolean | undefined;
4094
4092
  keepAssignmentIfAccepted?: boolean | undefined;
4095
4093
  keepAssignmentIfRejected?: boolean | undefined;
4096
4094
  waitFor?: boolean | undefined;
4097
4095
  type?: "NOTIFY" | undefined;
4096
+ declaration?: Record<string, unknown> | undefined;
4097
+ annotation?: Record<string, unknown> | undefined;
4098
4098
  createdAtLocation?: string | null | undefined;
4099
4099
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4100
4100
  eventId: string;
@@ -4363,18 +4363,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4363
4363
  ctx: Partial<{
4364
4364
  token: `Bearer ${string}`;
4365
4365
  user: {
4366
+ id: string & import("zod").$brand<"UUID">;
4367
+ type: "system";
4368
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4369
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4370
+ signature?: undefined;
4371
+ } | {
4366
4372
  id: string & import("zod").$brand<"UUID">;
4367
4373
  role: string;
4368
4374
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4369
4375
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4370
4376
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4371
4377
  type: "user";
4372
- } | {
4373
- id: string & import("zod").$brand<"UUID">;
4374
- type: "system";
4375
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4376
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4377
- signature?: undefined;
4378
4378
  };
4379
4379
  }>;
4380
4380
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -4415,14 +4415,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4415
4415
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4416
4416
  eventId: string;
4417
4417
  transactionId: string;
4418
- declaration?: Record<string, unknown> | undefined;
4419
- annotation?: Record<string, unknown> | undefined;
4420
4418
  originalActionId?: string | undefined;
4421
4419
  keepAssignment?: boolean | undefined;
4422
4420
  keepAssignmentIfAccepted?: boolean | undefined;
4423
4421
  keepAssignmentIfRejected?: boolean | undefined;
4424
4422
  waitFor?: boolean | undefined;
4425
4423
  type?: "NOTIFY" | undefined;
4424
+ declaration?: Record<string, unknown> | undefined;
4425
+ annotation?: Record<string, unknown> | undefined;
4426
4426
  createdAtLocation?: string | null | undefined;
4427
4427
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4428
4428
  eventId: string;
@@ -4691,18 +4691,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4691
4691
  ctx: Partial<{
4692
4692
  token: `Bearer ${string}`;
4693
4693
  user: {
4694
+ id: string & import("zod").$brand<"UUID">;
4695
+ type: "system";
4696
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4697
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4698
+ signature?: undefined;
4699
+ } | {
4694
4700
  id: string & import("zod").$brand<"UUID">;
4695
4701
  role: string;
4696
4702
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
4697
4703
  primaryOfficeId: string & import("zod").$brand<"UUID">;
4698
4704
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
4699
4705
  type: "user";
4700
- } | {
4701
- id: string & import("zod").$brand<"UUID">;
4702
- type: "system";
4703
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
4704
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
4705
- signature?: undefined;
4706
4706
  };
4707
4707
  }>;
4708
4708
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -4738,14 +4738,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4738
4738
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4739
4739
  eventId: string;
4740
4740
  transactionId: string;
4741
- declaration?: Record<string, unknown> | undefined;
4742
- annotation?: Record<string, unknown> | undefined;
4743
4741
  originalActionId?: string | undefined;
4744
4742
  keepAssignment?: boolean | undefined;
4745
4743
  keepAssignmentIfAccepted?: boolean | undefined;
4746
4744
  keepAssignmentIfRejected?: boolean | undefined;
4747
4745
  waitFor?: boolean | undefined;
4748
4746
  type?: "NOTIFY" | undefined;
4747
+ declaration?: Record<string, unknown> | undefined;
4748
+ annotation?: Record<string, unknown> | undefined;
4749
4749
  createdAtLocation?: string | null | undefined;
4750
4750
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
4751
4751
  eventId: string;
@@ -5377,18 +5377,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5377
5377
  ctx: Partial<{
5378
5378
  token: `Bearer ${string}`;
5379
5379
  user: {
5380
+ id: string & import("zod").$brand<"UUID">;
5381
+ type: "system";
5382
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
5383
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
5384
+ signature?: undefined;
5385
+ } | {
5380
5386
  id: string & import("zod").$brand<"UUID">;
5381
5387
  role: string;
5382
5388
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
5383
5389
  primaryOfficeId: string & import("zod").$brand<"UUID">;
5384
5390
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
5385
5391
  type: "user";
5386
- } | {
5387
- id: string & import("zod").$brand<"UUID">;
5388
- type: "system";
5389
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
5390
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
5391
- signature?: undefined;
5392
5392
  };
5393
5393
  }>;
5394
5394
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -6126,18 +6126,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6126
6126
  ctx: Partial<{
6127
6127
  token: `Bearer ${string}`;
6128
6128
  user: {
6129
+ id: string & import("zod").$brand<"UUID">;
6130
+ type: "system";
6131
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
6132
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
6133
+ signature?: undefined;
6134
+ } | {
6129
6135
  id: string & import("zod").$brand<"UUID">;
6130
6136
  role: string;
6131
6137
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
6132
6138
  primaryOfficeId: string & import("zod").$brand<"UUID">;
6133
6139
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
6134
6140
  type: "user";
6135
- } | {
6136
- id: string & import("zod").$brand<"UUID">;
6137
- type: "system";
6138
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
6139
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
6140
- signature?: undefined;
6141
6141
  };
6142
6142
  }>;
6143
6143
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -6148,18 +6148,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6148
6148
  ctx: Partial<{
6149
6149
  token: `Bearer ${string}`;
6150
6150
  user: {
6151
+ id: string & import("zod").$brand<"UUID">;
6152
+ type: "system";
6153
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
6154
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
6155
+ signature?: undefined;
6156
+ } | {
6151
6157
  id: string & import("zod").$brand<"UUID">;
6152
6158
  role: string;
6153
6159
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
6154
6160
  primaryOfficeId: string & import("zod").$brand<"UUID">;
6155
6161
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
6156
6162
  type: "user";
6157
- } | {
6158
- id: string & import("zod").$brand<"UUID">;
6159
- type: "system";
6160
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
6161
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
6162
- signature?: undefined;
6163
6163
  };
6164
6164
  }>;
6165
6165
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -6200,14 +6200,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6200
6200
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6201
6201
  eventId: string;
6202
6202
  transactionId: string;
6203
- declaration?: Record<string, unknown> | undefined;
6204
- annotation?: Record<string, unknown> | undefined;
6205
6203
  originalActionId?: string | undefined;
6206
6204
  keepAssignment?: boolean | undefined;
6207
6205
  keepAssignmentIfAccepted?: boolean | undefined;
6208
6206
  keepAssignmentIfRejected?: boolean | undefined;
6209
6207
  waitFor?: boolean | undefined;
6210
6208
  type?: "NOTIFY" | undefined;
6209
+ declaration?: Record<string, unknown> | undefined;
6210
+ annotation?: Record<string, unknown> | undefined;
6211
6211
  createdAtLocation?: string | null | undefined;
6212
6212
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6213
6213
  eventId: string;
@@ -6476,18 +6476,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6476
6476
  ctx: Partial<{
6477
6477
  token: `Bearer ${string}`;
6478
6478
  user: {
6479
+ id: string & import("zod").$brand<"UUID">;
6480
+ type: "system";
6481
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
6482
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
6483
+ signature?: undefined;
6484
+ } | {
6479
6485
  id: string & import("zod").$brand<"UUID">;
6480
6486
  role: string;
6481
6487
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
6482
6488
  primaryOfficeId: string & import("zod").$brand<"UUID">;
6483
6489
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
6484
6490
  type: "user";
6485
- } | {
6486
- id: string & import("zod").$brand<"UUID">;
6487
- type: "system";
6488
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
6489
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
6490
- signature?: undefined;
6491
6491
  };
6492
6492
  }>;
6493
6493
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -6528,14 +6528,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6528
6528
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6529
6529
  eventId: string;
6530
6530
  transactionId: string;
6531
- declaration?: Record<string, unknown> | undefined;
6532
- annotation?: Record<string, unknown> | undefined;
6533
6531
  originalActionId?: string | undefined;
6534
6532
  keepAssignment?: boolean | undefined;
6535
6533
  keepAssignmentIfAccepted?: boolean | undefined;
6536
6534
  keepAssignmentIfRejected?: boolean | undefined;
6537
6535
  waitFor?: boolean | undefined;
6538
6536
  type?: "NOTIFY" | undefined;
6537
+ declaration?: Record<string, unknown> | undefined;
6538
+ annotation?: Record<string, unknown> | undefined;
6539
6539
  createdAtLocation?: string | null | undefined;
6540
6540
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6541
6541
  eventId: string;
@@ -6804,18 +6804,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6804
6804
  ctx: Partial<{
6805
6805
  token: `Bearer ${string}`;
6806
6806
  user: {
6807
+ id: string & import("zod").$brand<"UUID">;
6808
+ type: "system";
6809
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
6810
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
6811
+ signature?: undefined;
6812
+ } | {
6807
6813
  id: string & import("zod").$brand<"UUID">;
6808
6814
  role: string;
6809
6815
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
6810
6816
  primaryOfficeId: string & import("zod").$brand<"UUID">;
6811
6817
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
6812
6818
  type: "user";
6813
- } | {
6814
- id: string & import("zod").$brand<"UUID">;
6815
- type: "system";
6816
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
6817
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
6818
- signature?: undefined;
6819
6819
  };
6820
6820
  }>;
6821
6821
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -6856,14 +6856,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6856
6856
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6857
6857
  eventId: string;
6858
6858
  transactionId: string;
6859
- declaration?: Record<string, unknown> | undefined;
6860
- annotation?: Record<string, unknown> | undefined;
6861
6859
  originalActionId?: string | undefined;
6862
6860
  keepAssignment?: boolean | undefined;
6863
6861
  keepAssignmentIfAccepted?: boolean | undefined;
6864
6862
  keepAssignmentIfRejected?: boolean | undefined;
6865
6863
  waitFor?: boolean | undefined;
6866
6864
  type?: "NOTIFY" | undefined;
6865
+ declaration?: Record<string, unknown> | undefined;
6866
+ annotation?: Record<string, unknown> | undefined;
6867
6867
  createdAtLocation?: string | null | undefined;
6868
6868
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
6869
6869
  eventId: string;
@@ -7133,18 +7133,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7133
7133
  ctx: Partial<{
7134
7134
  token: `Bearer ${string}`;
7135
7135
  user: {
7136
+ id: string & import("zod").$brand<"UUID">;
7137
+ type: "system";
7138
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
7139
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
7140
+ signature?: undefined;
7141
+ } | {
7136
7142
  id: string & import("zod").$brand<"UUID">;
7137
7143
  role: string;
7138
7144
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
7139
7145
  primaryOfficeId: string & import("zod").$brand<"UUID">;
7140
7146
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7141
7147
  type: "user";
7142
- } | {
7143
- id: string & import("zod").$brand<"UUID">;
7144
- type: "system";
7145
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
7146
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
7147
- signature?: undefined;
7148
7148
  };
7149
7149
  }>;
7150
7150
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -7155,18 +7155,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7155
7155
  ctx: Partial<{
7156
7156
  token: `Bearer ${string}`;
7157
7157
  user: {
7158
+ id: string & import("zod").$brand<"UUID">;
7159
+ type: "system";
7160
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
7161
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
7162
+ signature?: undefined;
7163
+ } | {
7158
7164
  id: string & import("zod").$brand<"UUID">;
7159
7165
  role: string;
7160
7166
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
7161
7167
  primaryOfficeId: string & import("zod").$brand<"UUID">;
7162
7168
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7163
7169
  type: "user";
7164
- } | {
7165
- id: string & import("zod").$brand<"UUID">;
7166
- type: "system";
7167
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
7168
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
7169
- signature?: undefined;
7170
7170
  };
7171
7171
  }>;
7172
7172
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -7207,14 +7207,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7207
7207
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
7208
7208
  eventId: string;
7209
7209
  transactionId: string;
7210
- declaration?: Record<string, unknown> | undefined;
7211
- annotation?: Record<string, unknown> | undefined;
7212
7210
  originalActionId?: string | undefined;
7213
7211
  keepAssignment?: boolean | undefined;
7214
7212
  keepAssignmentIfAccepted?: boolean | undefined;
7215
7213
  keepAssignmentIfRejected?: boolean | undefined;
7216
7214
  waitFor?: boolean | undefined;
7217
7215
  type?: "NOTIFY" | undefined;
7216
+ declaration?: Record<string, unknown> | undefined;
7217
+ annotation?: Record<string, unknown> | undefined;
7218
7218
  createdAtLocation?: string | null | undefined;
7219
7219
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
7220
7220
  eventId: string;
@@ -7483,18 +7483,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7483
7483
  ctx: Partial<{
7484
7484
  token: `Bearer ${string}`;
7485
7485
  user: {
7486
+ id: string & import("zod").$brand<"UUID">;
7487
+ type: "system";
7488
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
7489
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
7490
+ signature?: undefined;
7491
+ } | {
7486
7492
  id: string & import("zod").$brand<"UUID">;
7487
7493
  role: string;
7488
7494
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
7489
7495
  primaryOfficeId: string & import("zod").$brand<"UUID">;
7490
7496
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7491
7497
  type: "user";
7492
- } | {
7493
- id: string & import("zod").$brand<"UUID">;
7494
- type: "system";
7495
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
7496
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
7497
- signature?: undefined;
7498
7498
  };
7499
7499
  }>;
7500
7500
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -7535,14 +7535,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7535
7535
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
7536
7536
  eventId: string;
7537
7537
  transactionId: string;
7538
- declaration?: Record<string, unknown> | undefined;
7539
- annotation?: Record<string, unknown> | undefined;
7540
7538
  originalActionId?: string | undefined;
7541
7539
  keepAssignment?: boolean | undefined;
7542
7540
  keepAssignmentIfAccepted?: boolean | undefined;
7543
7541
  keepAssignmentIfRejected?: boolean | undefined;
7544
7542
  waitFor?: boolean | undefined;
7545
7543
  type?: "NOTIFY" | undefined;
7544
+ declaration?: Record<string, unknown> | undefined;
7545
+ annotation?: Record<string, unknown> | undefined;
7546
7546
  createdAtLocation?: string | null | undefined;
7547
7547
  }, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected"> | Omit<{
7548
7548
  eventId: string;
@@ -7812,18 +7812,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7812
7812
  ctx: Partial<{
7813
7813
  token: `Bearer ${string}`;
7814
7814
  user: {
7815
+ id: string & import("zod").$brand<"UUID">;
7816
+ type: "system";
7817
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
7818
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
7819
+ signature?: undefined;
7820
+ } | {
7815
7821
  id: string & import("zod").$brand<"UUID">;
7816
7822
  role: string;
7817
7823
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
7818
7824
  primaryOfficeId: string & import("zod").$brand<"UUID">;
7819
7825
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7820
7826
  type: "user";
7821
- } | {
7822
- id: string & import("zod").$brand<"UUID">;
7823
- type: "system";
7824
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
7825
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
7826
- signature?: undefined;
7827
7827
  };
7828
7828
  }>;
7829
7829
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -8984,18 +8984,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8984
8984
  ctx: Partial<{
8985
8985
  token: `Bearer ${string}`;
8986
8986
  user: {
8987
+ id: string & import("zod").$brand<"UUID">;
8988
+ type: "system";
8989
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8990
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
8991
+ signature?: undefined;
8992
+ } | {
8987
8993
  id: string & import("zod").$brand<"UUID">;
8988
8994
  role: string;
8989
8995
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
8990
8996
  primaryOfficeId: string & import("zod").$brand<"UUID">;
8991
8997
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
8992
8998
  type: "user";
8993
- } | {
8994
- id: string & import("zod").$brand<"UUID">;
8995
- type: "system";
8996
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
8997
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
8998
- signature?: undefined;
8999
8999
  };
9000
9000
  }>;
9001
9001
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -9182,18 +9182,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9182
9182
  ctx: Partial<{
9183
9183
  token: `Bearer ${string}`;
9184
9184
  user: {
9185
+ id: string & import("zod").$brand<"UUID">;
9186
+ type: "system";
9187
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
9188
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
9189
+ signature?: undefined;
9190
+ } | {
9185
9191
  id: string & import("zod").$brand<"UUID">;
9186
9192
  role: string;
9187
9193
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
9188
9194
  primaryOfficeId: string & import("zod").$brand<"UUID">;
9189
9195
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
9190
9196
  type: "user";
9191
- } | {
9192
- id: string & import("zod").$brand<"UUID">;
9193
- type: "system";
9194
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
9195
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
9196
- signature?: undefined;
9197
9197
  };
9198
9198
  }>;
9199
9199
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -9306,18 +9306,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9306
9306
  ctx: Partial<{
9307
9307
  token: `Bearer ${string}`;
9308
9308
  user: {
9309
+ id: string & import("zod").$brand<"UUID">;
9310
+ type: "system";
9311
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
9312
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
9313
+ signature?: undefined;
9314
+ } | {
9309
9315
  id: string & import("zod").$brand<"UUID">;
9310
9316
  role: string;
9311
9317
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
9312
9318
  primaryOfficeId: string & import("zod").$brand<"UUID">;
9313
9319
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
9314
9320
  type: "user";
9315
- } | {
9316
- id: string & import("zod").$brand<"UUID">;
9317
- type: "system";
9318
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
9319
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
9320
- signature?: undefined;
9321
9321
  };
9322
9322
  }>;
9323
9323
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -9689,18 +9689,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9689
9689
  ctx: Partial<{
9690
9690
  token: `Bearer ${string}`;
9691
9691
  user: {
9692
+ id: string & import("zod").$brand<"UUID">;
9693
+ type: "system";
9694
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
9695
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
9696
+ signature?: undefined;
9697
+ } | {
9692
9698
  id: string & import("zod").$brand<"UUID">;
9693
9699
  role: string;
9694
9700
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
9695
9701
  primaryOfficeId: string & import("zod").$brand<"UUID">;
9696
9702
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
9697
9703
  type: "user";
9698
- } | {
9699
- id: string & import("zod").$brand<"UUID">;
9700
- type: "system";
9701
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
9702
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
9703
- signature?: undefined;
9704
9704
  };
9705
9705
  }>;
9706
9706
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -9841,18 +9841,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9841
9841
  ctx: Partial<{
9842
9842
  token: `Bearer ${string}`;
9843
9843
  user: {
9844
+ id: string & import("zod").$brand<"UUID">;
9845
+ type: "system";
9846
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
9847
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
9848
+ signature?: undefined;
9849
+ } | {
9844
9850
  id: string & import("zod").$brand<"UUID">;
9845
9851
  role: string;
9846
9852
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
9847
9853
  primaryOfficeId: string & import("zod").$brand<"UUID">;
9848
9854
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
9849
9855
  type: "user";
9850
- } | {
9851
- id: string & import("zod").$brand<"UUID">;
9852
- type: "system";
9853
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
9854
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
9855
- signature?: undefined;
9856
9856
  };
9857
9857
  }>;
9858
9858
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -9863,18 +9863,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
9863
9863
  ctx: Partial<{
9864
9864
  token: `Bearer ${string}`;
9865
9865
  user: {
9866
+ id: string & import("zod").$brand<"UUID">;
9867
+ type: "system";
9868
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
9869
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
9870
+ signature?: undefined;
9871
+ } | {
9866
9872
  id: string & import("zod").$brand<"UUID">;
9867
9873
  role: string;
9868
9874
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
9869
9875
  primaryOfficeId: string & import("zod").$brand<"UUID">;
9870
9876
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
9871
9877
  type: "user";
9872
- } | {
9873
- id: string & import("zod").$brand<"UUID">;
9874
- type: "system";
9875
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
9876
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
9877
- signature?: undefined;
9878
9878
  };
9879
9879
  }>;
9880
9880
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -10225,18 +10225,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10225
10225
  ctx: Partial<{
10226
10226
  token: `Bearer ${string}`;
10227
10227
  user: {
10228
+ id: string & import("zod").$brand<"UUID">;
10229
+ type: "system";
10230
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
10231
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
10232
+ signature?: undefined;
10233
+ } | {
10228
10234
  id: string & import("zod").$brand<"UUID">;
10229
10235
  role: string;
10230
10236
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
10231
10237
  primaryOfficeId: string & import("zod").$brand<"UUID">;
10232
10238
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
10233
10239
  type: "user";
10234
- } | {
10235
- id: string & import("zod").$brand<"UUID">;
10236
- type: "system";
10237
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
10238
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
10239
- signature?: undefined;
10240
10240
  };
10241
10241
  }>;
10242
10242
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -10342,18 +10342,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10342
10342
  ctx: Partial<{
10343
10343
  token: `Bearer ${string}`;
10344
10344
  user: {
10345
+ id: string & import("zod").$brand<"UUID">;
10346
+ type: "system";
10347
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
10348
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
10349
+ signature?: undefined;
10350
+ } | {
10345
10351
  id: string & import("zod").$brand<"UUID">;
10346
10352
  role: string;
10347
10353
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
10348
10354
  primaryOfficeId: string & import("zod").$brand<"UUID">;
10349
10355
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
10350
10356
  type: "user";
10351
- } | {
10352
- id: string & import("zod").$brand<"UUID">;
10353
- type: "system";
10354
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
10355
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
10356
- signature?: undefined;
10357
10357
  };
10358
10358
  }>;
10359
10359
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -10822,18 +10822,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10822
10822
  ctx: Partial<{
10823
10823
  token: `Bearer ${string}`;
10824
10824
  user: {
10825
+ id: string & import("zod").$brand<"UUID">;
10826
+ type: "system";
10827
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
10828
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
10829
+ signature?: undefined;
10830
+ } | {
10825
10831
  id: string & import("zod").$brand<"UUID">;
10826
10832
  role: string;
10827
10833
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
10828
10834
  primaryOfficeId: string & import("zod").$brand<"UUID">;
10829
10835
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
10830
10836
  type: "user";
10831
- } | {
10832
- id: string & import("zod").$brand<"UUID">;
10833
- type: "system";
10834
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
10835
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
10836
- signature?: undefined;
10837
10837
  };
10838
10838
  }>;
10839
10839
  meta: import("trpc-to-openapi").OpenApiMeta;
@@ -10858,18 +10858,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10858
10858
  ctx: Partial<{
10859
10859
  token: `Bearer ${string}`;
10860
10860
  user: {
10861
+ id: string & import("zod").$brand<"UUID">;
10862
+ type: "system";
10863
+ primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
10864
+ administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
10865
+ signature?: undefined;
10866
+ } | {
10861
10867
  id: string & import("zod").$brand<"UUID">;
10862
10868
  role: string;
10863
10869
  signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
10864
10870
  primaryOfficeId: string & import("zod").$brand<"UUID">;
10865
10871
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
10866
10872
  type: "user";
10867
- } | {
10868
- id: string & import("zod").$brand<"UUID">;
10869
- type: "system";
10870
- primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
10871
- administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
10872
- signature?: undefined;
10873
10873
  };
10874
10874
  }>;
10875
10875
  meta: import("trpc-to-openapi").OpenApiMeta;