@swiss-ai-hub/web 0.315.0 → 0.315.2

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.
@@ -5694,6 +5694,18 @@ export const ContextualizedAgentEventSchema = {
5694
5694
  {
5695
5695
  $ref: "#/components/schemas/StoreOrganizationMemoryEvent",
5696
5696
  },
5697
+ {
5698
+ $ref: "#/components/schemas/UnreadMailListedEvent",
5699
+ },
5700
+ {
5701
+ $ref: "#/components/schemas/MailFetchedEvent",
5702
+ },
5703
+ {
5704
+ $ref: "#/components/schemas/MailMovedEvent",
5705
+ },
5706
+ {
5707
+ $ref: "#/components/schemas/MailBatchDraftedEvent",
5708
+ },
5697
5709
  ],
5698
5710
  title: "Event",
5699
5711
  description: "Data of the event itself.",
@@ -7212,6 +7224,62 @@ export const DocumentUploadValidationResponseSchema = {
7212
7224
  "Response containing the validation result of a file upload.\n\nThis response indicates whether the uploaded file exists in the globally\nconfigured datalake and provides information about the validation process.",
7213
7225
  } as const;
7214
7226
 
7227
+ export const DraftedReplyRefSchema = {
7228
+ properties: {
7229
+ source_uid: {
7230
+ type: "string",
7231
+ title: "Source Uid",
7232
+ description: "IMAP UID of the source message within the source folder.",
7233
+ },
7234
+ drafts_folder: {
7235
+ type: "string",
7236
+ title: "Drafts Folder",
7237
+ description: "Folder the draft was appended to.",
7238
+ },
7239
+ draft_uid: {
7240
+ anyOf: [
7241
+ {
7242
+ type: "string",
7243
+ },
7244
+ {
7245
+ type: "null",
7246
+ },
7247
+ ],
7248
+ title: "Draft Uid",
7249
+ description:
7250
+ "IMAP UID assigned to the appended draft when the server reports APPENDUID.",
7251
+ },
7252
+ in_reply_to: {
7253
+ anyOf: [
7254
+ {
7255
+ type: "string",
7256
+ },
7257
+ {
7258
+ type: "null",
7259
+ },
7260
+ ],
7261
+ title: "In Reply To",
7262
+ description:
7263
+ "RFC Message-ID of the original message this draft replies to.",
7264
+ },
7265
+ subject: {
7266
+ type: "string",
7267
+ title: "Subject",
7268
+ description: "Subject of the draft reply.",
7269
+ },
7270
+ recipient: {
7271
+ type: "string",
7272
+ title: "Recipient",
7273
+ description: "Recipient the draft reply is addressed to.",
7274
+ },
7275
+ },
7276
+ type: "object",
7277
+ required: ["source_uid", "drafts_folder", "subject", "recipient"],
7278
+ title: "DraftedReplyRef",
7279
+ description:
7280
+ "A single reply draft produced during a batch drafting run — one per source message.",
7281
+ } as const;
7282
+
7215
7283
  export const EdgeDataSchema = {
7216
7284
  properties: {
7217
7285
  source: {
@@ -13718,6 +13786,353 @@ export const LogprobSchema = {
13718
13786
  title: "Logprob",
13719
13787
  } as const;
13720
13788
 
13789
+ export const MailAttachmentRefSchema = {
13790
+ properties: {
13791
+ filename: {
13792
+ type: "string",
13793
+ pattern: "^[^/\\\\]+$",
13794
+ title: "Filename",
13795
+ description:
13796
+ "Original attachment filename, including extension. Must not contain path separators.",
13797
+ },
13798
+ content_type: {
13799
+ type: "string",
13800
+ title: "Content Type",
13801
+ description: "MIME type of the attachment.",
13802
+ examples: ["application/pdf"],
13803
+ },
13804
+ file_id: {
13805
+ type: "string",
13806
+ pattern:
13807
+ "^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$",
13808
+ title: "File Id",
13809
+ description:
13810
+ "UUID4 file identifier; the S3 object key is derived from the agent identity at runtime.",
13811
+ },
13812
+ size_bytes: {
13813
+ type: "integer",
13814
+ minimum: 0,
13815
+ title: "Size Bytes",
13816
+ description: "Size of the stored attachment in bytes.",
13817
+ },
13818
+ },
13819
+ type: "object",
13820
+ required: ["filename", "content_type", "file_id", "size_bytes"],
13821
+ title: "MailAttachmentRef",
13822
+ description:
13823
+ "Reference to a fetched mail attachment whose bytes are stored in S3, not carried in the event.\n\nMirrors ``UserUploadedFile``: attachments are referenced by ``file_id`` (the S3 object key within the\nagent's dedicated bucket) so large binaries never bloat the persisted/streamed event.",
13824
+ } as const;
13825
+
13826
+ export const MailBatchDraftedEventSchema = {
13827
+ properties: {
13828
+ event_id: {
13829
+ type: "string",
13830
+ title: "Event Id",
13831
+ },
13832
+ created_at: {
13833
+ type: "integer",
13834
+ title: "Created At",
13835
+ description:
13836
+ "The time (in ns since epoch) the event was stored in the event store",
13837
+ },
13838
+ display_name: {
13839
+ anyOf: [
13840
+ {
13841
+ $ref: "#/components/schemas/LocaleString",
13842
+ },
13843
+ {
13844
+ type: "null",
13845
+ },
13846
+ ],
13847
+ description: "Display name for the event",
13848
+ },
13849
+ display_description: {
13850
+ anyOf: [
13851
+ {
13852
+ $ref: "#/components/schemas/LocaleString",
13853
+ },
13854
+ {
13855
+ type: "null",
13856
+ },
13857
+ ],
13858
+ description: "Display description for the event",
13859
+ },
13860
+ source_folder: {
13861
+ type: "string",
13862
+ title: "Source Folder",
13863
+ description: "Folder the drafted messages were read from.",
13864
+ },
13865
+ count: {
13866
+ type: "integer",
13867
+ title: "Count",
13868
+ description: "Number of reply drafts created in this run.",
13869
+ },
13870
+ drafted: {
13871
+ items: {
13872
+ $ref: "#/components/schemas/DraftedReplyRef",
13873
+ },
13874
+ type: "array",
13875
+ title: "Drafted",
13876
+ description: "Per-message references to the created reply drafts.",
13877
+ },
13878
+ _event_name: {
13879
+ type: "string",
13880
+ title: "Event Name",
13881
+ description:
13882
+ "The event type name, usually the class name. If unknown, uses _unknown_event_name.\nUsed during deserialization to decide which subclass to instantiate.",
13883
+ readOnly: true,
13884
+ },
13885
+ _parent_event_names: {
13886
+ items: {
13887
+ type: "string",
13888
+ },
13889
+ type: "array",
13890
+ title: "Parent Event Names",
13891
+ description:
13892
+ "Contains the names of all parent classes up until BaseEvent, ordered from deepest to least deep inheritance.",
13893
+ readOnly: true,
13894
+ },
13895
+ },
13896
+ additionalProperties: true,
13897
+ type: "object",
13898
+ required: ["source_folder", "count", "_event_name", "_parent_event_names"],
13899
+ title: "MailBatchDraftedEvent",
13900
+ description:
13901
+ "Records that a batch of reply drafts was appended to the Drafts folder for a human to review and send.\n\nThe agent never sends — the drafts sitting in Drafts are the human handoff. Each source message is left unread and\nmarked as drafted so it is not drafted again on the next run.",
13902
+ } as const;
13903
+
13904
+ export const MailFetchedEventSchema = {
13905
+ properties: {
13906
+ event_id: {
13907
+ type: "string",
13908
+ title: "Event Id",
13909
+ },
13910
+ created_at: {
13911
+ type: "integer",
13912
+ title: "Created At",
13913
+ description:
13914
+ "The time (in ns since epoch) the event was stored in the event store",
13915
+ },
13916
+ display_name: {
13917
+ anyOf: [
13918
+ {
13919
+ $ref: "#/components/schemas/LocaleString",
13920
+ },
13921
+ {
13922
+ type: "null",
13923
+ },
13924
+ ],
13925
+ description: "Display name for the event",
13926
+ },
13927
+ display_description: {
13928
+ anyOf: [
13929
+ {
13930
+ $ref: "#/components/schemas/LocaleString",
13931
+ },
13932
+ {
13933
+ type: "null",
13934
+ },
13935
+ ],
13936
+ description: "Display description for the event",
13937
+ },
13938
+ message_id: {
13939
+ type: "string",
13940
+ title: "Message Id",
13941
+ description: "IMAP UID of the fetched message within the inbox folder.",
13942
+ },
13943
+ sender: {
13944
+ type: "string",
13945
+ title: "Sender",
13946
+ description: "Raw From header of the message.",
13947
+ },
13948
+ subject: {
13949
+ type: "string",
13950
+ title: "Subject",
13951
+ description: "Subject header of the message.",
13952
+ },
13953
+ date: {
13954
+ anyOf: [
13955
+ {
13956
+ type: "string",
13957
+ format: "date-time",
13958
+ },
13959
+ {
13960
+ type: "null",
13961
+ },
13962
+ ],
13963
+ title: "Date",
13964
+ description: "Date header of the message, if parseable.",
13965
+ },
13966
+ body_text: {
13967
+ anyOf: [
13968
+ {
13969
+ type: "string",
13970
+ },
13971
+ {
13972
+ type: "null",
13973
+ },
13974
+ ],
13975
+ title: "Body Text",
13976
+ description: "Plain-text body of the message, if present.",
13977
+ },
13978
+ rfc_message_id: {
13979
+ anyOf: [
13980
+ {
13981
+ type: "string",
13982
+ },
13983
+ {
13984
+ type: "null",
13985
+ },
13986
+ ],
13987
+ title: "Rfc Message Id",
13988
+ description:
13989
+ "RFC Message-ID header of the message — used to thread a reply draft.",
13990
+ },
13991
+ references: {
13992
+ anyOf: [
13993
+ {
13994
+ type: "string",
13995
+ },
13996
+ {
13997
+ type: "null",
13998
+ },
13999
+ ],
14000
+ title: "References",
14001
+ description: "RFC References header of the message, if present.",
14002
+ },
14003
+ reply_to: {
14004
+ anyOf: [
14005
+ {
14006
+ type: "string",
14007
+ },
14008
+ {
14009
+ type: "null",
14010
+ },
14011
+ ],
14012
+ title: "Reply To",
14013
+ description: "Reply-To header of the message, if present.",
14014
+ },
14015
+ attachments: {
14016
+ items: {
14017
+ $ref: "#/components/schemas/MailAttachmentRef",
14018
+ },
14019
+ type: "array",
14020
+ title: "Attachments",
14021
+ description: "References to the message's attachments stored in S3.",
14022
+ },
14023
+ _event_name: {
14024
+ type: "string",
14025
+ title: "Event Name",
14026
+ description:
14027
+ "The event type name, usually the class name. If unknown, uses _unknown_event_name.\nUsed during deserialization to decide which subclass to instantiate.",
14028
+ readOnly: true,
14029
+ },
14030
+ _parent_event_names: {
14031
+ items: {
14032
+ type: "string",
14033
+ },
14034
+ type: "array",
14035
+ title: "Parent Event Names",
14036
+ description:
14037
+ "Contains the names of all parent classes up until BaseEvent, ordered from deepest to least deep inheritance.",
14038
+ readOnly: true,
14039
+ },
14040
+ },
14041
+ additionalProperties: true,
14042
+ type: "object",
14043
+ required: [
14044
+ "message_id",
14045
+ "sender",
14046
+ "subject",
14047
+ "_event_name",
14048
+ "_parent_event_names",
14049
+ ],
14050
+ title: "MailFetchedEvent",
14051
+ description:
14052
+ "Carries a single fetched message — headers, body, and references to its stored attachments.",
14053
+ } as const;
14054
+
14055
+ export const MailMovedEventSchema = {
14056
+ properties: {
14057
+ event_id: {
14058
+ type: "string",
14059
+ title: "Event Id",
14060
+ },
14061
+ created_at: {
14062
+ type: "integer",
14063
+ title: "Created At",
14064
+ description:
14065
+ "The time (in ns since epoch) the event was stored in the event store",
14066
+ },
14067
+ display_name: {
14068
+ anyOf: [
14069
+ {
14070
+ $ref: "#/components/schemas/LocaleString",
14071
+ },
14072
+ {
14073
+ type: "null",
14074
+ },
14075
+ ],
14076
+ description: "Display name for the event",
14077
+ },
14078
+ display_description: {
14079
+ anyOf: [
14080
+ {
14081
+ $ref: "#/components/schemas/LocaleString",
14082
+ },
14083
+ {
14084
+ type: "null",
14085
+ },
14086
+ ],
14087
+ description: "Display description for the event",
14088
+ },
14089
+ message_id: {
14090
+ type: "string",
14091
+ title: "Message Id",
14092
+ description: "IMAP UID of the moved message within its source folder.",
14093
+ },
14094
+ source_folder: {
14095
+ type: "string",
14096
+ title: "Source Folder",
14097
+ description: "Folder the message was moved out of.",
14098
+ },
14099
+ target_folder: {
14100
+ type: "string",
14101
+ title: "Target Folder",
14102
+ description: "Folder the message was moved into.",
14103
+ },
14104
+ _event_name: {
14105
+ type: "string",
14106
+ title: "Event Name",
14107
+ description:
14108
+ "The event type name, usually the class name. If unknown, uses _unknown_event_name.\nUsed during deserialization to decide which subclass to instantiate.",
14109
+ readOnly: true,
14110
+ },
14111
+ _parent_event_names: {
14112
+ items: {
14113
+ type: "string",
14114
+ },
14115
+ type: "array",
14116
+ title: "Parent Event Names",
14117
+ description:
14118
+ "Contains the names of all parent classes up until BaseEvent, ordered from deepest to least deep inheritance.",
14119
+ readOnly: true,
14120
+ },
14121
+ },
14122
+ additionalProperties: true,
14123
+ type: "object",
14124
+ required: [
14125
+ "message_id",
14126
+ "source_folder",
14127
+ "target_folder",
14128
+ "_event_name",
14129
+ "_parent_event_names",
14130
+ ],
14131
+ title: "MailMovedEvent",
14132
+ description:
14133
+ "Records that a message was moved from its source folder into a target folder on the IMAP server.",
14134
+ } as const;
14135
+
13721
14136
  export const MemoriesResponseSchema = {
13722
14137
  properties: {
13723
14138
  total: {
@@ -22412,10 +22827,125 @@ export const TranslationResponseSchema = {
22412
22827
  },
22413
22828
  },
22414
22829
  type: "object",
22415
- required: ["translated"],
22416
- title: "TranslationResponse",
22830
+ required: ["translated"],
22831
+ title: "TranslationResponse",
22832
+ description:
22833
+ "Response containing the translated LocaleString with all supported locales populated.",
22834
+ } as const;
22835
+
22836
+ export const UnreadMailListedEventSchema = {
22837
+ properties: {
22838
+ event_id: {
22839
+ type: "string",
22840
+ title: "Event Id",
22841
+ },
22842
+ created_at: {
22843
+ type: "integer",
22844
+ title: "Created At",
22845
+ description:
22846
+ "The time (in ns since epoch) the event was stored in the event store",
22847
+ },
22848
+ display_name: {
22849
+ anyOf: [
22850
+ {
22851
+ $ref: "#/components/schemas/LocaleString",
22852
+ },
22853
+ {
22854
+ type: "null",
22855
+ },
22856
+ ],
22857
+ description: "Display name for the event",
22858
+ },
22859
+ display_description: {
22860
+ anyOf: [
22861
+ {
22862
+ $ref: "#/components/schemas/LocaleString",
22863
+ },
22864
+ {
22865
+ type: "null",
22866
+ },
22867
+ ],
22868
+ description: "Display description for the event",
22869
+ },
22870
+ messages: {
22871
+ items: {
22872
+ $ref: "#/components/schemas/UnreadMailSummary",
22873
+ },
22874
+ type: "array",
22875
+ title: "Messages",
22876
+ description: "Header summaries of the unread messages in the inbox.",
22877
+ },
22878
+ _event_name: {
22879
+ type: "string",
22880
+ title: "Event Name",
22881
+ description:
22882
+ "The event type name, usually the class name. If unknown, uses _unknown_event_name.\nUsed during deserialization to decide which subclass to instantiate.",
22883
+ readOnly: true,
22884
+ },
22885
+ _parent_event_names: {
22886
+ items: {
22887
+ type: "string",
22888
+ },
22889
+ type: "array",
22890
+ title: "Parent Event Names",
22891
+ description:
22892
+ "Contains the names of all parent classes up until BaseEvent, ordered from deepest to least deep inheritance.",
22893
+ readOnly: true,
22894
+ },
22895
+ },
22896
+ additionalProperties: true,
22897
+ type: "object",
22898
+ required: ["_event_name", "_parent_event_names"],
22899
+ title: "UnreadMailListedEvent",
22900
+ description:
22901
+ "Carries the unread messages found in the configured inbox folder.",
22902
+ } as const;
22903
+
22904
+ export const UnreadMailSummarySchema = {
22905
+ properties: {
22906
+ message_id: {
22907
+ type: "string",
22908
+ title: "Message Id",
22909
+ description:
22910
+ "IMAP UID of the message within the inbox folder — stable across connections.",
22911
+ },
22912
+ sender: {
22913
+ type: "string",
22914
+ title: "Sender",
22915
+ description: "Raw From header of the message.",
22916
+ },
22917
+ subject: {
22918
+ type: "string",
22919
+ title: "Subject",
22920
+ description: "Subject header of the message.",
22921
+ },
22922
+ date: {
22923
+ anyOf: [
22924
+ {
22925
+ type: "string",
22926
+ format: "date-time",
22927
+ },
22928
+ {
22929
+ type: "null",
22930
+ },
22931
+ ],
22932
+ title: "Date",
22933
+ description: "Date header of the message, if parseable.",
22934
+ },
22935
+ flags: {
22936
+ items: {
22937
+ type: "string",
22938
+ },
22939
+ type: "array",
22940
+ title: "Flags",
22941
+ description: "IMAP flags set on the message.",
22942
+ },
22943
+ },
22944
+ type: "object",
22945
+ required: ["message_id", "sender", "subject"],
22946
+ title: "UnreadMailSummary",
22417
22947
  description:
22418
- "Response containing the translated LocaleString with all supported locales populated.",
22948
+ "Lightweight header summary of one unread message — enough for an agent to decide what to fetch.",
22419
22949
  } as const;
22420
22950
 
22421
22951
  export const UpdateAgentInstanceDTOSchema = {
@@ -26423,6 +26953,18 @@ export const ContextualizedAgentEventWritableSchema = {
26423
26953
  {
26424
26954
  $ref: "#/components/schemas/StoreOrganizationMemoryEventWritable",
26425
26955
  },
26956
+ {
26957
+ $ref: "#/components/schemas/UnreadMailListedEventWritable",
26958
+ },
26959
+ {
26960
+ $ref: "#/components/schemas/MailFetchedEventWritable",
26961
+ },
26962
+ {
26963
+ $ref: "#/components/schemas/MailMovedEventWritable",
26964
+ },
26965
+ {
26966
+ $ref: "#/components/schemas/MailBatchDraftedEventWritable",
26967
+ },
26426
26968
  ],
26427
26969
  title: "Event",
26428
26970
  description: "Data of the event itself.",
@@ -31285,6 +31827,253 @@ export const LocaleInputWritableSchema = {
31285
31827
  'A FormKit element for entering multi-language text (LocaleString values).\n\nThis element renders as a text input with language switching capability,\nallowing users to enter translations for all supported languages (de, en, fr, it)\nin a single compact UI component.\n\nThe frontend renders this as an input field with a language selector, where users\ncan switch between languages to enter the corresponding translation.\n\n### Form Duality\nWhen used in a Form, this element captures a LocaleString value with translations\nfor each language. The form submission returns a dict with language keys.\n\n### Example Usage\n```python\nclass MyAgentConfig(AgentConfig):\n custom_greeting: Annotated[\n LocaleString | LocaleInput,\n Field(description="Custom greeting message"),\n ]\n\n# Form mode - for rendering:\nconfig = MyAgentConfig(\n ...,\n custom_greeting=LocaleInput(label=LocaleString(en="Greeting", de="Begrüßung")),\n)\n\n# Data mode - from submission:\nconfig = MyAgentConfig(\n ...,\n custom_greeting=LocaleString(en="Hello", de="Hallo", fr="Bonjour", it="Ciao"),\n)\n```',
31286
31828
  } as const;
31287
31829
 
31830
+ export const MailBatchDraftedEventWritableSchema = {
31831
+ properties: {
31832
+ event_id: {
31833
+ type: "string",
31834
+ title: "Event Id",
31835
+ },
31836
+ created_at: {
31837
+ type: "integer",
31838
+ title: "Created At",
31839
+ description:
31840
+ "The time (in ns since epoch) the event was stored in the event store",
31841
+ },
31842
+ display_name: {
31843
+ anyOf: [
31844
+ {
31845
+ $ref: "#/components/schemas/LocaleString",
31846
+ },
31847
+ {
31848
+ type: "null",
31849
+ },
31850
+ ],
31851
+ description: "Display name for the event",
31852
+ },
31853
+ display_description: {
31854
+ anyOf: [
31855
+ {
31856
+ $ref: "#/components/schemas/LocaleString",
31857
+ },
31858
+ {
31859
+ type: "null",
31860
+ },
31861
+ ],
31862
+ description: "Display description for the event",
31863
+ },
31864
+ source_folder: {
31865
+ type: "string",
31866
+ title: "Source Folder",
31867
+ description: "Folder the drafted messages were read from.",
31868
+ },
31869
+ count: {
31870
+ type: "integer",
31871
+ title: "Count",
31872
+ description: "Number of reply drafts created in this run.",
31873
+ },
31874
+ drafted: {
31875
+ items: {
31876
+ $ref: "#/components/schemas/DraftedReplyRef",
31877
+ },
31878
+ type: "array",
31879
+ title: "Drafted",
31880
+ description: "Per-message references to the created reply drafts.",
31881
+ },
31882
+ },
31883
+ additionalProperties: true,
31884
+ type: "object",
31885
+ required: ["source_folder", "count"],
31886
+ title: "MailBatchDraftedEvent",
31887
+ description:
31888
+ "Records that a batch of reply drafts was appended to the Drafts folder for a human to review and send.\n\nThe agent never sends — the drafts sitting in Drafts are the human handoff. Each source message is left unread and\nmarked as drafted so it is not drafted again on the next run.",
31889
+ } as const;
31890
+
31891
+ export const MailFetchedEventWritableSchema = {
31892
+ properties: {
31893
+ event_id: {
31894
+ type: "string",
31895
+ title: "Event Id",
31896
+ },
31897
+ created_at: {
31898
+ type: "integer",
31899
+ title: "Created At",
31900
+ description:
31901
+ "The time (in ns since epoch) the event was stored in the event store",
31902
+ },
31903
+ display_name: {
31904
+ anyOf: [
31905
+ {
31906
+ $ref: "#/components/schemas/LocaleString",
31907
+ },
31908
+ {
31909
+ type: "null",
31910
+ },
31911
+ ],
31912
+ description: "Display name for the event",
31913
+ },
31914
+ display_description: {
31915
+ anyOf: [
31916
+ {
31917
+ $ref: "#/components/schemas/LocaleString",
31918
+ },
31919
+ {
31920
+ type: "null",
31921
+ },
31922
+ ],
31923
+ description: "Display description for the event",
31924
+ },
31925
+ message_id: {
31926
+ type: "string",
31927
+ title: "Message Id",
31928
+ description: "IMAP UID of the fetched message within the inbox folder.",
31929
+ },
31930
+ sender: {
31931
+ type: "string",
31932
+ title: "Sender",
31933
+ description: "Raw From header of the message.",
31934
+ },
31935
+ subject: {
31936
+ type: "string",
31937
+ title: "Subject",
31938
+ description: "Subject header of the message.",
31939
+ },
31940
+ date: {
31941
+ anyOf: [
31942
+ {
31943
+ type: "string",
31944
+ format: "date-time",
31945
+ },
31946
+ {
31947
+ type: "null",
31948
+ },
31949
+ ],
31950
+ title: "Date",
31951
+ description: "Date header of the message, if parseable.",
31952
+ },
31953
+ body_text: {
31954
+ anyOf: [
31955
+ {
31956
+ type: "string",
31957
+ },
31958
+ {
31959
+ type: "null",
31960
+ },
31961
+ ],
31962
+ title: "Body Text",
31963
+ description: "Plain-text body of the message, if present.",
31964
+ },
31965
+ rfc_message_id: {
31966
+ anyOf: [
31967
+ {
31968
+ type: "string",
31969
+ },
31970
+ {
31971
+ type: "null",
31972
+ },
31973
+ ],
31974
+ title: "Rfc Message Id",
31975
+ description:
31976
+ "RFC Message-ID header of the message — used to thread a reply draft.",
31977
+ },
31978
+ references: {
31979
+ anyOf: [
31980
+ {
31981
+ type: "string",
31982
+ },
31983
+ {
31984
+ type: "null",
31985
+ },
31986
+ ],
31987
+ title: "References",
31988
+ description: "RFC References header of the message, if present.",
31989
+ },
31990
+ reply_to: {
31991
+ anyOf: [
31992
+ {
31993
+ type: "string",
31994
+ },
31995
+ {
31996
+ type: "null",
31997
+ },
31998
+ ],
31999
+ title: "Reply To",
32000
+ description: "Reply-To header of the message, if present.",
32001
+ },
32002
+ attachments: {
32003
+ items: {
32004
+ $ref: "#/components/schemas/MailAttachmentRef",
32005
+ },
32006
+ type: "array",
32007
+ title: "Attachments",
32008
+ description: "References to the message's attachments stored in S3.",
32009
+ },
32010
+ },
32011
+ additionalProperties: true,
32012
+ type: "object",
32013
+ required: ["message_id", "sender", "subject"],
32014
+ title: "MailFetchedEvent",
32015
+ description:
32016
+ "Carries a single fetched message — headers, body, and references to its stored attachments.",
32017
+ } as const;
32018
+
32019
+ export const MailMovedEventWritableSchema = {
32020
+ properties: {
32021
+ event_id: {
32022
+ type: "string",
32023
+ title: "Event Id",
32024
+ },
32025
+ created_at: {
32026
+ type: "integer",
32027
+ title: "Created At",
32028
+ description:
32029
+ "The time (in ns since epoch) the event was stored in the event store",
32030
+ },
32031
+ display_name: {
32032
+ anyOf: [
32033
+ {
32034
+ $ref: "#/components/schemas/LocaleString",
32035
+ },
32036
+ {
32037
+ type: "null",
32038
+ },
32039
+ ],
32040
+ description: "Display name for the event",
32041
+ },
32042
+ display_description: {
32043
+ anyOf: [
32044
+ {
32045
+ $ref: "#/components/schemas/LocaleString",
32046
+ },
32047
+ {
32048
+ type: "null",
32049
+ },
32050
+ ],
32051
+ description: "Display description for the event",
32052
+ },
32053
+ message_id: {
32054
+ type: "string",
32055
+ title: "Message Id",
32056
+ description: "IMAP UID of the moved message within its source folder.",
32057
+ },
32058
+ source_folder: {
32059
+ type: "string",
32060
+ title: "Source Folder",
32061
+ description: "Folder the message was moved out of.",
32062
+ },
32063
+ target_folder: {
32064
+ type: "string",
32065
+ title: "Target Folder",
32066
+ description: "Folder the message was moved into.",
32067
+ },
32068
+ },
32069
+ additionalProperties: true,
32070
+ type: "object",
32071
+ required: ["message_id", "source_folder", "target_folder"],
32072
+ title: "MailMovedEvent",
32073
+ description:
32074
+ "Records that a message was moved from its source folder into a target folder on the IMAP server.",
32075
+ } as const;
32076
+
31288
32077
  export const MessageWritableSchema = {
31289
32078
  properties: {
31290
32079
  role: {
@@ -36590,6 +37379,56 @@ export const ToolEventWritableSchema = {
36590
37379
  title: "ToolEvent",
36591
37380
  } as const;
36592
37381
 
37382
+ export const UnreadMailListedEventWritableSchema = {
37383
+ properties: {
37384
+ event_id: {
37385
+ type: "string",
37386
+ title: "Event Id",
37387
+ },
37388
+ created_at: {
37389
+ type: "integer",
37390
+ title: "Created At",
37391
+ description:
37392
+ "The time (in ns since epoch) the event was stored in the event store",
37393
+ },
37394
+ display_name: {
37395
+ anyOf: [
37396
+ {
37397
+ $ref: "#/components/schemas/LocaleString",
37398
+ },
37399
+ {
37400
+ type: "null",
37401
+ },
37402
+ ],
37403
+ description: "Display name for the event",
37404
+ },
37405
+ display_description: {
37406
+ anyOf: [
37407
+ {
37408
+ $ref: "#/components/schemas/LocaleString",
37409
+ },
37410
+ {
37411
+ type: "null",
37412
+ },
37413
+ ],
37414
+ description: "Display description for the event",
37415
+ },
37416
+ messages: {
37417
+ items: {
37418
+ $ref: "#/components/schemas/UnreadMailSummary",
37419
+ },
37420
+ type: "array",
37421
+ title: "Messages",
37422
+ description: "Header summaries of the unread messages in the inbox.",
37423
+ },
37424
+ },
37425
+ additionalProperties: true,
37426
+ type: "object",
37427
+ title: "UnreadMailListedEvent",
37428
+ description:
37429
+ "Carries the unread messages found in the configured inbox folder.",
37430
+ } as const;
37431
+
36593
37432
  export const UserMessageEventWritableSchema = {
36594
37433
  properties: {
36595
37434
  event_id: {