@remit/api-zod-schemas 0.0.31 → 0.0.33

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/README.md CHANGED
@@ -36,6 +36,8 @@ type CognitoAuthorizer = z.infer<typeof CognitoAuthorizerSchema>;
36
36
  - `ConnectionStateSchema` - Enum for ConnectionState
37
37
  - `SyncPhaseSchema` - Enum for SyncPhase
38
38
  - `FolderAppointmentSourceSchema` - Enum for FolderAppointmentSource
39
+ - `ConfigImportModeSchema` - Enum for ConfigImportMode
40
+ - `ConfigImportOnExistingSchema` - Enum for ConfigImportOnExisting
39
41
  - `SystemUpdateCheckStatusSchema` - Enum for SystemUpdateCheckStatus
40
42
  - `SystemUpdatePhaseSchema` - Enum for SystemUpdatePhase
41
43
  - `SystemUpdateOutcomeSchema` - Enum for SystemUpdateOutcome
@@ -77,6 +79,14 @@ type CognitoAuthorizer = z.infer<typeof CognitoAuthorizerSchema>;
77
79
  - `StorageTypeSchema` - Enum for StorageType
78
80
  - `ContentEncodingSchema` - Enum for ContentEncoding
79
81
  - `AccountSettingNameSchema` - Enum for AccountSettingName
82
+ - `ConfigImportStateSchema` - Enum for ConfigImportState
83
+ - `ConfigImportRefKindSchema` - Enum for ConfigImportRefKind
84
+ - `CalendarColorSchema` - Enum for CalendarColor
85
+ - `CalendarComponentSetSchema` - Enum for CalendarComponentSet
86
+ - `CalendarSourceSchema` - Enum for CalendarSource
87
+ - `CalendarEventStatusSchema` - Enum for CalendarEventStatus
88
+ - `CalendarTransparencySchema` - Enum for CalendarTransparency
89
+ - `ZoneCertaintySchema` - Enum for ZoneCertainty
80
90
  - `MessagePlacementMoveStateSchema` - Enum for MessagePlacementMoveState
81
91
  - `FlagPushOperationSchema` - Enum for FlagPushOperation
82
92
  - `MessageFlagPushStateSchema` - Enum for MessageFlagPushState
@@ -111,7 +121,12 @@ type CognitoAuthorizer = z.infer<typeof CognitoAuthorizerSchema>;
111
121
  - `AddressFlagBaseSchema` - AddressFlagBase model
112
122
  - `MutedFlagSchema` - MutedFlag model
113
123
  - `FolderAppointmentSchema` - FolderAppointment model
124
+ - `PendingConfigImportSchema` - PendingConfigImport model
114
125
  - `ConfigExportResponseSchema` - ConfigExportResponse model
126
+ - `ImportConfigInputSchema` - ImportConfigInput model
127
+ - `ConfigImportReportSchema` - ConfigImportReport model
128
+ - `ConfigImportItemReportSchema` - ConfigImportItemReport model
129
+ - `ConfigImportConflictSchema` - ConfigImportConflict model
115
130
  - `SystemUpdateResponseSchema` - SystemUpdateResponse model
116
131
  - `SystemUpdateCheckSchema` - SystemUpdateCheck model
117
132
  - `SystemUpdateRunSchema` - SystemUpdateRun model
@@ -200,6 +215,8 @@ type CognitoAuthorizer = z.infer<typeof CognitoAuthorizerSchema>;
200
215
  - `SpamReportBulkResultSchema` - SpamReportBulkResult model
201
216
  - `SpamReportFailureSchema` - SpamReportFailure model
202
217
  - `EnvelopeAddressSchema` - EnvelopeAddress model
218
+ - `ConfigImportUnresolvedRefSchema` - ConfigImportUnresolvedRef model
219
+ - `ConfigImportSchema` - ConfigImport model
203
220
  - `AccountSettingValueSchema` - AccountSettingValue model
204
221
  - `BooleanSettingSchema` - BooleanSetting model
205
222
  - `StringSettingSchema` - StringSetting model
@@ -221,6 +238,9 @@ type CognitoAuthorizer = z.infer<typeof CognitoAuthorizerSchema>;
221
238
  - `RawMessageStorageSchema` - RawMessageStorage model
222
239
  - `BodyPartStorageSchema` - BodyPartStorage model
223
240
  - `BodyPartContentSchema` - BodyPartContent model
241
+ - `CalendarCollectionSchema` - CalendarCollection model
242
+ - `CalendarObjectSchema` - CalendarObject model
243
+ - `CalendarEventIndexSchema` - CalendarEventIndex model
224
244
  - `MessageLabelSchema` - MessageLabel model
225
245
  - `FilterAnchorSchema` - FilterAnchor model
226
246
  - `MicrosoftOAuthStartRequestSchema` - MicrosoftOAuthStartRequest model
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/api-zod-schemas",
3
- "version": "0.0.31",
3
+ "version": "0.0.33",
4
4
  "type": "module",
5
5
  "main": "./schemas.js",
6
6
  "types": "./schemas.d.ts",
package/schemas.d.ts CHANGED
@@ -9,9 +9,11 @@ export declare const QuarantineFailureStageSchema: z.ZodEnum<["BodyParse"]>;
9
9
  export declare const QuarantineFailureCodeSchema: z.ZodEnum<["UnknownCharset", "UnreadableBody"]>;
10
10
  export declare const AccountConfigStateSchema: z.ZodEnum<["active", "deleting"]>;
11
11
  export declare const AccountAuthTypeSchema: z.ZodEnum<["password", "oauthMicrosoft"]>;
12
- export declare const ConnectionStateSchema: z.ZodEnum<["not_authenticated", "authenticated", "selected", "logout", "reauth_required"]>;
12
+ export declare const ConnectionStateSchema: z.ZodEnum<["not_authenticated", "authenticated", "selected", "logout", "reauth_required", "credentials_missing"]>;
13
13
  export declare const SyncPhaseSchema: z.ZodEnum<["idle", "discovering_mailboxes", "syncing_inbox", "syncing_others", "complete", "error"]>;
14
14
  export declare const FolderAppointmentSourceSchema: z.ZodEnum<["Appointed", "Flagged", "Reserved", "Proposed", "Stale", "None"]>;
15
+ export declare const ConfigImportModeSchema: z.ZodEnum<["validate", "apply"]>;
16
+ export declare const ConfigImportOnExistingSchema: z.ZodEnum<["abort", "merge"]>;
15
17
  export declare const SystemUpdateCheckStatusSchema: z.ZodEnum<["ok", "failed", "disabled"]>;
16
18
  export declare const SystemUpdatePhaseSchema: z.ZodEnum<["checking", "pulling", "snapshotting", "stopping", "starting", "verifying", "committing", "rollingBack", "recovering"]>;
17
19
  export declare const SystemUpdateOutcomeSchema: z.ZodEnum<["succeeded", "rolledBack", "rollbackFailed", "abandoned"]>;
@@ -53,6 +55,14 @@ export declare const MailboxAttributeSchema: z.ZodEnum<["\\NonExistent", "\\Noin
53
55
  export declare const StorageTypeSchema: z.ZodEnum<["s3", "filesystem", "inline", "database"]>;
54
56
  export declare const ContentEncodingSchema: z.ZodEnum<["none", "gzip", "zstd"]>;
55
57
  export declare const AccountSettingNameSchema: z.ZodEnum<["Theme", "Density", "DefaultComposerFormat", "PinnedFolders", "AccountSignaturePlainText", "AccountSignatureHtml", "AccountDisplayName", "AccountMuted", "AccountComposeLanguages", "MailboxDisplayName", "MailboxMuted", "FolderRoleAppointment", "FolderRoleAppointmentLabel", "MailboxRole"]>;
58
+ export declare const ConfigImportStateSchema: z.ZodEnum<["Pending", "Complete"]>;
59
+ export declare const ConfigImportRefKindSchema: z.ZodEnum<["FolderRole", "MailboxOverride", "FilterAction"]>;
60
+ export declare const CalendarColorSchema: z.ZodEnum<["Cal1", "Cal2", "Cal3", "Cal4", "Cal5", "Cal6"]>;
61
+ export declare const CalendarComponentSetSchema: z.ZodEnum<["VeventOnly"]>;
62
+ export declare const CalendarSourceSchema: z.ZodEnum<["Default", "UserCreated", "MailDerived"]>;
63
+ export declare const CalendarEventStatusSchema: z.ZodEnum<["Confirmed", "Tentative", "Cancelled"]>;
64
+ export declare const CalendarTransparencySchema: z.ZodEnum<["Opaque", "Transparent"]>;
65
+ export declare const ZoneCertaintySchema: z.ZodEnum<["Local", "Explicit", "Ambiguous"]>;
56
66
  export declare const MessagePlacementMoveStateSchema: z.ZodEnum<["pending", "queued", "processing", "processed"]>;
57
67
  export declare const FlagPushOperationSchema: z.ZodEnum<["add", "remove"]>;
58
68
  export declare const MessageFlagPushStateSchema: z.ZodEnum<["pending", "queued", "processing", "processed"]>;
@@ -914,7 +924,7 @@ export declare const AccountResponseSchema: z.ZodObject<{
914
924
  smtpStartTls: z.ZodBoolean;
915
925
  smtpUsername: z.ZodString;
916
926
  isActive: z.ZodBoolean;
917
- connectionState: z.ZodEnum<["not_authenticated", "authenticated", "selected", "logout", "reauth_required"]>;
927
+ connectionState: z.ZodEnum<["not_authenticated", "authenticated", "selected", "logout", "reauth_required", "credentials_missing"]>;
918
928
  lastConnectedAt: z.ZodOptional<z.ZodNumber>;
919
929
  lastSyncAt: z.ZodOptional<z.ZodNumber>;
920
930
  lastError: z.ZodOptional<z.ZodString>;
@@ -984,7 +994,7 @@ export declare const AccountResponseSchema: z.ZodObject<{
984
994
  smtpStartTls: boolean;
985
995
  smtpUsername: string;
986
996
  isActive: boolean;
987
- connectionState: "not_authenticated" | "authenticated" | "selected" | "logout" | "reauth_required";
997
+ connectionState: "not_authenticated" | "authenticated" | "selected" | "logout" | "reauth_required" | "credentials_missing";
988
998
  folderAppointments: {
989
999
  role: "Inbox" | "Drafts" | "Sent" | "Archive" | "Junk" | "Trash" | "All" | "Flagged";
990
1000
  source: "Flagged" | "Appointed" | "Reserved" | "Proposed" | "Stale" | "None";
@@ -1028,7 +1038,7 @@ export declare const AccountResponseSchema: z.ZodObject<{
1028
1038
  smtpStartTls: boolean;
1029
1039
  smtpUsername: string;
1030
1040
  isActive: boolean;
1031
- connectionState: "not_authenticated" | "authenticated" | "selected" | "logout" | "reauth_required";
1041
+ connectionState: "not_authenticated" | "authenticated" | "selected" | "logout" | "reauth_required" | "credentials_missing";
1032
1042
  folderAppointments: {
1033
1043
  role: "Inbox" | "Drafts" | "Sent" | "Archive" | "Junk" | "Trash" | "All" | "Flagged";
1034
1044
  source: "Flagged" | "Appointed" | "Reserved" | "Proposed" | "Stale" | "None";
@@ -1054,6 +1064,16 @@ export declare const AccountResponseSchema: z.ZodObject<{
1054
1064
  signatureHtml?: string | undefined;
1055
1065
  composeLanguages?: string[] | undefined;
1056
1066
  }>;
1067
+ export declare const PendingConfigImportSchema: z.ZodObject<{
1068
+ importId: z.ZodString;
1069
+ folderPaths: z.ZodArray<z.ZodString, "many">;
1070
+ }, "strip", z.ZodTypeAny, {
1071
+ importId: string;
1072
+ folderPaths: string[];
1073
+ }, {
1074
+ importId: string;
1075
+ folderPaths: string[];
1076
+ }>;
1057
1077
  export declare const ConfigDescriptionResponseSchema: z.ZodObject<{
1058
1078
  accountConfig: z.ZodObject<{
1059
1079
  accountConfigId: z.ZodString;
@@ -1100,7 +1120,7 @@ export declare const ConfigDescriptionResponseSchema: z.ZodObject<{
1100
1120
  smtpStartTls: z.ZodBoolean;
1101
1121
  smtpUsername: z.ZodString;
1102
1122
  isActive: z.ZodBoolean;
1103
- connectionState: z.ZodEnum<["not_authenticated", "authenticated", "selected", "logout", "reauth_required"]>;
1123
+ connectionState: z.ZodEnum<["not_authenticated", "authenticated", "selected", "logout", "reauth_required", "credentials_missing"]>;
1104
1124
  lastConnectedAt: z.ZodOptional<z.ZodNumber>;
1105
1125
  lastSyncAt: z.ZodOptional<z.ZodNumber>;
1106
1126
  lastError: z.ZodOptional<z.ZodString>;
@@ -1170,7 +1190,7 @@ export declare const ConfigDescriptionResponseSchema: z.ZodObject<{
1170
1190
  smtpStartTls: boolean;
1171
1191
  smtpUsername: string;
1172
1192
  isActive: boolean;
1173
- connectionState: "not_authenticated" | "authenticated" | "selected" | "logout" | "reauth_required";
1193
+ connectionState: "not_authenticated" | "authenticated" | "selected" | "logout" | "reauth_required" | "credentials_missing";
1174
1194
  folderAppointments: {
1175
1195
  role: "Inbox" | "Drafts" | "Sent" | "Archive" | "Junk" | "Trash" | "All" | "Flagged";
1176
1196
  source: "Flagged" | "Appointed" | "Reserved" | "Proposed" | "Stale" | "None";
@@ -1214,7 +1234,7 @@ export declare const ConfigDescriptionResponseSchema: z.ZodObject<{
1214
1234
  smtpStartTls: boolean;
1215
1235
  smtpUsername: string;
1216
1236
  isActive: boolean;
1217
- connectionState: "not_authenticated" | "authenticated" | "selected" | "logout" | "reauth_required";
1237
+ connectionState: "not_authenticated" | "authenticated" | "selected" | "logout" | "reauth_required" | "credentials_missing";
1218
1238
  folderAppointments: {
1219
1239
  role: "Inbox" | "Drafts" | "Sent" | "Archive" | "Junk" | "Trash" | "All" | "Flagged";
1220
1240
  source: "Flagged" | "Appointed" | "Reserved" | "Proposed" | "Stale" | "None";
@@ -1240,6 +1260,16 @@ export declare const ConfigDescriptionResponseSchema: z.ZodObject<{
1240
1260
  signatureHtml?: string | undefined;
1241
1261
  composeLanguages?: string[] | undefined;
1242
1262
  }>, "many">;
1263
+ pendingImport: z.ZodOptional<z.ZodObject<{
1264
+ importId: z.ZodString;
1265
+ folderPaths: z.ZodArray<z.ZodString, "many">;
1266
+ }, "strip", z.ZodTypeAny, {
1267
+ importId: string;
1268
+ folderPaths: string[];
1269
+ }, {
1270
+ importId: string;
1271
+ folderPaths: string[];
1272
+ }>>;
1243
1273
  }, "strip", z.ZodTypeAny, {
1244
1274
  accountConfig: {
1245
1275
  accountConfigId: string;
@@ -1270,7 +1300,7 @@ export declare const ConfigDescriptionResponseSchema: z.ZodObject<{
1270
1300
  smtpStartTls: boolean;
1271
1301
  smtpUsername: string;
1272
1302
  isActive: boolean;
1273
- connectionState: "not_authenticated" | "authenticated" | "selected" | "logout" | "reauth_required";
1303
+ connectionState: "not_authenticated" | "authenticated" | "selected" | "logout" | "reauth_required" | "credentials_missing";
1274
1304
  folderAppointments: {
1275
1305
  role: "Inbox" | "Drafts" | "Sent" | "Archive" | "Junk" | "Trash" | "All" | "Flagged";
1276
1306
  source: "Flagged" | "Appointed" | "Reserved" | "Proposed" | "Stale" | "None";
@@ -1296,6 +1326,10 @@ export declare const ConfigDescriptionResponseSchema: z.ZodObject<{
1296
1326
  signatureHtml?: string | undefined;
1297
1327
  composeLanguages?: string[] | undefined;
1298
1328
  }[];
1329
+ pendingImport?: {
1330
+ importId: string;
1331
+ folderPaths: string[];
1332
+ } | undefined;
1299
1333
  }, {
1300
1334
  accountConfig: {
1301
1335
  accountConfigId: string;
@@ -1326,7 +1360,7 @@ export declare const ConfigDescriptionResponseSchema: z.ZodObject<{
1326
1360
  smtpStartTls: boolean;
1327
1361
  smtpUsername: string;
1328
1362
  isActive: boolean;
1329
- connectionState: "not_authenticated" | "authenticated" | "selected" | "logout" | "reauth_required";
1363
+ connectionState: "not_authenticated" | "authenticated" | "selected" | "logout" | "reauth_required" | "credentials_missing";
1330
1364
  folderAppointments: {
1331
1365
  role: "Inbox" | "Drafts" | "Sent" | "Archive" | "Junk" | "Trash" | "All" | "Flagged";
1332
1366
  source: "Flagged" | "Appointed" | "Reserved" | "Proposed" | "Stale" | "None";
@@ -1352,6 +1386,10 @@ export declare const ConfigDescriptionResponseSchema: z.ZodObject<{
1352
1386
  signatureHtml?: string | undefined;
1353
1387
  composeLanguages?: string[] | undefined;
1354
1388
  }[];
1389
+ pendingImport?: {
1390
+ importId: string;
1391
+ folderPaths: string[];
1392
+ } | undefined;
1355
1393
  }>;
1356
1394
  export declare const AccountConfigSchema: z.ZodObject<{
1357
1395
  accountConfigId: z.ZodString;
@@ -1402,7 +1440,7 @@ export declare const AccountSchema: z.ZodObject<{
1402
1440
  smtpUsername: z.ZodString;
1403
1441
  smtpPasswordHash: z.ZodOptional<z.ZodString>;
1404
1442
  isActive: z.ZodBoolean;
1405
- connectionState: z.ZodEnum<["not_authenticated", "authenticated", "selected", "logout", "reauth_required"]>;
1443
+ connectionState: z.ZodEnum<["not_authenticated", "authenticated", "selected", "logout", "reauth_required", "credentials_missing"]>;
1406
1444
  lastConnectedAt: z.ZodOptional<z.ZodNumber>;
1407
1445
  lastSyncAt: z.ZodOptional<z.ZodNumber>;
1408
1446
  lastError: z.ZodOptional<z.ZodString>;
@@ -1431,7 +1469,7 @@ export declare const AccountSchema: z.ZodObject<{
1431
1469
  smtpStartTls: boolean;
1432
1470
  smtpUsername: string;
1433
1471
  isActive: boolean;
1434
- connectionState: "not_authenticated" | "authenticated" | "selected" | "logout" | "reauth_required";
1472
+ connectionState: "not_authenticated" | "authenticated" | "selected" | "logout" | "reauth_required" | "credentials_missing";
1435
1473
  deletedAt?: number | undefined;
1436
1474
  lastConnectedAt?: number | undefined;
1437
1475
  lastSyncAt?: number | undefined;
@@ -1462,7 +1500,7 @@ export declare const AccountSchema: z.ZodObject<{
1462
1500
  smtpStartTls: boolean;
1463
1501
  smtpUsername: string;
1464
1502
  isActive: boolean;
1465
- connectionState: "not_authenticated" | "authenticated" | "selected" | "logout" | "reauth_required";
1503
+ connectionState: "not_authenticated" | "authenticated" | "selected" | "logout" | "reauth_required" | "credentials_missing";
1466
1504
  deletedAt?: number | undefined;
1467
1505
  lastConnectedAt?: number | undefined;
1468
1506
  lastSyncAt?: number | undefined;
@@ -1501,6 +1539,144 @@ export declare const ConfigExportResponseSchema: z.ZodObject<{
1501
1539
  schemaVersion: number;
1502
1540
  document: Record<string, unknown>;
1503
1541
  }>;
1542
+ export declare const ImportConfigInputSchema: z.ZodObject<{
1543
+ mode: z.ZodOptional<z.ZodEnum<["validate", "apply"]>>;
1544
+ onExisting: z.ZodOptional<z.ZodEnum<["abort", "merge"]>>;
1545
+ document: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1546
+ }, "strip", z.ZodTypeAny, {
1547
+ document: Record<string, unknown>;
1548
+ mode?: "validate" | "apply" | undefined;
1549
+ onExisting?: "abort" | "merge" | undefined;
1550
+ }, {
1551
+ document: Record<string, unknown>;
1552
+ mode?: "validate" | "apply" | undefined;
1553
+ onExisting?: "abort" | "merge" | undefined;
1554
+ }>;
1555
+ export declare const ConfigImportItemReportSchema: z.ZodObject<{
1556
+ section: z.ZodString;
1557
+ key: z.ZodString;
1558
+ verdict: z.ZodString;
1559
+ reason: z.ZodOptional<z.ZodString>;
1560
+ }, "strip", z.ZodTypeAny, {
1561
+ section: string;
1562
+ key: string;
1563
+ verdict: string;
1564
+ reason?: string | undefined;
1565
+ }, {
1566
+ section: string;
1567
+ key: string;
1568
+ verdict: string;
1569
+ reason?: string | undefined;
1570
+ }>;
1571
+ export declare const ConfigImportReportSchema: z.ZodObject<{
1572
+ importId: z.ZodOptional<z.ZodString>;
1573
+ valid: z.ZodBoolean;
1574
+ schemaVersion: z.ZodNumber;
1575
+ applied: z.ZodBoolean;
1576
+ items: z.ZodArray<z.ZodObject<{
1577
+ section: z.ZodString;
1578
+ key: z.ZodString;
1579
+ verdict: z.ZodString;
1580
+ reason: z.ZodOptional<z.ZodString>;
1581
+ }, "strip", z.ZodTypeAny, {
1582
+ section: string;
1583
+ key: string;
1584
+ verdict: string;
1585
+ reason?: string | undefined;
1586
+ }, {
1587
+ section: string;
1588
+ key: string;
1589
+ verdict: string;
1590
+ reason?: string | undefined;
1591
+ }>, "many">;
1592
+ errors: z.ZodArray<z.ZodObject<{
1593
+ code: z.ZodString;
1594
+ message: z.ZodString;
1595
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1596
+ }, "strip", z.ZodTypeAny, {
1597
+ code: string;
1598
+ message: string;
1599
+ details?: Record<string, string> | undefined;
1600
+ }, {
1601
+ code: string;
1602
+ message: string;
1603
+ details?: Record<string, string> | undefined;
1604
+ }>, "many">;
1605
+ warnings: z.ZodArray<z.ZodObject<{
1606
+ code: z.ZodString;
1607
+ message: z.ZodString;
1608
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1609
+ }, "strip", z.ZodTypeAny, {
1610
+ code: string;
1611
+ message: string;
1612
+ details?: Record<string, string> | undefined;
1613
+ }, {
1614
+ code: string;
1615
+ message: string;
1616
+ details?: Record<string, string> | undefined;
1617
+ }>, "many">;
1618
+ accountsNeedingCredentials: z.ZodArray<z.ZodString, "many">;
1619
+ }, "strip", z.ZodTypeAny, {
1620
+ valid: boolean;
1621
+ schemaVersion: number;
1622
+ applied: boolean;
1623
+ items: {
1624
+ section: string;
1625
+ key: string;
1626
+ verdict: string;
1627
+ reason?: string | undefined;
1628
+ }[];
1629
+ errors: {
1630
+ code: string;
1631
+ message: string;
1632
+ details?: Record<string, string> | undefined;
1633
+ }[];
1634
+ warnings: {
1635
+ code: string;
1636
+ message: string;
1637
+ details?: Record<string, string> | undefined;
1638
+ }[];
1639
+ accountsNeedingCredentials: string[];
1640
+ importId?: string | undefined;
1641
+ }, {
1642
+ valid: boolean;
1643
+ schemaVersion: number;
1644
+ applied: boolean;
1645
+ items: {
1646
+ section: string;
1647
+ key: string;
1648
+ verdict: string;
1649
+ reason?: string | undefined;
1650
+ }[];
1651
+ errors: {
1652
+ code: string;
1653
+ message: string;
1654
+ details?: Record<string, string> | undefined;
1655
+ }[];
1656
+ warnings: {
1657
+ code: string;
1658
+ message: string;
1659
+ details?: Record<string, string> | undefined;
1660
+ }[];
1661
+ accountsNeedingCredentials: string[];
1662
+ importId?: string | undefined;
1663
+ }>;
1664
+ export declare const ConfigImportConflictSchema: z.ZodObject<{
1665
+ statusCode: z.ZodLiteral<409>;
1666
+ code: z.ZodString;
1667
+ message: z.ZodString;
1668
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1669
+ }, "strip", z.ZodTypeAny, {
1670
+ code: string;
1671
+ message: string;
1672
+ statusCode: 409;
1673
+ details?: Record<string, string> | undefined;
1674
+ }, {
1675
+ code: string;
1676
+ message: string;
1677
+ statusCode: 409;
1678
+ details?: Record<string, string> | undefined;
1679
+ }>;
1504
1680
  export declare const SystemUpdateCheckSchema: z.ZodObject<{
1505
1681
  status: z.ZodEnum<["ok", "failed", "disabled"]>;
1506
1682
  lastCheckedAt: z.ZodOptional<z.ZodString>;
@@ -13751,6 +13927,78 @@ export declare const EnvelopeAddressSchema: z.ZodObject<{
13751
13927
  envelopeAddressId: string;
13752
13928
  displayName?: string | undefined;
13753
13929
  }>;
13930
+ export declare const ConfigImportUnresolvedRefSchema: z.ZodObject<{
13931
+ kind: z.ZodEnum<["FolderRole", "MailboxOverride", "FilterAction"]>;
13932
+ accountId: z.ZodString;
13933
+ folderPath: z.ZodString;
13934
+ target: z.ZodString;
13935
+ }, "strip", z.ZodTypeAny, {
13936
+ accountId: string;
13937
+ kind: "FolderRole" | "MailboxOverride" | "FilterAction";
13938
+ folderPath: string;
13939
+ target: string;
13940
+ }, {
13941
+ accountId: string;
13942
+ kind: "FolderRole" | "MailboxOverride" | "FilterAction";
13943
+ folderPath: string;
13944
+ target: string;
13945
+ }>;
13946
+ export declare const ConfigImportSchema: z.ZodObject<{
13947
+ importId: z.ZodString;
13948
+ accountConfigId: z.ZodString;
13949
+ schemaVersion: z.ZodNumber;
13950
+ state: z.ZodEnum<["Pending", "Complete"]>;
13951
+ document: z.ZodRecord<z.ZodString, z.ZodUnknown>;
13952
+ unresolvedRefs: z.ZodArray<z.ZodObject<{
13953
+ kind: z.ZodEnum<["FolderRole", "MailboxOverride", "FilterAction"]>;
13954
+ accountId: z.ZodString;
13955
+ folderPath: z.ZodString;
13956
+ target: z.ZodString;
13957
+ }, "strip", z.ZodTypeAny, {
13958
+ accountId: string;
13959
+ kind: "FolderRole" | "MailboxOverride" | "FilterAction";
13960
+ folderPath: string;
13961
+ target: string;
13962
+ }, {
13963
+ accountId: string;
13964
+ kind: "FolderRole" | "MailboxOverride" | "FilterAction";
13965
+ folderPath: string;
13966
+ target: string;
13967
+ }>, "many">;
13968
+ createdAt: z.ZodNumber;
13969
+ completedAt: z.ZodNumber;
13970
+ updatedAt: z.ZodNumber;
13971
+ }, "strip", z.ZodTypeAny, {
13972
+ accountConfigId: string;
13973
+ state: "Pending" | "Complete";
13974
+ createdAt: number;
13975
+ updatedAt: number;
13976
+ importId: string;
13977
+ schemaVersion: number;
13978
+ document: Record<string, unknown>;
13979
+ unresolvedRefs: {
13980
+ accountId: string;
13981
+ kind: "FolderRole" | "MailboxOverride" | "FilterAction";
13982
+ folderPath: string;
13983
+ target: string;
13984
+ }[];
13985
+ completedAt: number;
13986
+ }, {
13987
+ accountConfigId: string;
13988
+ state: "Pending" | "Complete";
13989
+ createdAt: number;
13990
+ updatedAt: number;
13991
+ importId: string;
13992
+ schemaVersion: number;
13993
+ document: Record<string, unknown>;
13994
+ unresolvedRefs: {
13995
+ accountId: string;
13996
+ kind: "FolderRole" | "MailboxOverride" | "FilterAction";
13997
+ folderPath: string;
13998
+ target: string;
13999
+ }[];
14000
+ completedAt: number;
14001
+ }>;
13754
14002
  export declare const AccountSettingValueSchema: z.ZodObject<{
13755
14003
  kind: z.ZodString;
13756
14004
  }, "strip", z.ZodTypeAny, {
@@ -14345,6 +14593,132 @@ export declare const BodyPartContentSchema: z.ZodObject<{
14345
14593
  content: string;
14346
14594
  contentLength: number;
14347
14595
  }>;
14596
+ export declare const CalendarCollectionSchema: z.ZodObject<{
14597
+ calendarId: z.ZodString;
14598
+ accountConfigId: z.ZodString;
14599
+ urlSegment: z.ZodString;
14600
+ displayName: z.ZodString;
14601
+ color: z.ZodEnum<["Cal1", "Cal2", "Cal3", "Cal4", "Cal5", "Cal6"]>;
14602
+ componentSet: z.ZodEnum<["VeventOnly"]>;
14603
+ source: z.ZodEnum<["Default", "UserCreated", "MailDerived"]>;
14604
+ timezone: z.ZodString;
14605
+ syncSequence: z.ZodNumber;
14606
+ createdAt: z.ZodNumber;
14607
+ updatedAt: z.ZodNumber;
14608
+ }, "strip", z.ZodTypeAny, {
14609
+ displayName: string;
14610
+ accountConfigId: string;
14611
+ createdAt: number;
14612
+ updatedAt: number;
14613
+ source: "Default" | "UserCreated" | "MailDerived";
14614
+ color: "Cal1" | "Cal2" | "Cal3" | "Cal4" | "Cal5" | "Cal6";
14615
+ calendarId: string;
14616
+ urlSegment: string;
14617
+ componentSet: "VeventOnly";
14618
+ timezone: string;
14619
+ syncSequence: number;
14620
+ }, {
14621
+ displayName: string;
14622
+ accountConfigId: string;
14623
+ createdAt: number;
14624
+ updatedAt: number;
14625
+ source: "Default" | "UserCreated" | "MailDerived";
14626
+ color: "Cal1" | "Cal2" | "Cal3" | "Cal4" | "Cal5" | "Cal6";
14627
+ calendarId: string;
14628
+ urlSegment: string;
14629
+ componentSet: "VeventOnly";
14630
+ timezone: string;
14631
+ syncSequence: number;
14632
+ }>;
14633
+ export declare const CalendarObjectSchema: z.ZodObject<{
14634
+ calendarObjectId: z.ZodString;
14635
+ calendarId: z.ZodString;
14636
+ resourceName: z.ZodString;
14637
+ icalUid: z.ZodString;
14638
+ icalData: z.ZodString;
14639
+ etag: z.ZodString;
14640
+ sequence: z.ZodNumber;
14641
+ syncSequence: z.ZodNumber;
14642
+ summary: z.ZodString;
14643
+ dtStart: z.ZodString;
14644
+ dtEnd: z.ZodString;
14645
+ allDay: z.ZodBoolean;
14646
+ zoneCertainty: z.ZodEnum<["Local", "Explicit", "Ambiguous"]>;
14647
+ status: z.ZodEnum<["Confirmed", "Tentative", "Cancelled"]>;
14648
+ transparency: z.ZodEnum<["Opaque", "Transparent"]>;
14649
+ hasRecurrence: z.ZodBoolean;
14650
+ expandedThrough: z.ZodString;
14651
+ createdAt: z.ZodNumber;
14652
+ updatedAt: z.ZodNumber;
14653
+ }, "strip", z.ZodTypeAny, {
14654
+ status: "Confirmed" | "Tentative" | "Cancelled";
14655
+ createdAt: number;
14656
+ updatedAt: number;
14657
+ summary: string;
14658
+ calendarId: string;
14659
+ syncSequence: number;
14660
+ calendarObjectId: string;
14661
+ resourceName: string;
14662
+ icalUid: string;
14663
+ icalData: string;
14664
+ etag: string;
14665
+ sequence: number;
14666
+ dtStart: string;
14667
+ dtEnd: string;
14668
+ allDay: boolean;
14669
+ zoneCertainty: "Local" | "Explicit" | "Ambiguous";
14670
+ transparency: "Opaque" | "Transparent";
14671
+ hasRecurrence: boolean;
14672
+ expandedThrough: string;
14673
+ }, {
14674
+ status: "Confirmed" | "Tentative" | "Cancelled";
14675
+ createdAt: number;
14676
+ updatedAt: number;
14677
+ summary: string;
14678
+ calendarId: string;
14679
+ syncSequence: number;
14680
+ calendarObjectId: string;
14681
+ resourceName: string;
14682
+ icalUid: string;
14683
+ icalData: string;
14684
+ etag: string;
14685
+ sequence: number;
14686
+ dtStart: string;
14687
+ dtEnd: string;
14688
+ allDay: boolean;
14689
+ zoneCertainty: "Local" | "Explicit" | "Ambiguous";
14690
+ transparency: "Opaque" | "Transparent";
14691
+ hasRecurrence: boolean;
14692
+ expandedThrough: string;
14693
+ }>;
14694
+ export declare const CalendarEventIndexSchema: z.ZodObject<{
14695
+ calendarId: z.ZodString;
14696
+ calendarObjectId: z.ZodString;
14697
+ recurrenceId: z.ZodString;
14698
+ startAt: z.ZodString;
14699
+ endAt: z.ZodString;
14700
+ allDay: z.ZodBoolean;
14701
+ createdAt: z.ZodNumber;
14702
+ updatedAt: z.ZodNumber;
14703
+ }, "strip", z.ZodTypeAny, {
14704
+ createdAt: number;
14705
+ updatedAt: number;
14706
+ calendarId: string;
14707
+ calendarObjectId: string;
14708
+ allDay: boolean;
14709
+ recurrenceId: string;
14710
+ startAt: string;
14711
+ endAt: string;
14712
+ }, {
14713
+ createdAt: number;
14714
+ updatedAt: number;
14715
+ calendarId: string;
14716
+ calendarObjectId: string;
14717
+ allDay: boolean;
14718
+ recurrenceId: string;
14719
+ startAt: string;
14720
+ endAt: string;
14721
+ }>;
14348
14722
  export declare const MessageLabelSchema: z.ZodObject<{
14349
14723
  messageLabelId: z.ZodString;
14350
14724
  messageId: z.ZodString;