@remit/api-zod-schemas 0.0.101 → 0.0.103

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/schemas.d.ts CHANGED
@@ -108,6 +108,29 @@ export declare const ClassificationDefaultSourceSchema: z.ZodEnum<{
108
108
  Config: "Config";
109
109
  Operator: "Operator";
110
110
  }>;
111
+ export declare const ClassificationPresetGroupSchema: z.ZodEnum<{
112
+ Local: "Local";
113
+ Hosted: "Hosted";
114
+ Custom: "Custom";
115
+ }>;
116
+ export declare const ClassificationAdapterShapeSchema: z.ZodEnum<{
117
+ DecisionApi: "DecisionApi";
118
+ ChatJsonSchema: "ChatJsonSchema";
119
+ JinaClassify: "JinaClassify";
120
+ }>;
121
+ export declare const ClassificationValueSourceSchema: z.ZodEnum<{
122
+ Saved: "Saved";
123
+ Deployment: "Deployment";
124
+ Default: "Default";
125
+ }>;
126
+ export declare const ClassificationUnrunnableReasonSchema: z.ZodEnum<{
127
+ NoBaseUrl: "NoBaseUrl";
128
+ NoApiKey: "NoApiKey";
129
+ }>;
130
+ export declare const SpamLabelPlacementSchema: z.ZodEnum<{
131
+ MoveToSpam: "MoveToSpam";
132
+ WarnOnly: "WarnOnly";
133
+ }>;
111
134
  export declare const PersonStatusSchema: z.ZodEnum<{
112
135
  Active: "Active";
113
136
  Disabled: "Disabled";
@@ -306,29 +329,6 @@ export declare const CalendarInviteAnswerSchema: z.ZodEnum<{
306
329
  Accepted: "Accepted";
307
330
  Declined: "Declined";
308
331
  }>;
309
- export declare const ClassificationPresetGroupSchema: z.ZodEnum<{
310
- Local: "Local";
311
- Hosted: "Hosted";
312
- Custom: "Custom";
313
- }>;
314
- export declare const ClassificationAdapterShapeSchema: z.ZodEnum<{
315
- DecisionApi: "DecisionApi";
316
- ChatJsonSchema: "ChatJsonSchema";
317
- JinaClassify: "JinaClassify";
318
- }>;
319
- export declare const ClassificationValueSourceSchema: z.ZodEnum<{
320
- Default: "Default";
321
- Saved: "Saved";
322
- Deployment: "Deployment";
323
- }>;
324
- export declare const ClassificationUnrunnableReasonSchema: z.ZodEnum<{
325
- NoBaseUrl: "NoBaseUrl";
326
- NoApiKey: "NoApiKey";
327
- }>;
328
- export declare const SpamLabelPlacementSchema: z.ZodEnum<{
329
- MoveToSpam: "MoveToSpam";
330
- WarnOnly: "WarnOnly";
331
- }>;
332
332
  export declare const ClassificationFailureKindSchema: z.ZodEnum<{
333
333
  Unauthorized: "Unauthorized";
334
334
  ModelNotFound: "ModelNotFound";
@@ -1549,581 +1549,774 @@ export declare const PutClassificationDefaultInputSchema: z.ZodObject<{
1549
1549
  enabled: z.ZodBoolean;
1550
1550
  dailyLimit: z.ZodNumber;
1551
1551
  }, z.core.$strip>;
1552
- export declare const PersonSchema: z.ZodObject<{
1553
- userId: z.ZodString;
1554
- email: z.ZodString;
1555
- createdAt: z.ZodNumber;
1556
- lastSignInAt: z.ZodNumber;
1557
- sessionCount: z.ZodNumber;
1558
- status: z.ZodEnum<{
1559
- Active: "Active";
1560
- Disabled: "Disabled";
1561
- }>;
1562
- isCaller: z.ZodBoolean;
1563
- }, z.core.$strip>;
1564
- export declare const PeopleListResponseSchema: z.ZodObject<{
1565
- people: z.ZodArray<z.ZodObject<{
1566
- userId: z.ZodString;
1567
- email: z.ZodString;
1568
- createdAt: z.ZodNumber;
1569
- lastSignInAt: z.ZodNumber;
1570
- sessionCount: z.ZodNumber;
1571
- status: z.ZodEnum<{
1572
- Active: "Active";
1573
- Disabled: "Disabled";
1574
- }>;
1575
- isCaller: z.ZodBoolean;
1576
- }, z.core.$strip>>;
1552
+ export declare const ClassificationPricedSchema: z.ZodObject<{
1553
+ state: z.ZodLiteral<"Priced">;
1554
+ currency: z.ZodLiteral<"USD">;
1555
+ perMillionInputTokens: z.ZodNumber;
1577
1556
  }, z.core.$strip>;
1578
- export declare const PeopleForbiddenErrorSchema: z.ZodObject<{
1579
- statusCode: z.ZodLiteral<403>;
1580
- message: z.ZodString;
1581
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1582
- code: z.ZodUnion<readonly [z.ZodLiteral<"sign_in_disabled">, z.ZodLiteral<"caller_disabled">, z.ZodLiteral<"foreign_origin">, z.ZodLiteral<"step_up_required">, z.ZodLiteral<"wrong_password">]>;
1557
+ export declare const ClassificationNoPriceSchema: z.ZodObject<{
1558
+ state: z.ZodLiteral<"NoPrice">;
1583
1559
  }, z.core.$strip>;
1584
- export declare const StepUpInputSchema: z.ZodObject<{
1585
- password: z.ZodString;
1586
- action: z.ZodEnum<{
1587
- SignOut: "SignOut";
1588
- Disable: "Disable";
1589
- Enable: "Enable";
1590
- ResetPassword: "ResetPassword";
1560
+ export declare const ClassificationPresetSchema: z.ZodObject<{
1561
+ presetId: z.ZodEnum<{
1562
+ Jev: "Jev";
1563
+ Jina: "Jina";
1564
+ Mistral: "Mistral";
1565
+ Gemini: "Gemini";
1566
+ OpenAiCompatible: "OpenAiCompatible";
1567
+ Local: "Local";
1591
1568
  }>;
1592
- userId: z.ZodString;
1593
- }, z.core.$strip>;
1594
- export declare const StepUpResponseSchema: z.ZodObject<{
1595
- stepUpToken: z.ZodString;
1596
- expiresAt: z.ZodNumber;
1597
- }, z.core.$strip>;
1598
- export declare const StepUpLockedErrorSchema: z.ZodObject<{
1599
- statusCode: z.ZodLiteral<429>;
1600
- message: z.ZodString;
1601
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1602
- code: z.ZodLiteral<"step_up_locked">;
1603
- }, z.core.$strip>;
1604
- export declare const SignOutPersonInputSchema: z.ZodObject<{
1605
- stepUpToken: z.ZodString;
1606
- }, z.core.$strip>;
1607
- export declare const UpdatePersonInputSchema: z.ZodObject<{
1608
- status: z.ZodEnum<{
1609
- Active: "Active";
1610
- Disabled: "Disabled";
1569
+ label: z.ZodString;
1570
+ group: z.ZodEnum<{
1571
+ Local: "Local";
1572
+ Hosted: "Hosted";
1573
+ Custom: "Custom";
1611
1574
  }>;
1612
- stepUpToken: z.ZodString;
1613
- }, z.core.$strip>;
1614
- export declare const CannotDisableSelfErrorSchema: z.ZodObject<{
1615
- statusCode: z.ZodLiteral<409>;
1616
- message: z.ZodString;
1617
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1618
- code: z.ZodLiteral<"cannot_disable_self">;
1619
- }, z.core.$strip>;
1620
- export declare const CreatePasswordResetInputSchema: z.ZodObject<{
1621
- stepUpToken: z.ZodString;
1575
+ adapterShape: z.ZodEnum<{
1576
+ DecisionApi: "DecisionApi";
1577
+ ChatJsonSchema: "ChatJsonSchema";
1578
+ JinaClassify: "JinaClassify";
1579
+ }>;
1580
+ defaultBaseUrl: z.ZodOptional<z.ZodString>;
1581
+ defaultModel: z.ZodString;
1582
+ needsKey: z.ZodBoolean;
1583
+ price: z.ZodUnion<readonly [z.ZodObject<{
1584
+ state: z.ZodLiteral<"Priced">;
1585
+ currency: z.ZodLiteral<"USD">;
1586
+ perMillionInputTokens: z.ZodNumber;
1587
+ }, z.core.$strip>, z.ZodObject<{
1588
+ state: z.ZodLiteral<"NoPrice">;
1589
+ }, z.core.$strip>]>;
1622
1590
  }, z.core.$strip>;
1623
- export declare const PasswordResetResponseSchema: z.ZodObject<{
1624
- person: z.ZodObject<{
1625
- userId: z.ZodString;
1626
- email: z.ZodString;
1627
- createdAt: z.ZodNumber;
1628
- lastSignInAt: z.ZodNumber;
1629
- sessionCount: z.ZodNumber;
1630
- status: z.ZodEnum<{
1631
- Active: "Active";
1632
- Disabled: "Disabled";
1633
- }>;
1634
- isCaller: z.ZodBoolean;
1635
- }, z.core.$strip>;
1636
- resetUrl: z.ZodString;
1637
- expiresAt: z.ZodNumber;
1591
+ export declare const ClassificationNotConfiguredSchema: z.ZodObject<{
1592
+ state: z.ZodLiteral<"NotConfigured">;
1638
1593
  }, z.core.$strip>;
1639
- export declare const MailboxSchema: z.ZodObject<{
1640
- mailboxId: z.ZodString;
1641
- accountId: z.ZodString;
1642
- namespaceType: z.ZodEnum<{
1643
- personal: "personal";
1644
- other_users: "other_users";
1645
- shared: "shared";
1594
+ export declare const ClassificationSourcesSchema: z.ZodObject<{
1595
+ presetId: z.ZodEnum<{
1596
+ Saved: "Saved";
1597
+ Deployment: "Deployment";
1598
+ Default: "Default";
1646
1599
  }>;
1647
- namespacePrefix: z.ZodString;
1648
- hierarchyDelimiter: z.ZodString;
1649
- fullPath: z.ZodString;
1650
- uidValidity: z.ZodNumber;
1651
- uidNext: z.ZodNumber;
1652
- highestModseq: z.ZodString;
1653
- messageCount: z.ZodNumber;
1654
- unseenCount: z.ZodNumber;
1655
- deletedCount: z.ZodNumber;
1656
- totalSize: z.ZodNumber;
1657
- lastSyncUid: z.ZodNumber;
1658
- highWaterMarkUid: z.ZodNumber;
1659
- lastMessageSyncAt: z.ZodNumber;
1660
- initialSyncCompletedAt: z.ZodOptional<z.ZodNumber>;
1661
- parentMailboxId: z.ZodString;
1662
- syncStatus: z.ZodEnum<{
1663
- deleting: "deleting";
1664
- failed: "failed";
1665
- synced: "synced";
1666
- pending: "pending";
1600
+ model: z.ZodEnum<{
1601
+ Saved: "Saved";
1602
+ Deployment: "Deployment";
1603
+ Default: "Default";
1667
1604
  }>;
1668
- pendingPath: z.ZodOptional<z.ZodString>;
1669
- syncFailureReason: z.ZodString;
1670
- statusRefused: z.ZodBoolean;
1671
- cursorState: z.ZodEnum<{
1672
- normal: "normal";
1673
- cursor_invalid: "cursor_invalid";
1674
- rebuilding: "rebuilding";
1605
+ baseUrl: z.ZodEnum<{
1606
+ Saved: "Saved";
1607
+ Deployment: "Deployment";
1608
+ Default: "Default";
1675
1609
  }>;
1676
- specialUse: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1677
- Drafts: "Drafts";
1678
- Sent: "Sent";
1679
- Archive: "Archive";
1680
- Junk: "Junk";
1681
- Trash: "Trash";
1682
- All: "All";
1683
- Flagged: "Flagged";
1684
- Important: "Important";
1685
- }>>>;
1686
- createdAt: z.ZodNumber;
1687
- updatedAt: z.ZodNumber;
1688
- }, z.core.$strip>;
1689
- export declare const MailboxResponseSchema: z.ZodObject<{
1690
- mailboxId: z.ZodString;
1691
- accountId: z.ZodString;
1692
- namespaceType: z.ZodEnum<{
1693
- personal: "personal";
1694
- other_users: "other_users";
1695
- shared: "shared";
1610
+ apiKey: z.ZodEnum<{
1611
+ Saved: "Saved";
1612
+ Deployment: "Deployment";
1613
+ Default: "Default";
1696
1614
  }>;
1697
- namespacePrefix: z.ZodString;
1698
- hierarchyDelimiter: z.ZodString;
1699
- fullPath: z.ZodString;
1700
- messageCount: z.ZodNumber;
1701
- unseenCount: z.ZodNumber;
1702
- deletedCount: z.ZodNumber;
1703
- lastSyncUid: z.ZodNumber;
1704
- highWaterMarkUid: z.ZodNumber;
1705
- lastMessageSyncAt: z.ZodNumber;
1706
- syncStatus: z.ZodEnum<{
1707
- deleting: "deleting";
1708
- failed: "failed";
1709
- synced: "synced";
1710
- pending: "pending";
1615
+ enabled: z.ZodEnum<{
1616
+ Saved: "Saved";
1617
+ Deployment: "Deployment";
1618
+ Default: "Default";
1711
1619
  }>;
1712
- pendingPath: z.ZodOptional<z.ZodString>;
1713
- syncFailureReason: z.ZodString;
1714
- statusRefused: z.ZodBoolean;
1715
- specialUse: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1716
- Drafts: "Drafts";
1717
- Sent: "Sent";
1718
- Archive: "Archive";
1719
- Junk: "Junk";
1720
- Trash: "Trash";
1721
- All: "All";
1722
- Flagged: "Flagged";
1723
- Important: "Important";
1724
- }>>>;
1725
- createdAt: z.ZodNumber;
1726
- updatedAt: z.ZodNumber;
1727
- muted: z.ZodOptional<z.ZodObject<{
1728
- setAt: z.ZodNumber;
1729
- setBy: z.ZodOptional<z.ZodString>;
1730
- expiresAt: z.ZodOptional<z.ZodNumber>;
1731
- reason: z.ZodOptional<z.ZodString>;
1732
- value: z.ZodBoolean;
1733
- }, z.core.$strip>>;
1734
- displayNameOverride: z.ZodOptional<z.ZodString>;
1735
- }, z.core.$strip>;
1736
- export declare const MailboxListResponseSchema: z.ZodObject<{
1737
- continuationToken: z.ZodOptional<z.ZodString>;
1738
- items: z.ZodArray<z.ZodObject<{
1739
- mailboxId: z.ZodString;
1740
- accountId: z.ZodString;
1741
- namespaceType: z.ZodEnum<{
1742
- personal: "personal";
1743
- other_users: "other_users";
1744
- shared: "shared";
1745
- }>;
1746
- namespacePrefix: z.ZodString;
1747
- hierarchyDelimiter: z.ZodString;
1748
- fullPath: z.ZodString;
1749
- messageCount: z.ZodNumber;
1750
- unseenCount: z.ZodNumber;
1751
- deletedCount: z.ZodNumber;
1752
- lastSyncUid: z.ZodNumber;
1753
- highWaterMarkUid: z.ZodNumber;
1754
- lastMessageSyncAt: z.ZodNumber;
1755
- syncStatus: z.ZodEnum<{
1756
- deleting: "deleting";
1757
- failed: "failed";
1758
- synced: "synced";
1759
- pending: "pending";
1760
- }>;
1761
- pendingPath: z.ZodOptional<z.ZodString>;
1762
- syncFailureReason: z.ZodString;
1763
- statusRefused: z.ZodBoolean;
1764
- specialUse: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1765
- Drafts: "Drafts";
1766
- Sent: "Sent";
1767
- Archive: "Archive";
1768
- Junk: "Junk";
1769
- Trash: "Trash";
1770
- All: "All";
1771
- Flagged: "Flagged";
1772
- Important: "Important";
1773
- }>>>;
1774
- createdAt: z.ZodNumber;
1775
- updatedAt: z.ZodNumber;
1776
- muted: z.ZodOptional<z.ZodObject<{
1777
- setAt: z.ZodNumber;
1778
- setBy: z.ZodOptional<z.ZodString>;
1779
- expiresAt: z.ZodOptional<z.ZodNumber>;
1780
- reason: z.ZodOptional<z.ZodString>;
1781
- value: z.ZodBoolean;
1782
- }, z.core.$strip>>;
1783
- displayNameOverride: z.ZodOptional<z.ZodString>;
1784
- }, z.core.$strip>>;
1785
- }, z.core.$strip>;
1786
- export declare const CreateMailboxInputSchema: z.ZodObject<{
1787
- namespaceType: z.ZodEnum<{
1788
- personal: "personal";
1789
- other_users: "other_users";
1790
- shared: "shared";
1620
+ dailyLimit: z.ZodEnum<{
1621
+ Saved: "Saved";
1622
+ Deployment: "Deployment";
1623
+ Default: "Default";
1791
1624
  }>;
1792
- fullPath: z.ZodString;
1793
1625
  }, z.core.$strip>;
1794
- export declare const RenameMailboxInputSchema: z.ZodObject<{
1795
- fullPath: z.ZodOptional<z.ZodString>;
1796
- muted: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1797
- setAt: z.ZodNumber;
1798
- setBy: z.ZodOptional<z.ZodString>;
1799
- expiresAt: z.ZodOptional<z.ZodNumber>;
1800
- reason: z.ZodOptional<z.ZodString>;
1801
- value: z.ZodBoolean;
1802
- }, z.core.$strip>, z.ZodNull]>>;
1803
- displayNameOverride: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
1626
+ export declare const ClassificationCostPricedSchema: z.ZodObject<{
1627
+ state: z.ZodLiteral<"Priced">;
1628
+ currency: z.ZodLiteral<"USD">;
1629
+ amount: z.ZodNumber;
1804
1630
  }, z.core.$strip>;
1805
- export declare const AppointFolderRoleInputSchema: z.ZodObject<{
1806
- mailboxId: z.ZodUnion<readonly [z.ZodString, z.ZodNull]>;
1631
+ export declare const ClassificationUsageSchema: z.ZodObject<{
1632
+ accountId: z.ZodString;
1633
+ calls: z.ZodNumber;
1634
+ dailyLimit: z.ZodNumber;
1635
+ resetsAt: z.ZodString;
1636
+ cost: z.ZodUnion<readonly [z.ZodObject<{
1637
+ state: z.ZodLiteral<"Priced">;
1638
+ currency: z.ZodLiteral<"USD">;
1639
+ amount: z.ZodNumber;
1640
+ }, z.core.$strip>, z.ZodObject<{
1641
+ state: z.ZodLiteral<"NoPrice">;
1642
+ }, z.core.$strip>]>;
1807
1643
  }, z.core.$strip>;
1808
- export declare const FilterClauseSchema: z.ZodObject<{
1809
- field: z.ZodEnum<{
1810
- From: "From";
1811
- Subject: "Subject";
1812
- HasWords: "HasWords";
1813
- ListId: "ListId";
1814
- FromDomain: "FromDomain";
1644
+ export declare const ClassificationConfiguredSchema: z.ZodObject<{
1645
+ state: z.ZodLiteral<"Configured">;
1646
+ presetId: z.ZodEnum<{
1647
+ Jev: "Jev";
1648
+ Jina: "Jina";
1649
+ Mistral: "Mistral";
1650
+ Gemini: "Gemini";
1651
+ OpenAiCompatible: "OpenAiCompatible";
1652
+ Local: "Local";
1815
1653
  }>;
1816
- value: z.ZodString;
1817
- }, z.core.$strip>;
1818
- export declare const FilterRuleV0Schema: z.ZodObject<{
1819
- version: z.ZodLiteral<0>;
1654
+ model: z.ZodString;
1655
+ baseUrl: z.ZodString;
1656
+ enabled: z.ZodBoolean;
1657
+ dailyLimit: z.ZodNumber;
1658
+ sources: z.ZodObject<{
1659
+ presetId: z.ZodEnum<{
1660
+ Saved: "Saved";
1661
+ Deployment: "Deployment";
1662
+ Default: "Default";
1663
+ }>;
1664
+ model: z.ZodEnum<{
1665
+ Saved: "Saved";
1666
+ Deployment: "Deployment";
1667
+ Default: "Default";
1668
+ }>;
1669
+ baseUrl: z.ZodEnum<{
1670
+ Saved: "Saved";
1671
+ Deployment: "Deployment";
1672
+ Default: "Default";
1673
+ }>;
1674
+ apiKey: z.ZodEnum<{
1675
+ Saved: "Saved";
1676
+ Deployment: "Deployment";
1677
+ Default: "Default";
1678
+ }>;
1679
+ enabled: z.ZodEnum<{
1680
+ Saved: "Saved";
1681
+ Deployment: "Deployment";
1682
+ Default: "Default";
1683
+ }>;
1684
+ dailyLimit: z.ZodEnum<{
1685
+ Saved: "Saved";
1686
+ Deployment: "Deployment";
1687
+ Default: "Default";
1688
+ }>;
1689
+ }, z.core.$strip>;
1690
+ usage: z.ZodArray<z.ZodObject<{
1691
+ accountId: z.ZodString;
1692
+ calls: z.ZodNumber;
1693
+ dailyLimit: z.ZodNumber;
1694
+ resetsAt: z.ZodString;
1695
+ cost: z.ZodUnion<readonly [z.ZodObject<{
1696
+ state: z.ZodLiteral<"Priced">;
1697
+ currency: z.ZodLiteral<"USD">;
1698
+ amount: z.ZodNumber;
1699
+ }, z.core.$strip>, z.ZodObject<{
1700
+ state: z.ZodLiteral<"NoPrice">;
1701
+ }, z.core.$strip>]>;
1702
+ }, z.core.$strip>>;
1820
1703
  }, z.core.$strip>;
1821
- export declare const FilterHeaderTestSchema: z.ZodObject<{
1822
- test: z.ZodLiteral<"header">;
1823
- match: z.ZodEnum<{
1824
- Is: "Is";
1825
- Contains: "Contains";
1704
+ export declare const ClassificationUnrunnableSchema: z.ZodObject<{
1705
+ state: z.ZodLiteral<"Unrunnable">;
1706
+ presetId: z.ZodEnum<{
1707
+ Jev: "Jev";
1708
+ Jina: "Jina";
1709
+ Mistral: "Mistral";
1710
+ Gemini: "Gemini";
1711
+ OpenAiCompatible: "OpenAiCompatible";
1712
+ Local: "Local";
1826
1713
  }>;
1827
- header: z.ZodEnum<{
1828
- From: "From";
1829
- Subject: "Subject";
1830
- ListId: "ListId";
1714
+ reason: z.ZodEnum<{
1715
+ NoBaseUrl: "NoBaseUrl";
1716
+ NoApiKey: "NoApiKey";
1831
1717
  }>;
1832
- key: z.ZodString;
1833
1718
  }, z.core.$strip>;
1834
- export declare const FilterAddressTestSchema: z.ZodObject<{
1835
- test: z.ZodLiteral<"address">;
1836
- match: z.ZodEnum<{
1837
- Is: "Is";
1838
- Contains: "Contains";
1839
- }>;
1840
- part: z.ZodEnum<{
1841
- All: "All";
1842
- Localpart: "Localpart";
1843
- Domain: "Domain";
1844
- RegistrableDomain: "RegistrableDomain";
1845
- }>;
1846
- key: z.ZodString;
1719
+ export declare const SpamThresholdsUnsetSchema: z.ZodObject<{
1720
+ state: z.ZodLiteral<"Unset">;
1847
1721
  }, z.core.$strip>;
1848
- export declare const FilterHasWordsTestSchema: z.ZodObject<{
1849
- test: z.ZodLiteral<"hasWords">;
1850
- words: z.ZodArray<z.ZodString>;
1722
+ export declare const SpamThresholdsSetSchema: z.ZodObject<{
1723
+ state: z.ZodLiteral<"Set">;
1724
+ cleanBelow: z.ZodNumber;
1725
+ spamAt: z.ZodNumber;
1851
1726
  }, z.core.$strip>;
1852
- export declare const FilterClassificationTestSchema: z.ZodObject<{
1853
- test: z.ZodLiteral<"classification">;
1854
- label: z.ZodEnum<{
1855
- Spam: "Spam";
1856
- Phishing: "Phishing";
1857
- Priority: "Priority";
1858
- Personal: "Personal";
1859
- Newsletter: "Newsletter";
1860
- Marketing: "Marketing";
1861
- Automated: "Automated";
1862
- Transactional: "Transactional";
1863
- Social: "Social";
1864
- ColdOutreach: "ColdOutreach";
1727
+ export declare const SpamSettingsSchema: z.ZodObject<{
1728
+ thresholds: z.ZodUnion<readonly [z.ZodObject<{
1729
+ state: z.ZodLiteral<"Unset">;
1730
+ }, z.core.$strip>, z.ZodObject<{
1731
+ state: z.ZodLiteral<"Set">;
1732
+ cleanBelow: z.ZodNumber;
1733
+ spamAt: z.ZodNumber;
1734
+ }, z.core.$strip>]>;
1735
+ spamPlacement: z.ZodEnum<{
1736
+ MoveToSpam: "MoveToSpam";
1737
+ WarnOnly: "WarnOnly";
1738
+ }>;
1739
+ phishingPlacement: z.ZodEnum<{
1740
+ MoveToSpam: "MoveToSpam";
1741
+ WarnOnly: "WarnOnly";
1865
1742
  }>;
1866
1743
  }, z.core.$strip>;
1867
- export type FilterAllOfTest = {
1868
- test: "allof";
1869
- tests: Array<FilterAllOfTest | FilterAnyOfTest | FilterNotTest | z.infer<typeof FilterHeaderTestSchema> | z.infer<typeof FilterAddressTestSchema> | z.infer<typeof FilterHasWordsTestSchema> | z.infer<typeof FilterClassificationTestSchema>>;
1870
- };
1871
- export declare const FilterAllOfTestSchema: z.ZodType<FilterAllOfTest>;
1872
- export type FilterAnyOfTest = {
1873
- test: "anyof";
1874
- tests: Array<FilterAllOfTest | FilterAnyOfTest | FilterNotTest | z.infer<typeof FilterHeaderTestSchema> | z.infer<typeof FilterAddressTestSchema> | z.infer<typeof FilterHasWordsTestSchema> | z.infer<typeof FilterClassificationTestSchema>>;
1875
- };
1876
- export declare const FilterAnyOfTestSchema: z.ZodType<FilterAnyOfTest>;
1877
- export type FilterNotTest = {
1878
- test: "not";
1879
- operand: FilterAllOfTest | FilterAnyOfTest | FilterNotTest | z.infer<typeof FilterHeaderTestSchema> | z.infer<typeof FilterAddressTestSchema> | z.infer<typeof FilterHasWordsTestSchema> | z.infer<typeof FilterClassificationTestSchema>;
1880
- };
1881
- export declare const FilterNotTestSchema: z.ZodType<FilterNotTest>;
1882
- export declare const FilterRuleV1Schema: z.ZodObject<{
1883
- version: z.ZodLiteral<1>;
1884
- test: z.ZodUnion<readonly [z.ZodType<FilterAllOfTest, unknown, z.core.$ZodTypeInternals<FilterAllOfTest, unknown>>, z.ZodType<FilterAnyOfTest, unknown, z.core.$ZodTypeInternals<FilterAnyOfTest, unknown>>, z.ZodType<FilterNotTest, unknown, z.core.$ZodTypeInternals<FilterNotTest, unknown>>, z.ZodObject<{
1885
- test: z.ZodLiteral<"header">;
1886
- match: z.ZodEnum<{
1887
- Is: "Is";
1888
- Contains: "Contains";
1889
- }>;
1890
- header: z.ZodEnum<{
1891
- From: "From";
1892
- Subject: "Subject";
1893
- ListId: "ListId";
1744
+ export declare const UserSettingsResponseSchema: z.ZodObject<{
1745
+ defaultInvitationSenderAccountId: z.ZodOptional<z.ZodString>;
1746
+ defaultInvitationSenderChosen: z.ZodBoolean;
1747
+ classificationPresets: z.ZodArray<z.ZodObject<{
1748
+ presetId: z.ZodEnum<{
1749
+ Jev: "Jev";
1750
+ Jina: "Jina";
1751
+ Mistral: "Mistral";
1752
+ Gemini: "Gemini";
1753
+ OpenAiCompatible: "OpenAiCompatible";
1754
+ Local: "Local";
1894
1755
  }>;
1895
- key: z.ZodString;
1896
- }, z.core.$strip>, z.ZodObject<{
1897
- test: z.ZodLiteral<"address">;
1898
- match: z.ZodEnum<{
1899
- Is: "Is";
1900
- Contains: "Contains";
1756
+ label: z.ZodString;
1757
+ group: z.ZodEnum<{
1758
+ Local: "Local";
1759
+ Hosted: "Hosted";
1760
+ Custom: "Custom";
1901
1761
  }>;
1902
- part: z.ZodEnum<{
1903
- All: "All";
1904
- Localpart: "Localpart";
1905
- Domain: "Domain";
1906
- RegistrableDomain: "RegistrableDomain";
1762
+ adapterShape: z.ZodEnum<{
1763
+ DecisionApi: "DecisionApi";
1764
+ ChatJsonSchema: "ChatJsonSchema";
1765
+ JinaClassify: "JinaClassify";
1907
1766
  }>;
1908
- key: z.ZodString;
1767
+ defaultBaseUrl: z.ZodOptional<z.ZodString>;
1768
+ defaultModel: z.ZodString;
1769
+ needsKey: z.ZodBoolean;
1770
+ price: z.ZodUnion<readonly [z.ZodObject<{
1771
+ state: z.ZodLiteral<"Priced">;
1772
+ currency: z.ZodLiteral<"USD">;
1773
+ perMillionInputTokens: z.ZodNumber;
1774
+ }, z.core.$strip>, z.ZodObject<{
1775
+ state: z.ZodLiteral<"NoPrice">;
1776
+ }, z.core.$strip>]>;
1777
+ }, z.core.$strip>>;
1778
+ classification: z.ZodUnion<readonly [z.ZodObject<{
1779
+ state: z.ZodLiteral<"NotConfigured">;
1909
1780
  }, z.core.$strip>, z.ZodObject<{
1910
- test: z.ZodLiteral<"hasWords">;
1911
- words: z.ZodArray<z.ZodString>;
1781
+ state: z.ZodLiteral<"Configured">;
1782
+ presetId: z.ZodEnum<{
1783
+ Jev: "Jev";
1784
+ Jina: "Jina";
1785
+ Mistral: "Mistral";
1786
+ Gemini: "Gemini";
1787
+ OpenAiCompatible: "OpenAiCompatible";
1788
+ Local: "Local";
1789
+ }>;
1790
+ model: z.ZodString;
1791
+ baseUrl: z.ZodString;
1792
+ enabled: z.ZodBoolean;
1793
+ dailyLimit: z.ZodNumber;
1794
+ sources: z.ZodObject<{
1795
+ presetId: z.ZodEnum<{
1796
+ Saved: "Saved";
1797
+ Deployment: "Deployment";
1798
+ Default: "Default";
1799
+ }>;
1800
+ model: z.ZodEnum<{
1801
+ Saved: "Saved";
1802
+ Deployment: "Deployment";
1803
+ Default: "Default";
1804
+ }>;
1805
+ baseUrl: z.ZodEnum<{
1806
+ Saved: "Saved";
1807
+ Deployment: "Deployment";
1808
+ Default: "Default";
1809
+ }>;
1810
+ apiKey: z.ZodEnum<{
1811
+ Saved: "Saved";
1812
+ Deployment: "Deployment";
1813
+ Default: "Default";
1814
+ }>;
1815
+ enabled: z.ZodEnum<{
1816
+ Saved: "Saved";
1817
+ Deployment: "Deployment";
1818
+ Default: "Default";
1819
+ }>;
1820
+ dailyLimit: z.ZodEnum<{
1821
+ Saved: "Saved";
1822
+ Deployment: "Deployment";
1823
+ Default: "Default";
1824
+ }>;
1825
+ }, z.core.$strip>;
1826
+ usage: z.ZodArray<z.ZodObject<{
1827
+ accountId: z.ZodString;
1828
+ calls: z.ZodNumber;
1829
+ dailyLimit: z.ZodNumber;
1830
+ resetsAt: z.ZodString;
1831
+ cost: z.ZodUnion<readonly [z.ZodObject<{
1832
+ state: z.ZodLiteral<"Priced">;
1833
+ currency: z.ZodLiteral<"USD">;
1834
+ amount: z.ZodNumber;
1835
+ }, z.core.$strip>, z.ZodObject<{
1836
+ state: z.ZodLiteral<"NoPrice">;
1837
+ }, z.core.$strip>]>;
1838
+ }, z.core.$strip>>;
1912
1839
  }, z.core.$strip>, z.ZodObject<{
1913
- test: z.ZodLiteral<"classification">;
1914
- label: z.ZodEnum<{
1915
- Spam: "Spam";
1916
- Phishing: "Phishing";
1917
- Priority: "Priority";
1918
- Personal: "Personal";
1919
- Newsletter: "Newsletter";
1920
- Marketing: "Marketing";
1921
- Automated: "Automated";
1922
- Transactional: "Transactional";
1923
- Social: "Social";
1924
- ColdOutreach: "ColdOutreach";
1840
+ state: z.ZodLiteral<"Unrunnable">;
1841
+ presetId: z.ZodEnum<{
1842
+ Jev: "Jev";
1843
+ Jina: "Jina";
1844
+ Mistral: "Mistral";
1845
+ Gemini: "Gemini";
1846
+ OpenAiCompatible: "OpenAiCompatible";
1847
+ Local: "Local";
1848
+ }>;
1849
+ reason: z.ZodEnum<{
1850
+ NoBaseUrl: "NoBaseUrl";
1851
+ NoApiKey: "NoApiKey";
1925
1852
  }>;
1926
1853
  }, z.core.$strip>]>;
1854
+ spam: z.ZodObject<{
1855
+ thresholds: z.ZodUnion<readonly [z.ZodObject<{
1856
+ state: z.ZodLiteral<"Unset">;
1857
+ }, z.core.$strip>, z.ZodObject<{
1858
+ state: z.ZodLiteral<"Set">;
1859
+ cleanBelow: z.ZodNumber;
1860
+ spamAt: z.ZodNumber;
1861
+ }, z.core.$strip>]>;
1862
+ spamPlacement: z.ZodEnum<{
1863
+ MoveToSpam: "MoveToSpam";
1864
+ WarnOnly: "WarnOnly";
1865
+ }>;
1866
+ phishingPlacement: z.ZodEnum<{
1867
+ MoveToSpam: "MoveToSpam";
1868
+ WarnOnly: "WarnOnly";
1869
+ }>;
1870
+ }, z.core.$strip>;
1927
1871
  }, z.core.$strip>;
1928
- export declare const FilterSchema: z.ZodObject<{
1929
- filterId: z.ZodString;
1930
- accountConfigId: z.ZodString;
1931
- name: z.ZodString;
1932
- scope: z.ZodEnum<{
1933
- Standing: "Standing";
1934
- Temporary: "Temporary";
1935
- }>;
1936
- expiresAt: z.ZodOptional<z.ZodString>;
1937
- ttl: z.ZodOptional<z.ZodNumber>;
1938
- state: z.ZodEnum<{
1872
+ export declare const UpdateUserSettingsInputSchema: z.ZodObject<{
1873
+ defaultInvitationSenderAccountId: z.ZodOptional<z.ZodString>;
1874
+ classificationPresetId: z.ZodOptional<z.ZodEnum<{
1875
+ Jev: "Jev";
1876
+ Jina: "Jina";
1877
+ Mistral: "Mistral";
1878
+ Gemini: "Gemini";
1879
+ OpenAiCompatible: "OpenAiCompatible";
1880
+ Local: "Local";
1881
+ }>>;
1882
+ classificationModel: z.ZodOptional<z.ZodString>;
1883
+ classificationBaseUrl: z.ZodOptional<z.ZodString>;
1884
+ classificationApiKey: z.ZodOptional<z.ZodString>;
1885
+ classificationEnabled: z.ZodOptional<z.ZodBoolean>;
1886
+ classificationDailyLimit: z.ZodOptional<z.ZodNumber>;
1887
+ spamPlacementSpam: z.ZodOptional<z.ZodEnum<{
1888
+ MoveToSpam: "MoveToSpam";
1889
+ WarnOnly: "WarnOnly";
1890
+ }>>;
1891
+ spamPlacementPhishing: z.ZodOptional<z.ZodEnum<{
1892
+ MoveToSpam: "MoveToSpam";
1893
+ WarnOnly: "WarnOnly";
1894
+ }>>;
1895
+ }, z.core.$strip>;
1896
+ export declare const PersonSchema: z.ZodObject<{
1897
+ userId: z.ZodString;
1898
+ email: z.ZodString;
1899
+ createdAt: z.ZodNumber;
1900
+ lastSignInAt: z.ZodNumber;
1901
+ sessionCount: z.ZodNumber;
1902
+ status: z.ZodEnum<{
1939
1903
  Active: "Active";
1940
1904
  Disabled: "Disabled";
1941
- Expired: "Expired";
1942
- }>;
1943
- disabledReason: z.ZodEnum<{
1944
- None: "None";
1945
- UserDisabled: "UserDisabled";
1946
- AwaitingFolder: "AwaitingFolder";
1947
- FolderCreateFailed: "FolderCreateFailed";
1948
- FolderMissing: "FolderMissing";
1949
- }>;
1950
- ruleChangedAt: z.ZodNumber;
1951
- actionChangedAt: z.ZodNumber;
1952
- matchOperator: z.ZodEnum<{
1953
- And: "And";
1954
- Or: "Or";
1955
1905
  }>;
1956
- literalClauses: z.ZodArray<z.ZodObject<{
1957
- field: z.ZodEnum<{
1958
- From: "From";
1959
- Subject: "Subject";
1960
- HasWords: "HasWords";
1961
- ListId: "ListId";
1962
- FromDomain: "FromDomain";
1906
+ isCaller: z.ZodBoolean;
1907
+ }, z.core.$strip>;
1908
+ export declare const PeopleListResponseSchema: z.ZodObject<{
1909
+ people: z.ZodArray<z.ZodObject<{
1910
+ userId: z.ZodString;
1911
+ email: z.ZodString;
1912
+ createdAt: z.ZodNumber;
1913
+ lastSignInAt: z.ZodNumber;
1914
+ sessionCount: z.ZodNumber;
1915
+ status: z.ZodEnum<{
1916
+ Active: "Active";
1917
+ Disabled: "Disabled";
1963
1918
  }>;
1964
- value: z.ZodString;
1919
+ isCaller: z.ZodBoolean;
1965
1920
  }, z.core.$strip>>;
1966
- rule: z.ZodUnion<readonly [z.ZodObject<{
1967
- version: z.ZodLiteral<0>;
1968
- }, z.core.$strip>, z.ZodObject<{
1969
- version: z.ZodLiteral<1>;
1970
- test: z.ZodUnion<readonly [z.ZodType<FilterAllOfTest, unknown, z.core.$ZodTypeInternals<FilterAllOfTest, unknown>>, z.ZodType<FilterAnyOfTest, unknown, z.core.$ZodTypeInternals<FilterAnyOfTest, unknown>>, z.ZodType<FilterNotTest, unknown, z.core.$ZodTypeInternals<FilterNotTest, unknown>>, z.ZodObject<{
1971
- test: z.ZodLiteral<"header">;
1972
- match: z.ZodEnum<{
1973
- Is: "Is";
1974
- Contains: "Contains";
1975
- }>;
1976
- header: z.ZodEnum<{
1977
- From: "From";
1978
- Subject: "Subject";
1979
- ListId: "ListId";
1980
- }>;
1981
- key: z.ZodString;
1982
- }, z.core.$strip>, z.ZodObject<{
1983
- test: z.ZodLiteral<"address">;
1984
- match: z.ZodEnum<{
1985
- Is: "Is";
1986
- Contains: "Contains";
1987
- }>;
1988
- part: z.ZodEnum<{
1989
- All: "All";
1990
- Localpart: "Localpart";
1991
- Domain: "Domain";
1992
- RegistrableDomain: "RegistrableDomain";
1993
- }>;
1994
- key: z.ZodString;
1995
- }, z.core.$strip>, z.ZodObject<{
1996
- test: z.ZodLiteral<"hasWords">;
1997
- words: z.ZodArray<z.ZodString>;
1998
- }, z.core.$strip>, z.ZodObject<{
1999
- test: z.ZodLiteral<"classification">;
2000
- label: z.ZodEnum<{
2001
- Spam: "Spam";
2002
- Phishing: "Phishing";
2003
- Priority: "Priority";
2004
- Personal: "Personal";
2005
- Newsletter: "Newsletter";
2006
- Marketing: "Marketing";
2007
- Automated: "Automated";
2008
- Transactional: "Transactional";
2009
- Social: "Social";
2010
- ColdOutreach: "ColdOutreach";
2011
- }>;
2012
- }, z.core.$strip>]>;
2013
- }, z.core.$strip>]>;
2014
- priority: z.ZodNumber;
2015
- stop: z.ZodBoolean;
2016
- actionLabelId: z.ZodString;
2017
- actionMailboxId: z.ZodString;
2018
- createdAt: z.ZodNumber;
2019
- updatedAt: z.ZodNumber;
2020
1921
  }, z.core.$strip>;
2021
- export declare const FilterResponseSchema: z.ZodObject<{
2022
- filterId: z.ZodString;
2023
- accountConfigId: z.ZodString;
2024
- name: z.ZodString;
2025
- scope: z.ZodEnum<{
2026
- Standing: "Standing";
2027
- Temporary: "Temporary";
1922
+ export declare const PeopleForbiddenErrorSchema: z.ZodObject<{
1923
+ statusCode: z.ZodLiteral<403>;
1924
+ message: z.ZodString;
1925
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1926
+ code: z.ZodUnion<readonly [z.ZodLiteral<"sign_in_disabled">, z.ZodLiteral<"caller_disabled">, z.ZodLiteral<"foreign_origin">, z.ZodLiteral<"step_up_required">, z.ZodLiteral<"wrong_password">, z.ZodLiteral<"forbidden">]>;
1927
+ }, z.core.$strip>;
1928
+ export declare const PeopleAuditEventSchema: z.ZodObject<{
1929
+ auditEventId: z.ZodString;
1930
+ occurredAt: z.ZodNumber;
1931
+ actor: z.ZodString;
1932
+ target: z.ZodString;
1933
+ action: z.ZodString;
1934
+ outcome: z.ZodString;
1935
+ clientIp: z.ZodString;
1936
+ }, z.core.$strip>;
1937
+ export declare const PeopleAuditResponseSchema: z.ZodObject<{
1938
+ events: z.ZodArray<z.ZodObject<{
1939
+ auditEventId: z.ZodString;
1940
+ occurredAt: z.ZodNumber;
1941
+ actor: z.ZodString;
1942
+ target: z.ZodString;
1943
+ action: z.ZodString;
1944
+ outcome: z.ZodString;
1945
+ clientIp: z.ZodString;
1946
+ }, z.core.$strip>>;
1947
+ }, z.core.$strip>;
1948
+ export declare const InvitePersonInputSchema: z.ZodObject<{
1949
+ email: z.ZodString;
1950
+ }, z.core.$strip>;
1951
+ export declare const PersonInviteResponseSchema: z.ZodObject<{
1952
+ email: z.ZodString;
1953
+ }, z.core.$strip>;
1954
+ export declare const StepUpInputSchema: z.ZodObject<{
1955
+ password: z.ZodString;
1956
+ action: z.ZodEnum<{
1957
+ SignOut: "SignOut";
1958
+ Disable: "Disable";
1959
+ Enable: "Enable";
1960
+ ResetPassword: "ResetPassword";
2028
1961
  }>;
2029
- expiresAt: z.ZodOptional<z.ZodString>;
2030
- state: z.ZodEnum<{
1962
+ userId: z.ZodString;
1963
+ }, z.core.$strip>;
1964
+ export declare const StepUpResponseSchema: z.ZodObject<{
1965
+ stepUpToken: z.ZodString;
1966
+ expiresAt: z.ZodNumber;
1967
+ }, z.core.$strip>;
1968
+ export declare const StepUpLockedErrorSchema: z.ZodObject<{
1969
+ statusCode: z.ZodLiteral<429>;
1970
+ message: z.ZodString;
1971
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1972
+ code: z.ZodLiteral<"step_up_locked">;
1973
+ }, z.core.$strip>;
1974
+ export declare const UpdatePersonInputSchema: z.ZodObject<{
1975
+ status: z.ZodEnum<{
2031
1976
  Active: "Active";
2032
1977
  Disabled: "Disabled";
2033
- Expired: "Expired";
2034
1978
  }>;
2035
- disabledReason: z.ZodEnum<{
2036
- None: "None";
2037
- UserDisabled: "UserDisabled";
2038
- AwaitingFolder: "AwaitingFolder";
2039
- FolderCreateFailed: "FolderCreateFailed";
2040
- FolderMissing: "FolderMissing";
1979
+ }, z.core.$strip>;
1980
+ export declare const CannotDisableSelfErrorSchema: z.ZodObject<{
1981
+ statusCode: z.ZodLiteral<409>;
1982
+ message: z.ZodString;
1983
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1984
+ code: z.ZodLiteral<"cannot_disable_self">;
1985
+ }, z.core.$strip>;
1986
+ export declare const PasswordResetResponseSchema: z.ZodObject<{
1987
+ person: z.ZodObject<{
1988
+ userId: z.ZodString;
1989
+ email: z.ZodString;
1990
+ createdAt: z.ZodNumber;
1991
+ lastSignInAt: z.ZodNumber;
1992
+ sessionCount: z.ZodNumber;
1993
+ status: z.ZodEnum<{
1994
+ Active: "Active";
1995
+ Disabled: "Disabled";
1996
+ }>;
1997
+ isCaller: z.ZodBoolean;
1998
+ }, z.core.$strip>;
1999
+ resetUrl: z.ZodString;
2000
+ expiresAt: z.ZodNumber;
2001
+ }, z.core.$strip>;
2002
+ export declare const MailboxSchema: z.ZodObject<{
2003
+ mailboxId: z.ZodString;
2004
+ accountId: z.ZodString;
2005
+ namespaceType: z.ZodEnum<{
2006
+ personal: "personal";
2007
+ other_users: "other_users";
2008
+ shared: "shared";
2041
2009
  }>;
2042
- ruleChangedAt: z.ZodNumber;
2043
- actionChangedAt: z.ZodNumber;
2044
- matchOperator: z.ZodEnum<{
2045
- And: "And";
2046
- Or: "Or";
2010
+ namespacePrefix: z.ZodString;
2011
+ hierarchyDelimiter: z.ZodString;
2012
+ fullPath: z.ZodString;
2013
+ uidValidity: z.ZodNumber;
2014
+ uidNext: z.ZodNumber;
2015
+ highestModseq: z.ZodString;
2016
+ messageCount: z.ZodNumber;
2017
+ unseenCount: z.ZodNumber;
2018
+ deletedCount: z.ZodNumber;
2019
+ totalSize: z.ZodNumber;
2020
+ lastSyncUid: z.ZodNumber;
2021
+ highWaterMarkUid: z.ZodNumber;
2022
+ lastMessageSyncAt: z.ZodNumber;
2023
+ initialSyncCompletedAt: z.ZodOptional<z.ZodNumber>;
2024
+ parentMailboxId: z.ZodString;
2025
+ syncStatus: z.ZodEnum<{
2026
+ deleting: "deleting";
2027
+ failed: "failed";
2028
+ synced: "synced";
2029
+ pending: "pending";
2047
2030
  }>;
2048
- literalClauses: z.ZodArray<z.ZodObject<{
2049
- field: z.ZodEnum<{
2050
- From: "From";
2051
- Subject: "Subject";
2052
- HasWords: "HasWords";
2053
- ListId: "ListId";
2054
- FromDomain: "FromDomain";
2055
- }>;
2056
- value: z.ZodString;
2057
- }, z.core.$strip>>;
2058
- priority: z.ZodNumber;
2059
- stop: z.ZodBoolean;
2060
- actionLabelId: z.ZodString;
2061
- actionMailboxId: z.ZodString;
2031
+ pendingPath: z.ZodOptional<z.ZodString>;
2032
+ syncFailureReason: z.ZodString;
2033
+ statusRefused: z.ZodBoolean;
2034
+ cursorState: z.ZodEnum<{
2035
+ normal: "normal";
2036
+ cursor_invalid: "cursor_invalid";
2037
+ rebuilding: "rebuilding";
2038
+ }>;
2039
+ specialUse: z.ZodOptional<z.ZodArray<z.ZodEnum<{
2040
+ Drafts: "Drafts";
2041
+ Sent: "Sent";
2042
+ Archive: "Archive";
2043
+ Junk: "Junk";
2044
+ Trash: "Trash";
2045
+ All: "All";
2046
+ Flagged: "Flagged";
2047
+ Important: "Important";
2048
+ }>>>;
2062
2049
  createdAt: z.ZodNumber;
2063
2050
  updatedAt: z.ZodNumber;
2064
- rule: z.ZodObject<{
2065
- version: z.ZodLiteral<1>;
2066
- test: z.ZodUnion<readonly [z.ZodType<FilterAllOfTest, unknown, z.core.$ZodTypeInternals<FilterAllOfTest, unknown>>, z.ZodType<FilterAnyOfTest, unknown, z.core.$ZodTypeInternals<FilterAnyOfTest, unknown>>, z.ZodType<FilterNotTest, unknown, z.core.$ZodTypeInternals<FilterNotTest, unknown>>, z.ZodObject<{
2067
- test: z.ZodLiteral<"header">;
2068
- match: z.ZodEnum<{
2069
- Is: "Is";
2070
- Contains: "Contains";
2071
- }>;
2072
- header: z.ZodEnum<{
2073
- From: "From";
2074
- Subject: "Subject";
2075
- ListId: "ListId";
2076
- }>;
2077
- key: z.ZodString;
2078
- }, z.core.$strip>, z.ZodObject<{
2079
- test: z.ZodLiteral<"address">;
2080
- match: z.ZodEnum<{
2081
- Is: "Is";
2082
- Contains: "Contains";
2083
- }>;
2084
- part: z.ZodEnum<{
2085
- All: "All";
2086
- Localpart: "Localpart";
2087
- Domain: "Domain";
2088
- RegistrableDomain: "RegistrableDomain";
2089
- }>;
2090
- key: z.ZodString;
2091
- }, z.core.$strip>, z.ZodObject<{
2092
- test: z.ZodLiteral<"hasWords">;
2093
- words: z.ZodArray<z.ZodString>;
2094
- }, z.core.$strip>, z.ZodObject<{
2095
- test: z.ZodLiteral<"classification">;
2096
- label: z.ZodEnum<{
2097
- Spam: "Spam";
2098
- Phishing: "Phishing";
2099
- Priority: "Priority";
2100
- Personal: "Personal";
2101
- Newsletter: "Newsletter";
2102
- Marketing: "Marketing";
2103
- Automated: "Automated";
2104
- Transactional: "Transactional";
2105
- Social: "Social";
2106
- ColdOutreach: "ColdOutreach";
2107
- }>;
2108
- }, z.core.$strip>]>;
2109
- }, z.core.$strip>;
2110
2051
  }, z.core.$strip>;
2111
- export declare const CreateFilterInputSchema: z.ZodObject<{
2112
- name: z.ZodString;
2113
- scope: z.ZodEnum<{
2114
- Standing: "Standing";
2115
- Temporary: "Temporary";
2052
+ export declare const MailboxResponseSchema: z.ZodObject<{
2053
+ mailboxId: z.ZodString;
2054
+ accountId: z.ZodString;
2055
+ namespaceType: z.ZodEnum<{
2056
+ personal: "personal";
2057
+ other_users: "other_users";
2058
+ shared: "shared";
2116
2059
  }>;
2117
- expiresAt: z.ZodOptional<z.ZodString>;
2118
- matchOperator: z.ZodEnum<{
2119
- And: "And";
2120
- Or: "Or";
2060
+ namespacePrefix: z.ZodString;
2061
+ hierarchyDelimiter: z.ZodString;
2062
+ fullPath: z.ZodString;
2063
+ messageCount: z.ZodNumber;
2064
+ unseenCount: z.ZodNumber;
2065
+ deletedCount: z.ZodNumber;
2066
+ lastSyncUid: z.ZodNumber;
2067
+ highWaterMarkUid: z.ZodNumber;
2068
+ lastMessageSyncAt: z.ZodNumber;
2069
+ syncStatus: z.ZodEnum<{
2070
+ deleting: "deleting";
2071
+ failed: "failed";
2072
+ synced: "synced";
2073
+ pending: "pending";
2121
2074
  }>;
2122
- actionLabelId: z.ZodString;
2123
- actionMailboxId: z.ZodString;
2124
- priority: z.ZodOptional<z.ZodNumber>;
2125
- stop: z.ZodOptional<z.ZodBoolean>;
2126
- literalClauses: z.ZodOptional<z.ZodArray<z.ZodObject<{
2075
+ pendingPath: z.ZodOptional<z.ZodString>;
2076
+ syncFailureReason: z.ZodString;
2077
+ statusRefused: z.ZodBoolean;
2078
+ specialUse: z.ZodOptional<z.ZodArray<z.ZodEnum<{
2079
+ Drafts: "Drafts";
2080
+ Sent: "Sent";
2081
+ Archive: "Archive";
2082
+ Junk: "Junk";
2083
+ Trash: "Trash";
2084
+ All: "All";
2085
+ Flagged: "Flagged";
2086
+ Important: "Important";
2087
+ }>>>;
2088
+ createdAt: z.ZodNumber;
2089
+ updatedAt: z.ZodNumber;
2090
+ muted: z.ZodOptional<z.ZodObject<{
2091
+ setAt: z.ZodNumber;
2092
+ setBy: z.ZodOptional<z.ZodString>;
2093
+ expiresAt: z.ZodOptional<z.ZodNumber>;
2094
+ reason: z.ZodOptional<z.ZodString>;
2095
+ value: z.ZodBoolean;
2096
+ }, z.core.$strip>>;
2097
+ displayNameOverride: z.ZodOptional<z.ZodString>;
2098
+ }, z.core.$strip>;
2099
+ export declare const MailboxListResponseSchema: z.ZodObject<{
2100
+ continuationToken: z.ZodOptional<z.ZodString>;
2101
+ items: z.ZodArray<z.ZodObject<{
2102
+ mailboxId: z.ZodString;
2103
+ accountId: z.ZodString;
2104
+ namespaceType: z.ZodEnum<{
2105
+ personal: "personal";
2106
+ other_users: "other_users";
2107
+ shared: "shared";
2108
+ }>;
2109
+ namespacePrefix: z.ZodString;
2110
+ hierarchyDelimiter: z.ZodString;
2111
+ fullPath: z.ZodString;
2112
+ messageCount: z.ZodNumber;
2113
+ unseenCount: z.ZodNumber;
2114
+ deletedCount: z.ZodNumber;
2115
+ lastSyncUid: z.ZodNumber;
2116
+ highWaterMarkUid: z.ZodNumber;
2117
+ lastMessageSyncAt: z.ZodNumber;
2118
+ syncStatus: z.ZodEnum<{
2119
+ deleting: "deleting";
2120
+ failed: "failed";
2121
+ synced: "synced";
2122
+ pending: "pending";
2123
+ }>;
2124
+ pendingPath: z.ZodOptional<z.ZodString>;
2125
+ syncFailureReason: z.ZodString;
2126
+ statusRefused: z.ZodBoolean;
2127
+ specialUse: z.ZodOptional<z.ZodArray<z.ZodEnum<{
2128
+ Drafts: "Drafts";
2129
+ Sent: "Sent";
2130
+ Archive: "Archive";
2131
+ Junk: "Junk";
2132
+ Trash: "Trash";
2133
+ All: "All";
2134
+ Flagged: "Flagged";
2135
+ Important: "Important";
2136
+ }>>>;
2137
+ createdAt: z.ZodNumber;
2138
+ updatedAt: z.ZodNumber;
2139
+ muted: z.ZodOptional<z.ZodObject<{
2140
+ setAt: z.ZodNumber;
2141
+ setBy: z.ZodOptional<z.ZodString>;
2142
+ expiresAt: z.ZodOptional<z.ZodNumber>;
2143
+ reason: z.ZodOptional<z.ZodString>;
2144
+ value: z.ZodBoolean;
2145
+ }, z.core.$strip>>;
2146
+ displayNameOverride: z.ZodOptional<z.ZodString>;
2147
+ }, z.core.$strip>>;
2148
+ }, z.core.$strip>;
2149
+ export declare const CreateMailboxInputSchema: z.ZodObject<{
2150
+ namespaceType: z.ZodEnum<{
2151
+ personal: "personal";
2152
+ other_users: "other_users";
2153
+ shared: "shared";
2154
+ }>;
2155
+ fullPath: z.ZodString;
2156
+ }, z.core.$strip>;
2157
+ export declare const RenameMailboxInputSchema: z.ZodObject<{
2158
+ fullPath: z.ZodOptional<z.ZodString>;
2159
+ muted: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
2160
+ setAt: z.ZodNumber;
2161
+ setBy: z.ZodOptional<z.ZodString>;
2162
+ expiresAt: z.ZodOptional<z.ZodNumber>;
2163
+ reason: z.ZodOptional<z.ZodString>;
2164
+ value: z.ZodBoolean;
2165
+ }, z.core.$strip>, z.ZodNull]>>;
2166
+ displayNameOverride: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
2167
+ }, z.core.$strip>;
2168
+ export declare const AppointFolderRoleInputSchema: z.ZodObject<{
2169
+ mailboxId: z.ZodUnion<readonly [z.ZodString, z.ZodNull]>;
2170
+ }, z.core.$strip>;
2171
+ export declare const FilterClauseSchema: z.ZodObject<{
2172
+ field: z.ZodEnum<{
2173
+ From: "From";
2174
+ Subject: "Subject";
2175
+ HasWords: "HasWords";
2176
+ ListId: "ListId";
2177
+ FromDomain: "FromDomain";
2178
+ }>;
2179
+ value: z.ZodString;
2180
+ }, z.core.$strip>;
2181
+ export declare const FilterRuleV0Schema: z.ZodObject<{
2182
+ version: z.ZodLiteral<0>;
2183
+ }, z.core.$strip>;
2184
+ export declare const FilterHeaderTestSchema: z.ZodObject<{
2185
+ test: z.ZodLiteral<"header">;
2186
+ match: z.ZodEnum<{
2187
+ Is: "Is";
2188
+ Contains: "Contains";
2189
+ }>;
2190
+ header: z.ZodEnum<{
2191
+ From: "From";
2192
+ Subject: "Subject";
2193
+ ListId: "ListId";
2194
+ }>;
2195
+ key: z.ZodString;
2196
+ }, z.core.$strip>;
2197
+ export declare const FilterAddressTestSchema: z.ZodObject<{
2198
+ test: z.ZodLiteral<"address">;
2199
+ match: z.ZodEnum<{
2200
+ Is: "Is";
2201
+ Contains: "Contains";
2202
+ }>;
2203
+ part: z.ZodEnum<{
2204
+ All: "All";
2205
+ Localpart: "Localpart";
2206
+ Domain: "Domain";
2207
+ RegistrableDomain: "RegistrableDomain";
2208
+ }>;
2209
+ key: z.ZodString;
2210
+ }, z.core.$strip>;
2211
+ export declare const FilterHasWordsTestSchema: z.ZodObject<{
2212
+ test: z.ZodLiteral<"hasWords">;
2213
+ words: z.ZodArray<z.ZodString>;
2214
+ }, z.core.$strip>;
2215
+ export declare const FilterClassificationTestSchema: z.ZodObject<{
2216
+ test: z.ZodLiteral<"classification">;
2217
+ label: z.ZodEnum<{
2218
+ Spam: "Spam";
2219
+ Phishing: "Phishing";
2220
+ Priority: "Priority";
2221
+ Personal: "Personal";
2222
+ Newsletter: "Newsletter";
2223
+ Marketing: "Marketing";
2224
+ Automated: "Automated";
2225
+ Transactional: "Transactional";
2226
+ Social: "Social";
2227
+ ColdOutreach: "ColdOutreach";
2228
+ }>;
2229
+ }, z.core.$strip>;
2230
+ export type FilterAllOfTest = {
2231
+ test: "allof";
2232
+ tests: Array<FilterAllOfTest | FilterAnyOfTest | FilterNotTest | z.infer<typeof FilterHeaderTestSchema> | z.infer<typeof FilterAddressTestSchema> | z.infer<typeof FilterHasWordsTestSchema> | z.infer<typeof FilterClassificationTestSchema>>;
2233
+ };
2234
+ export declare const FilterAllOfTestSchema: z.ZodType<FilterAllOfTest>;
2235
+ export type FilterAnyOfTest = {
2236
+ test: "anyof";
2237
+ tests: Array<FilterAllOfTest | FilterAnyOfTest | FilterNotTest | z.infer<typeof FilterHeaderTestSchema> | z.infer<typeof FilterAddressTestSchema> | z.infer<typeof FilterHasWordsTestSchema> | z.infer<typeof FilterClassificationTestSchema>>;
2238
+ };
2239
+ export declare const FilterAnyOfTestSchema: z.ZodType<FilterAnyOfTest>;
2240
+ export type FilterNotTest = {
2241
+ test: "not";
2242
+ operand: FilterAllOfTest | FilterAnyOfTest | FilterNotTest | z.infer<typeof FilterHeaderTestSchema> | z.infer<typeof FilterAddressTestSchema> | z.infer<typeof FilterHasWordsTestSchema> | z.infer<typeof FilterClassificationTestSchema>;
2243
+ };
2244
+ export declare const FilterNotTestSchema: z.ZodType<FilterNotTest>;
2245
+ export declare const FilterRuleV1Schema: z.ZodObject<{
2246
+ version: z.ZodLiteral<1>;
2247
+ test: z.ZodUnion<readonly [z.ZodType<FilterAllOfTest, unknown, z.core.$ZodTypeInternals<FilterAllOfTest, unknown>>, z.ZodType<FilterAnyOfTest, unknown, z.core.$ZodTypeInternals<FilterAnyOfTest, unknown>>, z.ZodType<FilterNotTest, unknown, z.core.$ZodTypeInternals<FilterNotTest, unknown>>, z.ZodObject<{
2248
+ test: z.ZodLiteral<"header">;
2249
+ match: z.ZodEnum<{
2250
+ Is: "Is";
2251
+ Contains: "Contains";
2252
+ }>;
2253
+ header: z.ZodEnum<{
2254
+ From: "From";
2255
+ Subject: "Subject";
2256
+ ListId: "ListId";
2257
+ }>;
2258
+ key: z.ZodString;
2259
+ }, z.core.$strip>, z.ZodObject<{
2260
+ test: z.ZodLiteral<"address">;
2261
+ match: z.ZodEnum<{
2262
+ Is: "Is";
2263
+ Contains: "Contains";
2264
+ }>;
2265
+ part: z.ZodEnum<{
2266
+ All: "All";
2267
+ Localpart: "Localpart";
2268
+ Domain: "Domain";
2269
+ RegistrableDomain: "RegistrableDomain";
2270
+ }>;
2271
+ key: z.ZodString;
2272
+ }, z.core.$strip>, z.ZodObject<{
2273
+ test: z.ZodLiteral<"hasWords">;
2274
+ words: z.ZodArray<z.ZodString>;
2275
+ }, z.core.$strip>, z.ZodObject<{
2276
+ test: z.ZodLiteral<"classification">;
2277
+ label: z.ZodEnum<{
2278
+ Spam: "Spam";
2279
+ Phishing: "Phishing";
2280
+ Priority: "Priority";
2281
+ Personal: "Personal";
2282
+ Newsletter: "Newsletter";
2283
+ Marketing: "Marketing";
2284
+ Automated: "Automated";
2285
+ Transactional: "Transactional";
2286
+ Social: "Social";
2287
+ ColdOutreach: "ColdOutreach";
2288
+ }>;
2289
+ }, z.core.$strip>]>;
2290
+ }, z.core.$strip>;
2291
+ export declare const FilterSchema: z.ZodObject<{
2292
+ filterId: z.ZodString;
2293
+ accountConfigId: z.ZodString;
2294
+ name: z.ZodString;
2295
+ scope: z.ZodEnum<{
2296
+ Standing: "Standing";
2297
+ Temporary: "Temporary";
2298
+ }>;
2299
+ expiresAt: z.ZodOptional<z.ZodString>;
2300
+ ttl: z.ZodOptional<z.ZodNumber>;
2301
+ state: z.ZodEnum<{
2302
+ Active: "Active";
2303
+ Disabled: "Disabled";
2304
+ Expired: "Expired";
2305
+ }>;
2306
+ disabledReason: z.ZodEnum<{
2307
+ None: "None";
2308
+ UserDisabled: "UserDisabled";
2309
+ AwaitingFolder: "AwaitingFolder";
2310
+ FolderCreateFailed: "FolderCreateFailed";
2311
+ FolderMissing: "FolderMissing";
2312
+ }>;
2313
+ ruleChangedAt: z.ZodNumber;
2314
+ actionChangedAt: z.ZodNumber;
2315
+ matchOperator: z.ZodEnum<{
2316
+ And: "And";
2317
+ Or: "Or";
2318
+ }>;
2319
+ literalClauses: z.ZodArray<z.ZodObject<{
2127
2320
  field: z.ZodEnum<{
2128
2321
  From: "From";
2129
2322
  Subject: "Subject";
@@ -2132,8 +2325,10 @@ export declare const CreateFilterInputSchema: z.ZodObject<{
2132
2325
  FromDomain: "FromDomain";
2133
2326
  }>;
2134
2327
  value: z.ZodString;
2135
- }, z.core.$strip>>>;
2136
- rule: z.ZodOptional<z.ZodObject<{
2328
+ }, z.core.$strip>>;
2329
+ rule: z.ZodUnion<readonly [z.ZodObject<{
2330
+ version: z.ZodLiteral<0>;
2331
+ }, z.core.$strip>, z.ZodObject<{
2137
2332
  version: z.ZodLiteral<1>;
2138
2333
  test: z.ZodUnion<readonly [z.ZodType<FilterAllOfTest, unknown, z.core.$ZodTypeInternals<FilterAllOfTest, unknown>>, z.ZodType<FilterAnyOfTest, unknown, z.core.$ZodTypeInternals<FilterAnyOfTest, unknown>>, z.ZodType<FilterNotTest, unknown, z.core.$ZodTypeInternals<FilterNotTest, unknown>>, z.ZodObject<{
2139
2334
  test: z.ZodLiteral<"header">;
@@ -2178,11 +2373,179 @@ export declare const CreateFilterInputSchema: z.ZodObject<{
2178
2373
  ColdOutreach: "ColdOutreach";
2179
2374
  }>;
2180
2375
  }, z.core.$strip>]>;
2181
- }, z.core.$strip>>;
2182
- }, z.core.$strip>;
2183
- export declare const CreateFilterResponseSchema: z.ZodObject<{
2184
- filterId: z.ZodString;
2185
- accountConfigId: z.ZodString;
2376
+ }, z.core.$strip>]>;
2377
+ priority: z.ZodNumber;
2378
+ stop: z.ZodBoolean;
2379
+ actionLabelId: z.ZodString;
2380
+ actionMailboxId: z.ZodString;
2381
+ createdAt: z.ZodNumber;
2382
+ updatedAt: z.ZodNumber;
2383
+ }, z.core.$strip>;
2384
+ export declare const FilterResponseSchema: z.ZodObject<{
2385
+ filterId: z.ZodString;
2386
+ accountConfigId: z.ZodString;
2387
+ name: z.ZodString;
2388
+ scope: z.ZodEnum<{
2389
+ Standing: "Standing";
2390
+ Temporary: "Temporary";
2391
+ }>;
2392
+ expiresAt: z.ZodOptional<z.ZodString>;
2393
+ state: z.ZodEnum<{
2394
+ Active: "Active";
2395
+ Disabled: "Disabled";
2396
+ Expired: "Expired";
2397
+ }>;
2398
+ disabledReason: z.ZodEnum<{
2399
+ None: "None";
2400
+ UserDisabled: "UserDisabled";
2401
+ AwaitingFolder: "AwaitingFolder";
2402
+ FolderCreateFailed: "FolderCreateFailed";
2403
+ FolderMissing: "FolderMissing";
2404
+ }>;
2405
+ ruleChangedAt: z.ZodNumber;
2406
+ actionChangedAt: z.ZodNumber;
2407
+ matchOperator: z.ZodEnum<{
2408
+ And: "And";
2409
+ Or: "Or";
2410
+ }>;
2411
+ literalClauses: z.ZodArray<z.ZodObject<{
2412
+ field: z.ZodEnum<{
2413
+ From: "From";
2414
+ Subject: "Subject";
2415
+ HasWords: "HasWords";
2416
+ ListId: "ListId";
2417
+ FromDomain: "FromDomain";
2418
+ }>;
2419
+ value: z.ZodString;
2420
+ }, z.core.$strip>>;
2421
+ priority: z.ZodNumber;
2422
+ stop: z.ZodBoolean;
2423
+ actionLabelId: z.ZodString;
2424
+ actionMailboxId: z.ZodString;
2425
+ createdAt: z.ZodNumber;
2426
+ updatedAt: z.ZodNumber;
2427
+ rule: z.ZodObject<{
2428
+ version: z.ZodLiteral<1>;
2429
+ test: z.ZodUnion<readonly [z.ZodType<FilterAllOfTest, unknown, z.core.$ZodTypeInternals<FilterAllOfTest, unknown>>, z.ZodType<FilterAnyOfTest, unknown, z.core.$ZodTypeInternals<FilterAnyOfTest, unknown>>, z.ZodType<FilterNotTest, unknown, z.core.$ZodTypeInternals<FilterNotTest, unknown>>, z.ZodObject<{
2430
+ test: z.ZodLiteral<"header">;
2431
+ match: z.ZodEnum<{
2432
+ Is: "Is";
2433
+ Contains: "Contains";
2434
+ }>;
2435
+ header: z.ZodEnum<{
2436
+ From: "From";
2437
+ Subject: "Subject";
2438
+ ListId: "ListId";
2439
+ }>;
2440
+ key: z.ZodString;
2441
+ }, z.core.$strip>, z.ZodObject<{
2442
+ test: z.ZodLiteral<"address">;
2443
+ match: z.ZodEnum<{
2444
+ Is: "Is";
2445
+ Contains: "Contains";
2446
+ }>;
2447
+ part: z.ZodEnum<{
2448
+ All: "All";
2449
+ Localpart: "Localpart";
2450
+ Domain: "Domain";
2451
+ RegistrableDomain: "RegistrableDomain";
2452
+ }>;
2453
+ key: z.ZodString;
2454
+ }, z.core.$strip>, z.ZodObject<{
2455
+ test: z.ZodLiteral<"hasWords">;
2456
+ words: z.ZodArray<z.ZodString>;
2457
+ }, z.core.$strip>, z.ZodObject<{
2458
+ test: z.ZodLiteral<"classification">;
2459
+ label: z.ZodEnum<{
2460
+ Spam: "Spam";
2461
+ Phishing: "Phishing";
2462
+ Priority: "Priority";
2463
+ Personal: "Personal";
2464
+ Newsletter: "Newsletter";
2465
+ Marketing: "Marketing";
2466
+ Automated: "Automated";
2467
+ Transactional: "Transactional";
2468
+ Social: "Social";
2469
+ ColdOutreach: "ColdOutreach";
2470
+ }>;
2471
+ }, z.core.$strip>]>;
2472
+ }, z.core.$strip>;
2473
+ }, z.core.$strip>;
2474
+ export declare const CreateFilterInputSchema: z.ZodObject<{
2475
+ name: z.ZodString;
2476
+ scope: z.ZodEnum<{
2477
+ Standing: "Standing";
2478
+ Temporary: "Temporary";
2479
+ }>;
2480
+ expiresAt: z.ZodOptional<z.ZodString>;
2481
+ matchOperator: z.ZodEnum<{
2482
+ And: "And";
2483
+ Or: "Or";
2484
+ }>;
2485
+ actionLabelId: z.ZodString;
2486
+ actionMailboxId: z.ZodString;
2487
+ priority: z.ZodOptional<z.ZodNumber>;
2488
+ stop: z.ZodOptional<z.ZodBoolean>;
2489
+ literalClauses: z.ZodOptional<z.ZodArray<z.ZodObject<{
2490
+ field: z.ZodEnum<{
2491
+ From: "From";
2492
+ Subject: "Subject";
2493
+ HasWords: "HasWords";
2494
+ ListId: "ListId";
2495
+ FromDomain: "FromDomain";
2496
+ }>;
2497
+ value: z.ZodString;
2498
+ }, z.core.$strip>>>;
2499
+ rule: z.ZodOptional<z.ZodObject<{
2500
+ version: z.ZodLiteral<1>;
2501
+ test: z.ZodUnion<readonly [z.ZodType<FilterAllOfTest, unknown, z.core.$ZodTypeInternals<FilterAllOfTest, unknown>>, z.ZodType<FilterAnyOfTest, unknown, z.core.$ZodTypeInternals<FilterAnyOfTest, unknown>>, z.ZodType<FilterNotTest, unknown, z.core.$ZodTypeInternals<FilterNotTest, unknown>>, z.ZodObject<{
2502
+ test: z.ZodLiteral<"header">;
2503
+ match: z.ZodEnum<{
2504
+ Is: "Is";
2505
+ Contains: "Contains";
2506
+ }>;
2507
+ header: z.ZodEnum<{
2508
+ From: "From";
2509
+ Subject: "Subject";
2510
+ ListId: "ListId";
2511
+ }>;
2512
+ key: z.ZodString;
2513
+ }, z.core.$strip>, z.ZodObject<{
2514
+ test: z.ZodLiteral<"address">;
2515
+ match: z.ZodEnum<{
2516
+ Is: "Is";
2517
+ Contains: "Contains";
2518
+ }>;
2519
+ part: z.ZodEnum<{
2520
+ All: "All";
2521
+ Localpart: "Localpart";
2522
+ Domain: "Domain";
2523
+ RegistrableDomain: "RegistrableDomain";
2524
+ }>;
2525
+ key: z.ZodString;
2526
+ }, z.core.$strip>, z.ZodObject<{
2527
+ test: z.ZodLiteral<"hasWords">;
2528
+ words: z.ZodArray<z.ZodString>;
2529
+ }, z.core.$strip>, z.ZodObject<{
2530
+ test: z.ZodLiteral<"classification">;
2531
+ label: z.ZodEnum<{
2532
+ Spam: "Spam";
2533
+ Phishing: "Phishing";
2534
+ Priority: "Priority";
2535
+ Personal: "Personal";
2536
+ Newsletter: "Newsletter";
2537
+ Marketing: "Marketing";
2538
+ Automated: "Automated";
2539
+ Transactional: "Transactional";
2540
+ Social: "Social";
2541
+ ColdOutreach: "ColdOutreach";
2542
+ }>;
2543
+ }, z.core.$strip>]>;
2544
+ }, z.core.$strip>>;
2545
+ }, z.core.$strip>;
2546
+ export declare const CreateFilterResponseSchema: z.ZodObject<{
2547
+ filterId: z.ZodString;
2548
+ accountConfigId: z.ZodString;
2186
2549
  name: z.ZodString;
2187
2550
  scope: z.ZodEnum<{
2188
2551
  Standing: "Standing";
@@ -3067,350 +3430,6 @@ export declare const CalendarFreeBusyResponseSchema: z.ZodObject<{
3067
3430
  end: z.ZodString;
3068
3431
  }, z.core.$strip>>;
3069
3432
  }, z.core.$strip>;
3070
- export declare const ClassificationPricedSchema: z.ZodObject<{
3071
- state: z.ZodLiteral<"Priced">;
3072
- currency: z.ZodLiteral<"USD">;
3073
- perMillionInputTokens: z.ZodNumber;
3074
- }, z.core.$strip>;
3075
- export declare const ClassificationNoPriceSchema: z.ZodObject<{
3076
- state: z.ZodLiteral<"NoPrice">;
3077
- }, z.core.$strip>;
3078
- export declare const ClassificationPresetSchema: z.ZodObject<{
3079
- presetId: z.ZodEnum<{
3080
- Jev: "Jev";
3081
- Jina: "Jina";
3082
- Mistral: "Mistral";
3083
- Gemini: "Gemini";
3084
- OpenAiCompatible: "OpenAiCompatible";
3085
- Local: "Local";
3086
- }>;
3087
- label: z.ZodString;
3088
- group: z.ZodEnum<{
3089
- Local: "Local";
3090
- Hosted: "Hosted";
3091
- Custom: "Custom";
3092
- }>;
3093
- adapterShape: z.ZodEnum<{
3094
- DecisionApi: "DecisionApi";
3095
- ChatJsonSchema: "ChatJsonSchema";
3096
- JinaClassify: "JinaClassify";
3097
- }>;
3098
- defaultBaseUrl: z.ZodOptional<z.ZodString>;
3099
- defaultModel: z.ZodString;
3100
- needsKey: z.ZodBoolean;
3101
- price: z.ZodUnion<readonly [z.ZodObject<{
3102
- state: z.ZodLiteral<"Priced">;
3103
- currency: z.ZodLiteral<"USD">;
3104
- perMillionInputTokens: z.ZodNumber;
3105
- }, z.core.$strip>, z.ZodObject<{
3106
- state: z.ZodLiteral<"NoPrice">;
3107
- }, z.core.$strip>]>;
3108
- }, z.core.$strip>;
3109
- export declare const ClassificationNotConfiguredSchema: z.ZodObject<{
3110
- state: z.ZodLiteral<"NotConfigured">;
3111
- }, z.core.$strip>;
3112
- export declare const ClassificationSourcesSchema: z.ZodObject<{
3113
- presetId: z.ZodEnum<{
3114
- Default: "Default";
3115
- Saved: "Saved";
3116
- Deployment: "Deployment";
3117
- }>;
3118
- model: z.ZodEnum<{
3119
- Default: "Default";
3120
- Saved: "Saved";
3121
- Deployment: "Deployment";
3122
- }>;
3123
- baseUrl: z.ZodEnum<{
3124
- Default: "Default";
3125
- Saved: "Saved";
3126
- Deployment: "Deployment";
3127
- }>;
3128
- apiKey: z.ZodEnum<{
3129
- Default: "Default";
3130
- Saved: "Saved";
3131
- Deployment: "Deployment";
3132
- }>;
3133
- enabled: z.ZodEnum<{
3134
- Default: "Default";
3135
- Saved: "Saved";
3136
- Deployment: "Deployment";
3137
- }>;
3138
- dailyLimit: z.ZodEnum<{
3139
- Default: "Default";
3140
- Saved: "Saved";
3141
- Deployment: "Deployment";
3142
- }>;
3143
- }, z.core.$strip>;
3144
- export declare const ClassificationCostPricedSchema: z.ZodObject<{
3145
- state: z.ZodLiteral<"Priced">;
3146
- currency: z.ZodLiteral<"USD">;
3147
- amount: z.ZodNumber;
3148
- }, z.core.$strip>;
3149
- export declare const ClassificationUsageSchema: z.ZodObject<{
3150
- accountId: z.ZodString;
3151
- calls: z.ZodNumber;
3152
- dailyLimit: z.ZodNumber;
3153
- resetsAt: z.ZodString;
3154
- cost: z.ZodUnion<readonly [z.ZodObject<{
3155
- state: z.ZodLiteral<"Priced">;
3156
- currency: z.ZodLiteral<"USD">;
3157
- amount: z.ZodNumber;
3158
- }, z.core.$strip>, z.ZodObject<{
3159
- state: z.ZodLiteral<"NoPrice">;
3160
- }, z.core.$strip>]>;
3161
- }, z.core.$strip>;
3162
- export declare const ClassificationConfiguredSchema: z.ZodObject<{
3163
- state: z.ZodLiteral<"Configured">;
3164
- presetId: z.ZodEnum<{
3165
- Jev: "Jev";
3166
- Jina: "Jina";
3167
- Mistral: "Mistral";
3168
- Gemini: "Gemini";
3169
- OpenAiCompatible: "OpenAiCompatible";
3170
- Local: "Local";
3171
- }>;
3172
- model: z.ZodString;
3173
- baseUrl: z.ZodString;
3174
- enabled: z.ZodBoolean;
3175
- dailyLimit: z.ZodNumber;
3176
- sources: z.ZodObject<{
3177
- presetId: z.ZodEnum<{
3178
- Default: "Default";
3179
- Saved: "Saved";
3180
- Deployment: "Deployment";
3181
- }>;
3182
- model: z.ZodEnum<{
3183
- Default: "Default";
3184
- Saved: "Saved";
3185
- Deployment: "Deployment";
3186
- }>;
3187
- baseUrl: z.ZodEnum<{
3188
- Default: "Default";
3189
- Saved: "Saved";
3190
- Deployment: "Deployment";
3191
- }>;
3192
- apiKey: z.ZodEnum<{
3193
- Default: "Default";
3194
- Saved: "Saved";
3195
- Deployment: "Deployment";
3196
- }>;
3197
- enabled: z.ZodEnum<{
3198
- Default: "Default";
3199
- Saved: "Saved";
3200
- Deployment: "Deployment";
3201
- }>;
3202
- dailyLimit: z.ZodEnum<{
3203
- Default: "Default";
3204
- Saved: "Saved";
3205
- Deployment: "Deployment";
3206
- }>;
3207
- }, z.core.$strip>;
3208
- usage: z.ZodArray<z.ZodObject<{
3209
- accountId: z.ZodString;
3210
- calls: z.ZodNumber;
3211
- dailyLimit: z.ZodNumber;
3212
- resetsAt: z.ZodString;
3213
- cost: z.ZodUnion<readonly [z.ZodObject<{
3214
- state: z.ZodLiteral<"Priced">;
3215
- currency: z.ZodLiteral<"USD">;
3216
- amount: z.ZodNumber;
3217
- }, z.core.$strip>, z.ZodObject<{
3218
- state: z.ZodLiteral<"NoPrice">;
3219
- }, z.core.$strip>]>;
3220
- }, z.core.$strip>>;
3221
- }, z.core.$strip>;
3222
- export declare const ClassificationUnrunnableSchema: z.ZodObject<{
3223
- state: z.ZodLiteral<"Unrunnable">;
3224
- presetId: z.ZodEnum<{
3225
- Jev: "Jev";
3226
- Jina: "Jina";
3227
- Mistral: "Mistral";
3228
- Gemini: "Gemini";
3229
- OpenAiCompatible: "OpenAiCompatible";
3230
- Local: "Local";
3231
- }>;
3232
- reason: z.ZodEnum<{
3233
- NoBaseUrl: "NoBaseUrl";
3234
- NoApiKey: "NoApiKey";
3235
- }>;
3236
- }, z.core.$strip>;
3237
- export declare const SpamThresholdsUnsetSchema: z.ZodObject<{
3238
- state: z.ZodLiteral<"Unset">;
3239
- }, z.core.$strip>;
3240
- export declare const SpamThresholdsSetSchema: z.ZodObject<{
3241
- state: z.ZodLiteral<"Set">;
3242
- cleanBelow: z.ZodNumber;
3243
- spamAt: z.ZodNumber;
3244
- }, z.core.$strip>;
3245
- export declare const SpamSettingsSchema: z.ZodObject<{
3246
- thresholds: z.ZodUnion<readonly [z.ZodObject<{
3247
- state: z.ZodLiteral<"Unset">;
3248
- }, z.core.$strip>, z.ZodObject<{
3249
- state: z.ZodLiteral<"Set">;
3250
- cleanBelow: z.ZodNumber;
3251
- spamAt: z.ZodNumber;
3252
- }, z.core.$strip>]>;
3253
- spamPlacement: z.ZodEnum<{
3254
- MoveToSpam: "MoveToSpam";
3255
- WarnOnly: "WarnOnly";
3256
- }>;
3257
- phishingPlacement: z.ZodEnum<{
3258
- MoveToSpam: "MoveToSpam";
3259
- WarnOnly: "WarnOnly";
3260
- }>;
3261
- }, z.core.$strip>;
3262
- export declare const UserSettingsResponseSchema: z.ZodObject<{
3263
- defaultInvitationSenderAccountId: z.ZodOptional<z.ZodString>;
3264
- defaultInvitationSenderChosen: z.ZodBoolean;
3265
- classificationPresets: z.ZodArray<z.ZodObject<{
3266
- presetId: z.ZodEnum<{
3267
- Jev: "Jev";
3268
- Jina: "Jina";
3269
- Mistral: "Mistral";
3270
- Gemini: "Gemini";
3271
- OpenAiCompatible: "OpenAiCompatible";
3272
- Local: "Local";
3273
- }>;
3274
- label: z.ZodString;
3275
- group: z.ZodEnum<{
3276
- Local: "Local";
3277
- Hosted: "Hosted";
3278
- Custom: "Custom";
3279
- }>;
3280
- adapterShape: z.ZodEnum<{
3281
- DecisionApi: "DecisionApi";
3282
- ChatJsonSchema: "ChatJsonSchema";
3283
- JinaClassify: "JinaClassify";
3284
- }>;
3285
- defaultBaseUrl: z.ZodOptional<z.ZodString>;
3286
- defaultModel: z.ZodString;
3287
- needsKey: z.ZodBoolean;
3288
- price: z.ZodUnion<readonly [z.ZodObject<{
3289
- state: z.ZodLiteral<"Priced">;
3290
- currency: z.ZodLiteral<"USD">;
3291
- perMillionInputTokens: z.ZodNumber;
3292
- }, z.core.$strip>, z.ZodObject<{
3293
- state: z.ZodLiteral<"NoPrice">;
3294
- }, z.core.$strip>]>;
3295
- }, z.core.$strip>>;
3296
- classification: z.ZodUnion<readonly [z.ZodObject<{
3297
- state: z.ZodLiteral<"NotConfigured">;
3298
- }, z.core.$strip>, z.ZodObject<{
3299
- state: z.ZodLiteral<"Configured">;
3300
- presetId: z.ZodEnum<{
3301
- Jev: "Jev";
3302
- Jina: "Jina";
3303
- Mistral: "Mistral";
3304
- Gemini: "Gemini";
3305
- OpenAiCompatible: "OpenAiCompatible";
3306
- Local: "Local";
3307
- }>;
3308
- model: z.ZodString;
3309
- baseUrl: z.ZodString;
3310
- enabled: z.ZodBoolean;
3311
- dailyLimit: z.ZodNumber;
3312
- sources: z.ZodObject<{
3313
- presetId: z.ZodEnum<{
3314
- Default: "Default";
3315
- Saved: "Saved";
3316
- Deployment: "Deployment";
3317
- }>;
3318
- model: z.ZodEnum<{
3319
- Default: "Default";
3320
- Saved: "Saved";
3321
- Deployment: "Deployment";
3322
- }>;
3323
- baseUrl: z.ZodEnum<{
3324
- Default: "Default";
3325
- Saved: "Saved";
3326
- Deployment: "Deployment";
3327
- }>;
3328
- apiKey: z.ZodEnum<{
3329
- Default: "Default";
3330
- Saved: "Saved";
3331
- Deployment: "Deployment";
3332
- }>;
3333
- enabled: z.ZodEnum<{
3334
- Default: "Default";
3335
- Saved: "Saved";
3336
- Deployment: "Deployment";
3337
- }>;
3338
- dailyLimit: z.ZodEnum<{
3339
- Default: "Default";
3340
- Saved: "Saved";
3341
- Deployment: "Deployment";
3342
- }>;
3343
- }, z.core.$strip>;
3344
- usage: z.ZodArray<z.ZodObject<{
3345
- accountId: z.ZodString;
3346
- calls: z.ZodNumber;
3347
- dailyLimit: z.ZodNumber;
3348
- resetsAt: z.ZodString;
3349
- cost: z.ZodUnion<readonly [z.ZodObject<{
3350
- state: z.ZodLiteral<"Priced">;
3351
- currency: z.ZodLiteral<"USD">;
3352
- amount: z.ZodNumber;
3353
- }, z.core.$strip>, z.ZodObject<{
3354
- state: z.ZodLiteral<"NoPrice">;
3355
- }, z.core.$strip>]>;
3356
- }, z.core.$strip>>;
3357
- }, z.core.$strip>, z.ZodObject<{
3358
- state: z.ZodLiteral<"Unrunnable">;
3359
- presetId: z.ZodEnum<{
3360
- Jev: "Jev";
3361
- Jina: "Jina";
3362
- Mistral: "Mistral";
3363
- Gemini: "Gemini";
3364
- OpenAiCompatible: "OpenAiCompatible";
3365
- Local: "Local";
3366
- }>;
3367
- reason: z.ZodEnum<{
3368
- NoBaseUrl: "NoBaseUrl";
3369
- NoApiKey: "NoApiKey";
3370
- }>;
3371
- }, z.core.$strip>]>;
3372
- spam: z.ZodObject<{
3373
- thresholds: z.ZodUnion<readonly [z.ZodObject<{
3374
- state: z.ZodLiteral<"Unset">;
3375
- }, z.core.$strip>, z.ZodObject<{
3376
- state: z.ZodLiteral<"Set">;
3377
- cleanBelow: z.ZodNumber;
3378
- spamAt: z.ZodNumber;
3379
- }, z.core.$strip>]>;
3380
- spamPlacement: z.ZodEnum<{
3381
- MoveToSpam: "MoveToSpam";
3382
- WarnOnly: "WarnOnly";
3383
- }>;
3384
- phishingPlacement: z.ZodEnum<{
3385
- MoveToSpam: "MoveToSpam";
3386
- WarnOnly: "WarnOnly";
3387
- }>;
3388
- }, z.core.$strip>;
3389
- }, z.core.$strip>;
3390
- export declare const UpdateUserSettingsInputSchema: z.ZodObject<{
3391
- defaultInvitationSenderAccountId: z.ZodOptional<z.ZodString>;
3392
- classificationPresetId: z.ZodOptional<z.ZodEnum<{
3393
- Jev: "Jev";
3394
- Jina: "Jina";
3395
- Mistral: "Mistral";
3396
- Gemini: "Gemini";
3397
- OpenAiCompatible: "OpenAiCompatible";
3398
- Local: "Local";
3399
- }>>;
3400
- classificationModel: z.ZodOptional<z.ZodString>;
3401
- classificationBaseUrl: z.ZodOptional<z.ZodString>;
3402
- classificationApiKey: z.ZodOptional<z.ZodString>;
3403
- classificationEnabled: z.ZodOptional<z.ZodBoolean>;
3404
- classificationDailyLimit: z.ZodOptional<z.ZodNumber>;
3405
- spamPlacementSpam: z.ZodOptional<z.ZodEnum<{
3406
- MoveToSpam: "MoveToSpam";
3407
- WarnOnly: "WarnOnly";
3408
- }>>;
3409
- spamPlacementPhishing: z.ZodOptional<z.ZodEnum<{
3410
- MoveToSpam: "MoveToSpam";
3411
- WarnOnly: "WarnOnly";
3412
- }>>;
3413
- }, z.core.$strip>;
3414
3433
  export declare const ClassificationTestInputSchema: z.ZodObject<{
3415
3434
  presetId: z.ZodEnum<{
3416
3435
  Jev: "Jev";