@remit/api-zod-schemas 0.0.88 → 0.0.89

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
@@ -406,6 +406,49 @@ export declare const PlacementConfidenceSchema: z.ZodEnum<{
406
406
  Confident: "Confident";
407
407
  Unsure: "Unsure";
408
408
  }>;
409
+ export declare const SpamSenderScreenRuleSchema: z.ZodEnum<{
410
+ Newsletter: "Newsletter";
411
+ ReportedSender: "ReportedSender";
412
+ NeverSpam: "NeverSpam";
413
+ Vip: "Vip";
414
+ WellKnown: "WellKnown";
415
+ }>;
416
+ export declare const SpamActionSchema: z.ZodEnum<{
417
+ Junk: "Junk";
418
+ None: "None";
419
+ Warn: "Warn";
420
+ }>;
421
+ export declare const SpamKindSchema: z.ZodEnum<{
422
+ Spam: "Spam";
423
+ Phishing: "Phishing";
424
+ }>;
425
+ export declare const SpamReasonNameSchema: z.ZodEnum<{
426
+ DmarcFail: "DmarcFail";
427
+ SignerMismatch: "SignerMismatch";
428
+ ReplyToMismatch: "ReplyToMismatch";
429
+ LinkTextMismatch: "LinkTextMismatch";
430
+ LinkDomainDistant: "LinkDomainDistant";
431
+ PunycodeDomain: "PunycodeDomain";
432
+ MixedScriptDomain: "MixedScriptDomain";
433
+ ConfusableDomains: "ConfusableDomains";
434
+ SingleOffDomainLink: "SingleOffDomainLink";
435
+ GeneratedName: "GeneratedName";
436
+ FirstContactDomain: "FirstContactDomain";
437
+ RecentlyRegisteredDomain: "RecentlyRegisteredDomain";
438
+ UnknownRegistrationDate: "UnknownRegistrationDate";
439
+ ClassifierSpam: "ClassifierSpam";
440
+ ClassifierPhishing: "ClassifierPhishing";
441
+ ProviderSpam: "ProviderSpam";
442
+ DisplayNameForeignAddress: "DisplayNameForeignAddress";
443
+ DisplayNameLookalike: "DisplayNameLookalike";
444
+ BackendSymbol: "BackendSymbol";
445
+ }>;
446
+ export declare const SpamFailureKindSchema: z.ZodEnum<{
447
+ Unreachable: "Unreachable";
448
+ TimedOut: "TimedOut";
449
+ Unparseable: "Unparseable";
450
+ ServiceError: "ServiceError";
451
+ }>;
409
452
  export declare const OutboxAttachmentStateSchema: z.ZodEnum<{
410
453
  Pending: "Pending";
411
454
  Stored: "Stored";
@@ -593,6 +636,11 @@ export declare const SyncWarningStateSchema: z.ZodEnum<{
593
636
  Retrying: "Retrying";
594
637
  GaveUp: "GaveUp";
595
638
  }>;
639
+ export declare const ProviderSpamVerdictSchema: z.ZodEnum<{
640
+ Spam: "Spam";
641
+ Clean: "Clean";
642
+ Absent: "Absent";
643
+ }>;
596
644
  export declare const MessagePlacementMoveStateSchema: z.ZodEnum<{
597
645
  pending: "pending";
598
646
  queued: "queued";
@@ -3630,6 +3678,112 @@ export declare const MessagePlacementVerdictSchema: z.ZodObject<{
3630
3678
  dryRun: z.ZodBoolean;
3631
3679
  decidedAt: z.ZodNumber;
3632
3680
  }, z.core.$strip>;
3681
+ export declare const SpamVerdictNotCheckedSchema: z.ZodObject<{
3682
+ state: z.ZodLiteral<"NotChecked">;
3683
+ }, z.core.$strip>;
3684
+ export declare const SpamScreenBySenderSchema: z.ZodObject<{
3685
+ rule: z.ZodEnum<{
3686
+ Newsletter: "Newsletter";
3687
+ ReportedSender: "ReportedSender";
3688
+ NeverSpam: "NeverSpam";
3689
+ Vip: "Vip";
3690
+ WellKnown: "WellKnown";
3691
+ }>;
3692
+ }, z.core.$strip>;
3693
+ export declare const SpamScreenByFilterSchema: z.ZodObject<{
3694
+ rule: z.ZodLiteral<"Filter">;
3695
+ filterId: z.ZodString;
3696
+ }, z.core.$strip>;
3697
+ export declare const SpamVerdictScreenedOutSchema: z.ZodObject<{
3698
+ state: z.ZodLiteral<"ScreenedOut">;
3699
+ screen: z.ZodUnion<readonly [z.ZodObject<{
3700
+ rule: z.ZodEnum<{
3701
+ Newsletter: "Newsletter";
3702
+ ReportedSender: "ReportedSender";
3703
+ NeverSpam: "NeverSpam";
3704
+ Vip: "Vip";
3705
+ WellKnown: "WellKnown";
3706
+ }>;
3707
+ }, z.core.$strip>, z.ZodObject<{
3708
+ rule: z.ZodLiteral<"Filter">;
3709
+ filterId: z.ZodString;
3710
+ }, z.core.$strip>]>;
3711
+ }, z.core.$strip>;
3712
+ export declare const SpamReasonSchema: z.ZodObject<{
3713
+ name: z.ZodEnum<{
3714
+ DmarcFail: "DmarcFail";
3715
+ SignerMismatch: "SignerMismatch";
3716
+ ReplyToMismatch: "ReplyToMismatch";
3717
+ LinkTextMismatch: "LinkTextMismatch";
3718
+ LinkDomainDistant: "LinkDomainDistant";
3719
+ PunycodeDomain: "PunycodeDomain";
3720
+ MixedScriptDomain: "MixedScriptDomain";
3721
+ ConfusableDomains: "ConfusableDomains";
3722
+ SingleOffDomainLink: "SingleOffDomainLink";
3723
+ GeneratedName: "GeneratedName";
3724
+ FirstContactDomain: "FirstContactDomain";
3725
+ RecentlyRegisteredDomain: "RecentlyRegisteredDomain";
3726
+ UnknownRegistrationDate: "UnknownRegistrationDate";
3727
+ ClassifierSpam: "ClassifierSpam";
3728
+ ClassifierPhishing: "ClassifierPhishing";
3729
+ ProviderSpam: "ProviderSpam";
3730
+ DisplayNameForeignAddress: "DisplayNameForeignAddress";
3731
+ DisplayNameLookalike: "DisplayNameLookalike";
3732
+ BackendSymbol: "BackendSymbol";
3733
+ }>;
3734
+ symbol: z.ZodString;
3735
+ score: z.ZodNumber;
3736
+ options: z.ZodArray<z.ZodString>;
3737
+ }, z.core.$strip>;
3738
+ export declare const SpamCheckedSchema: z.ZodObject<{
3739
+ state: z.ZodLiteral<"Checked">;
3740
+ score: z.ZodNumber;
3741
+ action: z.ZodEnum<{
3742
+ Junk: "Junk";
3743
+ None: "None";
3744
+ Warn: "Warn";
3745
+ }>;
3746
+ kind: z.ZodEnum<{
3747
+ Spam: "Spam";
3748
+ Phishing: "Phishing";
3749
+ }>;
3750
+ reasons: z.ZodArray<z.ZodObject<{
3751
+ name: z.ZodEnum<{
3752
+ DmarcFail: "DmarcFail";
3753
+ SignerMismatch: "SignerMismatch";
3754
+ ReplyToMismatch: "ReplyToMismatch";
3755
+ LinkTextMismatch: "LinkTextMismatch";
3756
+ LinkDomainDistant: "LinkDomainDistant";
3757
+ PunycodeDomain: "PunycodeDomain";
3758
+ MixedScriptDomain: "MixedScriptDomain";
3759
+ ConfusableDomains: "ConfusableDomains";
3760
+ SingleOffDomainLink: "SingleOffDomainLink";
3761
+ GeneratedName: "GeneratedName";
3762
+ FirstContactDomain: "FirstContactDomain";
3763
+ RecentlyRegisteredDomain: "RecentlyRegisteredDomain";
3764
+ UnknownRegistrationDate: "UnknownRegistrationDate";
3765
+ ClassifierSpam: "ClassifierSpam";
3766
+ ClassifierPhishing: "ClassifierPhishing";
3767
+ ProviderSpam: "ProviderSpam";
3768
+ DisplayNameForeignAddress: "DisplayNameForeignAddress";
3769
+ DisplayNameLookalike: "DisplayNameLookalike";
3770
+ BackendSymbol: "BackendSymbol";
3771
+ }>;
3772
+ symbol: z.ZodString;
3773
+ score: z.ZodNumber;
3774
+ options: z.ZodArray<z.ZodString>;
3775
+ }, z.core.$strip>>;
3776
+ modelCalled: z.ZodBoolean;
3777
+ }, z.core.$strip>;
3778
+ export declare const SpamFailedSchema: z.ZodObject<{
3779
+ state: z.ZodLiteral<"Failed">;
3780
+ kind: z.ZodEnum<{
3781
+ Unreachable: "Unreachable";
3782
+ TimedOut: "TimedOut";
3783
+ Unparseable: "Unparseable";
3784
+ ServiceError: "ServiceError";
3785
+ }>;
3786
+ }, z.core.$strip>;
3633
3787
  export declare const ThreadMessageResponseSchema: z.ZodObject<{
3634
3788
  threadMessageId: z.ZodString;
3635
3789
  threadId: z.ZodString;
@@ -3759,6 +3913,70 @@ export declare const ThreadMessageResponseSchema: z.ZodObject<{
3759
3913
  dryRun: z.ZodBoolean;
3760
3914
  decidedAt: z.ZodNumber;
3761
3915
  }, z.core.$strip>>;
3916
+ spamVerdict: z.ZodUnion<readonly [z.ZodObject<{
3917
+ state: z.ZodLiteral<"NotChecked">;
3918
+ }, z.core.$strip>, z.ZodObject<{
3919
+ state: z.ZodLiteral<"ScreenedOut">;
3920
+ screen: z.ZodUnion<readonly [z.ZodObject<{
3921
+ rule: z.ZodEnum<{
3922
+ Newsletter: "Newsletter";
3923
+ ReportedSender: "ReportedSender";
3924
+ NeverSpam: "NeverSpam";
3925
+ Vip: "Vip";
3926
+ WellKnown: "WellKnown";
3927
+ }>;
3928
+ }, z.core.$strip>, z.ZodObject<{
3929
+ rule: z.ZodLiteral<"Filter">;
3930
+ filterId: z.ZodString;
3931
+ }, z.core.$strip>]>;
3932
+ }, z.core.$strip>, z.ZodObject<{
3933
+ state: z.ZodLiteral<"Checked">;
3934
+ score: z.ZodNumber;
3935
+ action: z.ZodEnum<{
3936
+ Junk: "Junk";
3937
+ None: "None";
3938
+ Warn: "Warn";
3939
+ }>;
3940
+ kind: z.ZodEnum<{
3941
+ Spam: "Spam";
3942
+ Phishing: "Phishing";
3943
+ }>;
3944
+ reasons: z.ZodArray<z.ZodObject<{
3945
+ name: z.ZodEnum<{
3946
+ DmarcFail: "DmarcFail";
3947
+ SignerMismatch: "SignerMismatch";
3948
+ ReplyToMismatch: "ReplyToMismatch";
3949
+ LinkTextMismatch: "LinkTextMismatch";
3950
+ LinkDomainDistant: "LinkDomainDistant";
3951
+ PunycodeDomain: "PunycodeDomain";
3952
+ MixedScriptDomain: "MixedScriptDomain";
3953
+ ConfusableDomains: "ConfusableDomains";
3954
+ SingleOffDomainLink: "SingleOffDomainLink";
3955
+ GeneratedName: "GeneratedName";
3956
+ FirstContactDomain: "FirstContactDomain";
3957
+ RecentlyRegisteredDomain: "RecentlyRegisteredDomain";
3958
+ UnknownRegistrationDate: "UnknownRegistrationDate";
3959
+ ClassifierSpam: "ClassifierSpam";
3960
+ ClassifierPhishing: "ClassifierPhishing";
3961
+ ProviderSpam: "ProviderSpam";
3962
+ DisplayNameForeignAddress: "DisplayNameForeignAddress";
3963
+ DisplayNameLookalike: "DisplayNameLookalike";
3964
+ BackendSymbol: "BackendSymbol";
3965
+ }>;
3966
+ symbol: z.ZodString;
3967
+ score: z.ZodNumber;
3968
+ options: z.ZodArray<z.ZodString>;
3969
+ }, z.core.$strip>>;
3970
+ modelCalled: z.ZodBoolean;
3971
+ }, z.core.$strip>, z.ZodObject<{
3972
+ state: z.ZodLiteral<"Failed">;
3973
+ kind: z.ZodEnum<{
3974
+ Unreachable: "Unreachable";
3975
+ TimedOut: "TimedOut";
3976
+ Unparseable: "Unparseable";
3977
+ ServiceError: "ServiceError";
3978
+ }>;
3979
+ }, z.core.$strip>]>;
3762
3980
  }, z.core.$strip>;
3763
3981
  export declare const ThreadMessageListResponseSchema: z.ZodObject<{
3764
3982
  continuationToken: z.ZodOptional<z.ZodString>;
@@ -3891,6 +4109,70 @@ export declare const ThreadMessageListResponseSchema: z.ZodObject<{
3891
4109
  dryRun: z.ZodBoolean;
3892
4110
  decidedAt: z.ZodNumber;
3893
4111
  }, z.core.$strip>>;
4112
+ spamVerdict: z.ZodUnion<readonly [z.ZodObject<{
4113
+ state: z.ZodLiteral<"NotChecked">;
4114
+ }, z.core.$strip>, z.ZodObject<{
4115
+ state: z.ZodLiteral<"ScreenedOut">;
4116
+ screen: z.ZodUnion<readonly [z.ZodObject<{
4117
+ rule: z.ZodEnum<{
4118
+ Newsletter: "Newsletter";
4119
+ ReportedSender: "ReportedSender";
4120
+ NeverSpam: "NeverSpam";
4121
+ Vip: "Vip";
4122
+ WellKnown: "WellKnown";
4123
+ }>;
4124
+ }, z.core.$strip>, z.ZodObject<{
4125
+ rule: z.ZodLiteral<"Filter">;
4126
+ filterId: z.ZodString;
4127
+ }, z.core.$strip>]>;
4128
+ }, z.core.$strip>, z.ZodObject<{
4129
+ state: z.ZodLiteral<"Checked">;
4130
+ score: z.ZodNumber;
4131
+ action: z.ZodEnum<{
4132
+ Junk: "Junk";
4133
+ None: "None";
4134
+ Warn: "Warn";
4135
+ }>;
4136
+ kind: z.ZodEnum<{
4137
+ Spam: "Spam";
4138
+ Phishing: "Phishing";
4139
+ }>;
4140
+ reasons: z.ZodArray<z.ZodObject<{
4141
+ name: z.ZodEnum<{
4142
+ DmarcFail: "DmarcFail";
4143
+ SignerMismatch: "SignerMismatch";
4144
+ ReplyToMismatch: "ReplyToMismatch";
4145
+ LinkTextMismatch: "LinkTextMismatch";
4146
+ LinkDomainDistant: "LinkDomainDistant";
4147
+ PunycodeDomain: "PunycodeDomain";
4148
+ MixedScriptDomain: "MixedScriptDomain";
4149
+ ConfusableDomains: "ConfusableDomains";
4150
+ SingleOffDomainLink: "SingleOffDomainLink";
4151
+ GeneratedName: "GeneratedName";
4152
+ FirstContactDomain: "FirstContactDomain";
4153
+ RecentlyRegisteredDomain: "RecentlyRegisteredDomain";
4154
+ UnknownRegistrationDate: "UnknownRegistrationDate";
4155
+ ClassifierSpam: "ClassifierSpam";
4156
+ ClassifierPhishing: "ClassifierPhishing";
4157
+ ProviderSpam: "ProviderSpam";
4158
+ DisplayNameForeignAddress: "DisplayNameForeignAddress";
4159
+ DisplayNameLookalike: "DisplayNameLookalike";
4160
+ BackendSymbol: "BackendSymbol";
4161
+ }>;
4162
+ symbol: z.ZodString;
4163
+ score: z.ZodNumber;
4164
+ options: z.ZodArray<z.ZodString>;
4165
+ }, z.core.$strip>>;
4166
+ modelCalled: z.ZodBoolean;
4167
+ }, z.core.$strip>, z.ZodObject<{
4168
+ state: z.ZodLiteral<"Failed">;
4169
+ kind: z.ZodEnum<{
4170
+ Unreachable: "Unreachable";
4171
+ TimedOut: "TimedOut";
4172
+ Unparseable: "Unparseable";
4173
+ ServiceError: "ServiceError";
4174
+ }>;
4175
+ }, z.core.$strip>]>;
3894
4176
  }, z.core.$strip>>;
3895
4177
  }, z.core.$strip>;
3896
4178
  export declare const ThreadSearchResponseSchema: z.ZodObject<{
@@ -4023,6 +4305,70 @@ export declare const ThreadSearchResponseSchema: z.ZodObject<{
4023
4305
  dryRun: z.ZodBoolean;
4024
4306
  decidedAt: z.ZodNumber;
4025
4307
  }, z.core.$strip>>;
4308
+ spamVerdict: z.ZodUnion<readonly [z.ZodObject<{
4309
+ state: z.ZodLiteral<"NotChecked">;
4310
+ }, z.core.$strip>, z.ZodObject<{
4311
+ state: z.ZodLiteral<"ScreenedOut">;
4312
+ screen: z.ZodUnion<readonly [z.ZodObject<{
4313
+ rule: z.ZodEnum<{
4314
+ Newsletter: "Newsletter";
4315
+ ReportedSender: "ReportedSender";
4316
+ NeverSpam: "NeverSpam";
4317
+ Vip: "Vip";
4318
+ WellKnown: "WellKnown";
4319
+ }>;
4320
+ }, z.core.$strip>, z.ZodObject<{
4321
+ rule: z.ZodLiteral<"Filter">;
4322
+ filterId: z.ZodString;
4323
+ }, z.core.$strip>]>;
4324
+ }, z.core.$strip>, z.ZodObject<{
4325
+ state: z.ZodLiteral<"Checked">;
4326
+ score: z.ZodNumber;
4327
+ action: z.ZodEnum<{
4328
+ Junk: "Junk";
4329
+ None: "None";
4330
+ Warn: "Warn";
4331
+ }>;
4332
+ kind: z.ZodEnum<{
4333
+ Spam: "Spam";
4334
+ Phishing: "Phishing";
4335
+ }>;
4336
+ reasons: z.ZodArray<z.ZodObject<{
4337
+ name: z.ZodEnum<{
4338
+ DmarcFail: "DmarcFail";
4339
+ SignerMismatch: "SignerMismatch";
4340
+ ReplyToMismatch: "ReplyToMismatch";
4341
+ LinkTextMismatch: "LinkTextMismatch";
4342
+ LinkDomainDistant: "LinkDomainDistant";
4343
+ PunycodeDomain: "PunycodeDomain";
4344
+ MixedScriptDomain: "MixedScriptDomain";
4345
+ ConfusableDomains: "ConfusableDomains";
4346
+ SingleOffDomainLink: "SingleOffDomainLink";
4347
+ GeneratedName: "GeneratedName";
4348
+ FirstContactDomain: "FirstContactDomain";
4349
+ RecentlyRegisteredDomain: "RecentlyRegisteredDomain";
4350
+ UnknownRegistrationDate: "UnknownRegistrationDate";
4351
+ ClassifierSpam: "ClassifierSpam";
4352
+ ClassifierPhishing: "ClassifierPhishing";
4353
+ ProviderSpam: "ProviderSpam";
4354
+ DisplayNameForeignAddress: "DisplayNameForeignAddress";
4355
+ DisplayNameLookalike: "DisplayNameLookalike";
4356
+ BackendSymbol: "BackendSymbol";
4357
+ }>;
4358
+ symbol: z.ZodString;
4359
+ score: z.ZodNumber;
4360
+ options: z.ZodArray<z.ZodString>;
4361
+ }, z.core.$strip>>;
4362
+ modelCalled: z.ZodBoolean;
4363
+ }, z.core.$strip>, z.ZodObject<{
4364
+ state: z.ZodLiteral<"Failed">;
4365
+ kind: z.ZodEnum<{
4366
+ Unreachable: "Unreachable";
4367
+ TimedOut: "TimedOut";
4368
+ Unparseable: "Unparseable";
4369
+ ServiceError: "ServiceError";
4370
+ }>;
4371
+ }, z.core.$strip>]>;
4026
4372
  }, z.core.$strip>>>;
4027
4373
  continuationToken: z.ZodOptional<z.ZodString>;
4028
4374
  count: z.ZodOptional<z.ZodNumber>;
@@ -4807,6 +5153,70 @@ export declare const MessageSummaryResponseSchema: z.ZodObject<{
4807
5153
  signerMessageCount: z.ZodOptional<z.ZodNumber>;
4808
5154
  signerFirstSeenAt: z.ZodOptional<z.ZodNumber>;
4809
5155
  }, z.core.$strip>>;
5156
+ spamVerdict: z.ZodUnion<readonly [z.ZodObject<{
5157
+ state: z.ZodLiteral<"NotChecked">;
5158
+ }, z.core.$strip>, z.ZodObject<{
5159
+ state: z.ZodLiteral<"ScreenedOut">;
5160
+ screen: z.ZodUnion<readonly [z.ZodObject<{
5161
+ rule: z.ZodEnum<{
5162
+ Newsletter: "Newsletter";
5163
+ ReportedSender: "ReportedSender";
5164
+ NeverSpam: "NeverSpam";
5165
+ Vip: "Vip";
5166
+ WellKnown: "WellKnown";
5167
+ }>;
5168
+ }, z.core.$strip>, z.ZodObject<{
5169
+ rule: z.ZodLiteral<"Filter">;
5170
+ filterId: z.ZodString;
5171
+ }, z.core.$strip>]>;
5172
+ }, z.core.$strip>, z.ZodObject<{
5173
+ state: z.ZodLiteral<"Checked">;
5174
+ score: z.ZodNumber;
5175
+ action: z.ZodEnum<{
5176
+ Junk: "Junk";
5177
+ None: "None";
5178
+ Warn: "Warn";
5179
+ }>;
5180
+ kind: z.ZodEnum<{
5181
+ Spam: "Spam";
5182
+ Phishing: "Phishing";
5183
+ }>;
5184
+ reasons: z.ZodArray<z.ZodObject<{
5185
+ name: z.ZodEnum<{
5186
+ DmarcFail: "DmarcFail";
5187
+ SignerMismatch: "SignerMismatch";
5188
+ ReplyToMismatch: "ReplyToMismatch";
5189
+ LinkTextMismatch: "LinkTextMismatch";
5190
+ LinkDomainDistant: "LinkDomainDistant";
5191
+ PunycodeDomain: "PunycodeDomain";
5192
+ MixedScriptDomain: "MixedScriptDomain";
5193
+ ConfusableDomains: "ConfusableDomains";
5194
+ SingleOffDomainLink: "SingleOffDomainLink";
5195
+ GeneratedName: "GeneratedName";
5196
+ FirstContactDomain: "FirstContactDomain";
5197
+ RecentlyRegisteredDomain: "RecentlyRegisteredDomain";
5198
+ UnknownRegistrationDate: "UnknownRegistrationDate";
5199
+ ClassifierSpam: "ClassifierSpam";
5200
+ ClassifierPhishing: "ClassifierPhishing";
5201
+ ProviderSpam: "ProviderSpam";
5202
+ DisplayNameForeignAddress: "DisplayNameForeignAddress";
5203
+ DisplayNameLookalike: "DisplayNameLookalike";
5204
+ BackendSymbol: "BackendSymbol";
5205
+ }>;
5206
+ symbol: z.ZodString;
5207
+ score: z.ZodNumber;
5208
+ options: z.ZodArray<z.ZodString>;
5209
+ }, z.core.$strip>>;
5210
+ modelCalled: z.ZodBoolean;
5211
+ }, z.core.$strip>, z.ZodObject<{
5212
+ state: z.ZodLiteral<"Failed">;
5213
+ kind: z.ZodEnum<{
5214
+ Unreachable: "Unreachable";
5215
+ TimedOut: "TimedOut";
5216
+ Unparseable: "Unparseable";
5217
+ ServiceError: "ServiceError";
5218
+ }>;
5219
+ }, z.core.$strip>]>;
4810
5220
  messageIdHeader: z.ZodOptional<z.ZodString>;
4811
5221
  autoMoved: z.ZodOptional<z.ZodObject<{
4812
5222
  action: z.ZodOptional<z.ZodEnum<{
@@ -5501,6 +5911,70 @@ export declare const DescribeMessageResponseSchema: z.ZodObject<{
5501
5911
  signerMessageCount: z.ZodOptional<z.ZodNumber>;
5502
5912
  signerFirstSeenAt: z.ZodOptional<z.ZodNumber>;
5503
5913
  }, z.core.$strip>>;
5914
+ spamVerdict: z.ZodUnion<readonly [z.ZodObject<{
5915
+ state: z.ZodLiteral<"NotChecked">;
5916
+ }, z.core.$strip>, z.ZodObject<{
5917
+ state: z.ZodLiteral<"ScreenedOut">;
5918
+ screen: z.ZodUnion<readonly [z.ZodObject<{
5919
+ rule: z.ZodEnum<{
5920
+ Newsletter: "Newsletter";
5921
+ ReportedSender: "ReportedSender";
5922
+ NeverSpam: "NeverSpam";
5923
+ Vip: "Vip";
5924
+ WellKnown: "WellKnown";
5925
+ }>;
5926
+ }, z.core.$strip>, z.ZodObject<{
5927
+ rule: z.ZodLiteral<"Filter">;
5928
+ filterId: z.ZodString;
5929
+ }, z.core.$strip>]>;
5930
+ }, z.core.$strip>, z.ZodObject<{
5931
+ state: z.ZodLiteral<"Checked">;
5932
+ score: z.ZodNumber;
5933
+ action: z.ZodEnum<{
5934
+ Junk: "Junk";
5935
+ None: "None";
5936
+ Warn: "Warn";
5937
+ }>;
5938
+ kind: z.ZodEnum<{
5939
+ Spam: "Spam";
5940
+ Phishing: "Phishing";
5941
+ }>;
5942
+ reasons: z.ZodArray<z.ZodObject<{
5943
+ name: z.ZodEnum<{
5944
+ DmarcFail: "DmarcFail";
5945
+ SignerMismatch: "SignerMismatch";
5946
+ ReplyToMismatch: "ReplyToMismatch";
5947
+ LinkTextMismatch: "LinkTextMismatch";
5948
+ LinkDomainDistant: "LinkDomainDistant";
5949
+ PunycodeDomain: "PunycodeDomain";
5950
+ MixedScriptDomain: "MixedScriptDomain";
5951
+ ConfusableDomains: "ConfusableDomains";
5952
+ SingleOffDomainLink: "SingleOffDomainLink";
5953
+ GeneratedName: "GeneratedName";
5954
+ FirstContactDomain: "FirstContactDomain";
5955
+ RecentlyRegisteredDomain: "RecentlyRegisteredDomain";
5956
+ UnknownRegistrationDate: "UnknownRegistrationDate";
5957
+ ClassifierSpam: "ClassifierSpam";
5958
+ ClassifierPhishing: "ClassifierPhishing";
5959
+ ProviderSpam: "ProviderSpam";
5960
+ DisplayNameForeignAddress: "DisplayNameForeignAddress";
5961
+ DisplayNameLookalike: "DisplayNameLookalike";
5962
+ BackendSymbol: "BackendSymbol";
5963
+ }>;
5964
+ symbol: z.ZodString;
5965
+ score: z.ZodNumber;
5966
+ options: z.ZodArray<z.ZodString>;
5967
+ }, z.core.$strip>>;
5968
+ modelCalled: z.ZodBoolean;
5969
+ }, z.core.$strip>, z.ZodObject<{
5970
+ state: z.ZodLiteral<"Failed">;
5971
+ kind: z.ZodEnum<{
5972
+ Unreachable: "Unreachable";
5973
+ TimedOut: "TimedOut";
5974
+ Unparseable: "Unparseable";
5975
+ ServiceError: "ServiceError";
5976
+ }>;
5977
+ }, z.core.$strip>]>;
5504
5978
  messageIdHeader: z.ZodOptional<z.ZodString>;
5505
5979
  autoMoved: z.ZodOptional<z.ZodObject<{
5506
5980
  action: z.ZodOptional<z.ZodEnum<{
@@ -6250,6 +6724,70 @@ export declare const MessageRecordSchema: z.ZodObject<{
6250
6724
  spamReport: z.ZodOptional<z.ZodObject<{
6251
6725
  reportedAt: z.ZodNumber;
6252
6726
  }, z.core.$strip>>;
6727
+ spamVerdict: z.ZodUnion<readonly [z.ZodObject<{
6728
+ state: z.ZodLiteral<"NotChecked">;
6729
+ }, z.core.$strip>, z.ZodObject<{
6730
+ state: z.ZodLiteral<"ScreenedOut">;
6731
+ screen: z.ZodUnion<readonly [z.ZodObject<{
6732
+ rule: z.ZodEnum<{
6733
+ Newsletter: "Newsletter";
6734
+ ReportedSender: "ReportedSender";
6735
+ NeverSpam: "NeverSpam";
6736
+ Vip: "Vip";
6737
+ WellKnown: "WellKnown";
6738
+ }>;
6739
+ }, z.core.$strip>, z.ZodObject<{
6740
+ rule: z.ZodLiteral<"Filter">;
6741
+ filterId: z.ZodString;
6742
+ }, z.core.$strip>]>;
6743
+ }, z.core.$strip>, z.ZodObject<{
6744
+ state: z.ZodLiteral<"Checked">;
6745
+ score: z.ZodNumber;
6746
+ action: z.ZodEnum<{
6747
+ Junk: "Junk";
6748
+ None: "None";
6749
+ Warn: "Warn";
6750
+ }>;
6751
+ kind: z.ZodEnum<{
6752
+ Spam: "Spam";
6753
+ Phishing: "Phishing";
6754
+ }>;
6755
+ reasons: z.ZodArray<z.ZodObject<{
6756
+ name: z.ZodEnum<{
6757
+ DmarcFail: "DmarcFail";
6758
+ SignerMismatch: "SignerMismatch";
6759
+ ReplyToMismatch: "ReplyToMismatch";
6760
+ LinkTextMismatch: "LinkTextMismatch";
6761
+ LinkDomainDistant: "LinkDomainDistant";
6762
+ PunycodeDomain: "PunycodeDomain";
6763
+ MixedScriptDomain: "MixedScriptDomain";
6764
+ ConfusableDomains: "ConfusableDomains";
6765
+ SingleOffDomainLink: "SingleOffDomainLink";
6766
+ GeneratedName: "GeneratedName";
6767
+ FirstContactDomain: "FirstContactDomain";
6768
+ RecentlyRegisteredDomain: "RecentlyRegisteredDomain";
6769
+ UnknownRegistrationDate: "UnknownRegistrationDate";
6770
+ ClassifierSpam: "ClassifierSpam";
6771
+ ClassifierPhishing: "ClassifierPhishing";
6772
+ ProviderSpam: "ProviderSpam";
6773
+ DisplayNameForeignAddress: "DisplayNameForeignAddress";
6774
+ DisplayNameLookalike: "DisplayNameLookalike";
6775
+ BackendSymbol: "BackendSymbol";
6776
+ }>;
6777
+ symbol: z.ZodString;
6778
+ score: z.ZodNumber;
6779
+ options: z.ZodArray<z.ZodString>;
6780
+ }, z.core.$strip>>;
6781
+ modelCalled: z.ZodBoolean;
6782
+ }, z.core.$strip>, z.ZodObject<{
6783
+ state: z.ZodLiteral<"Failed">;
6784
+ kind: z.ZodEnum<{
6785
+ Unreachable: "Unreachable";
6786
+ TimedOut: "TimedOut";
6787
+ Unparseable: "Unparseable";
6788
+ ServiceError: "ServiceError";
6789
+ }>;
6790
+ }, z.core.$strip>]>;
6253
6791
  createdAt: z.ZodNumber;
6254
6792
  updatedAt: z.ZodNumber;
6255
6793
  }, z.core.$strip>;
@@ -6393,6 +6931,70 @@ export declare const MessageSchema: z.ZodObject<{
6393
6931
  spamReport: z.ZodOptional<z.ZodObject<{
6394
6932
  reportedAt: z.ZodNumber;
6395
6933
  }, z.core.$strip>>;
6934
+ spamVerdict: z.ZodUnion<readonly [z.ZodObject<{
6935
+ state: z.ZodLiteral<"NotChecked">;
6936
+ }, z.core.$strip>, z.ZodObject<{
6937
+ state: z.ZodLiteral<"ScreenedOut">;
6938
+ screen: z.ZodUnion<readonly [z.ZodObject<{
6939
+ rule: z.ZodEnum<{
6940
+ Newsletter: "Newsletter";
6941
+ ReportedSender: "ReportedSender";
6942
+ NeverSpam: "NeverSpam";
6943
+ Vip: "Vip";
6944
+ WellKnown: "WellKnown";
6945
+ }>;
6946
+ }, z.core.$strip>, z.ZodObject<{
6947
+ rule: z.ZodLiteral<"Filter">;
6948
+ filterId: z.ZodString;
6949
+ }, z.core.$strip>]>;
6950
+ }, z.core.$strip>, z.ZodObject<{
6951
+ state: z.ZodLiteral<"Checked">;
6952
+ score: z.ZodNumber;
6953
+ action: z.ZodEnum<{
6954
+ Junk: "Junk";
6955
+ None: "None";
6956
+ Warn: "Warn";
6957
+ }>;
6958
+ kind: z.ZodEnum<{
6959
+ Spam: "Spam";
6960
+ Phishing: "Phishing";
6961
+ }>;
6962
+ reasons: z.ZodArray<z.ZodObject<{
6963
+ name: z.ZodEnum<{
6964
+ DmarcFail: "DmarcFail";
6965
+ SignerMismatch: "SignerMismatch";
6966
+ ReplyToMismatch: "ReplyToMismatch";
6967
+ LinkTextMismatch: "LinkTextMismatch";
6968
+ LinkDomainDistant: "LinkDomainDistant";
6969
+ PunycodeDomain: "PunycodeDomain";
6970
+ MixedScriptDomain: "MixedScriptDomain";
6971
+ ConfusableDomains: "ConfusableDomains";
6972
+ SingleOffDomainLink: "SingleOffDomainLink";
6973
+ GeneratedName: "GeneratedName";
6974
+ FirstContactDomain: "FirstContactDomain";
6975
+ RecentlyRegisteredDomain: "RecentlyRegisteredDomain";
6976
+ UnknownRegistrationDate: "UnknownRegistrationDate";
6977
+ ClassifierSpam: "ClassifierSpam";
6978
+ ClassifierPhishing: "ClassifierPhishing";
6979
+ ProviderSpam: "ProviderSpam";
6980
+ DisplayNameForeignAddress: "DisplayNameForeignAddress";
6981
+ DisplayNameLookalike: "DisplayNameLookalike";
6982
+ BackendSymbol: "BackendSymbol";
6983
+ }>;
6984
+ symbol: z.ZodString;
6985
+ score: z.ZodNumber;
6986
+ options: z.ZodArray<z.ZodString>;
6987
+ }, z.core.$strip>>;
6988
+ modelCalled: z.ZodBoolean;
6989
+ }, z.core.$strip>, z.ZodObject<{
6990
+ state: z.ZodLiteral<"Failed">;
6991
+ kind: z.ZodEnum<{
6992
+ Unreachable: "Unreachable";
6993
+ TimedOut: "TimedOut";
6994
+ Unparseable: "Unparseable";
6995
+ ServiceError: "ServiceError";
6996
+ }>;
6997
+ }, z.core.$strip>]>;
6396
6998
  createdAt: z.ZodNumber;
6397
6999
  updatedAt: z.ZodNumber;
6398
7000
  messageIdHeader: z.ZodOptional<z.ZodString>;
@@ -6893,6 +7495,176 @@ export declare const MessageFlagSchema: z.ZodObject<{
6893
7495
  createdAt: z.ZodNumber;
6894
7496
  updatedAt: z.ZodNumber;
6895
7497
  }, z.core.$strip>;
7498
+ export declare const SpamHeaderSchema: z.ZodObject<{
7499
+ name: z.ZodString;
7500
+ value: z.ZodString;
7501
+ }, z.core.$strip>;
7502
+ export declare const SpamLinkSchema: z.ZodObject<{
7503
+ href: z.ZodString;
7504
+ text: z.ZodString;
7505
+ }, z.core.$strip>;
7506
+ export declare const SpamRequestMessageSchema: z.ZodObject<{
7507
+ raw: z.ZodString;
7508
+ headers: z.ZodArray<z.ZodObject<{
7509
+ name: z.ZodString;
7510
+ value: z.ZodString;
7511
+ }, z.core.$strip>>;
7512
+ text: z.ZodString;
7513
+ html: z.ZodString;
7514
+ links: z.ZodArray<z.ZodObject<{
7515
+ href: z.ZodString;
7516
+ text: z.ZodString;
7517
+ }, z.core.$strip>>;
7518
+ }, z.core.$strip>;
7519
+ export declare const SpamRequestEnvelopeSchema: z.ZodObject<{
7520
+ mailFrom: z.ZodString;
7521
+ rcpt: z.ZodArray<z.ZodString>;
7522
+ ip: z.ZodString;
7523
+ helo: z.ZodString;
7524
+ }, z.core.$strip>;
7525
+ export declare const SpamRequestAuthenticationSchema: z.ZodObject<{
7526
+ dmarc: z.ZodEnum<{
7527
+ None: "None";
7528
+ Pass: "Pass";
7529
+ Fail: "Fail";
7530
+ Neutral: "Neutral";
7531
+ Softfail: "Softfail";
7532
+ }>;
7533
+ spf: z.ZodEnum<{
7534
+ None: "None";
7535
+ Pass: "Pass";
7536
+ Fail: "Fail";
7537
+ Neutral: "Neutral";
7538
+ Softfail: "Softfail";
7539
+ }>;
7540
+ dkim: z.ZodEnum<{
7541
+ None: "None";
7542
+ Pass: "Pass";
7543
+ Fail: "Fail";
7544
+ Neutral: "Neutral";
7545
+ Softfail: "Softfail";
7546
+ }>;
7547
+ signerDomain: z.ZodString;
7548
+ envelopeDomain: z.ZodString;
7549
+ }, z.core.$strip>;
7550
+ export declare const SpamRequestProviderSchema: z.ZodObject<{
7551
+ verdict: z.ZodEnum<{
7552
+ Spam: "Spam";
7553
+ Clean: "Clean";
7554
+ Absent: "Absent";
7555
+ }>;
7556
+ score: z.ZodString;
7557
+ headers: z.ZodArray<z.ZodObject<{
7558
+ name: z.ZodString;
7559
+ value: z.ZodString;
7560
+ }, z.core.$strip>>;
7561
+ }, z.core.$strip>;
7562
+ export declare const SpamRequestContextSchema: z.ZodObject<{
7563
+ knownSender: z.ZodBoolean;
7564
+ senderMessagesSeen: z.ZodNumber;
7565
+ senderDomainMessagesSeen: z.ZodNumber;
7566
+ senderDomainRegisteredAt: z.ZodOptional<z.ZodString>;
7567
+ receivedAt: z.ZodString;
7568
+ classifierScores: z.ZodArray<z.ZodObject<{
7569
+ label: z.ZodEnum<{
7570
+ Spam: "Spam";
7571
+ Phishing: "Phishing";
7572
+ Priority: "Priority";
7573
+ Personal: "Personal";
7574
+ Newsletter: "Newsletter";
7575
+ Marketing: "Marketing";
7576
+ Automated: "Automated";
7577
+ Transactional: "Transactional";
7578
+ Social: "Social";
7579
+ ColdOutreach: "ColdOutreach";
7580
+ }>;
7581
+ confidence: z.ZodNumber;
7582
+ confident: z.ZodBoolean;
7583
+ }, z.core.$strip>>;
7584
+ modelAllowed: z.ZodBoolean;
7585
+ }, z.core.$strip>;
7586
+ export declare const SpamRequestSchema: z.ZodObject<{
7587
+ message: z.ZodObject<{
7588
+ raw: z.ZodString;
7589
+ headers: z.ZodArray<z.ZodObject<{
7590
+ name: z.ZodString;
7591
+ value: z.ZodString;
7592
+ }, z.core.$strip>>;
7593
+ text: z.ZodString;
7594
+ html: z.ZodString;
7595
+ links: z.ZodArray<z.ZodObject<{
7596
+ href: z.ZodString;
7597
+ text: z.ZodString;
7598
+ }, z.core.$strip>>;
7599
+ }, z.core.$strip>;
7600
+ envelope: z.ZodObject<{
7601
+ mailFrom: z.ZodString;
7602
+ rcpt: z.ZodArray<z.ZodString>;
7603
+ ip: z.ZodString;
7604
+ helo: z.ZodString;
7605
+ }, z.core.$strip>;
7606
+ authentication: z.ZodObject<{
7607
+ dmarc: z.ZodEnum<{
7608
+ None: "None";
7609
+ Pass: "Pass";
7610
+ Fail: "Fail";
7611
+ Neutral: "Neutral";
7612
+ Softfail: "Softfail";
7613
+ }>;
7614
+ spf: z.ZodEnum<{
7615
+ None: "None";
7616
+ Pass: "Pass";
7617
+ Fail: "Fail";
7618
+ Neutral: "Neutral";
7619
+ Softfail: "Softfail";
7620
+ }>;
7621
+ dkim: z.ZodEnum<{
7622
+ None: "None";
7623
+ Pass: "Pass";
7624
+ Fail: "Fail";
7625
+ Neutral: "Neutral";
7626
+ Softfail: "Softfail";
7627
+ }>;
7628
+ signerDomain: z.ZodString;
7629
+ envelopeDomain: z.ZodString;
7630
+ }, z.core.$strip>;
7631
+ provider: z.ZodObject<{
7632
+ verdict: z.ZodEnum<{
7633
+ Spam: "Spam";
7634
+ Clean: "Clean";
7635
+ Absent: "Absent";
7636
+ }>;
7637
+ score: z.ZodString;
7638
+ headers: z.ZodArray<z.ZodObject<{
7639
+ name: z.ZodString;
7640
+ value: z.ZodString;
7641
+ }, z.core.$strip>>;
7642
+ }, z.core.$strip>;
7643
+ context: z.ZodObject<{
7644
+ knownSender: z.ZodBoolean;
7645
+ senderMessagesSeen: z.ZodNumber;
7646
+ senderDomainMessagesSeen: z.ZodNumber;
7647
+ senderDomainRegisteredAt: z.ZodOptional<z.ZodString>;
7648
+ receivedAt: z.ZodString;
7649
+ classifierScores: z.ZodArray<z.ZodObject<{
7650
+ label: z.ZodEnum<{
7651
+ Spam: "Spam";
7652
+ Phishing: "Phishing";
7653
+ Priority: "Priority";
7654
+ Personal: "Personal";
7655
+ Newsletter: "Newsletter";
7656
+ Marketing: "Marketing";
7657
+ Automated: "Automated";
7658
+ Transactional: "Transactional";
7659
+ Social: "Social";
7660
+ ColdOutreach: "ColdOutreach";
7661
+ }>;
7662
+ confidence: z.ZodNumber;
7663
+ confident: z.ZodBoolean;
7664
+ }, z.core.$strip>>;
7665
+ modelAllowed: z.ZodBoolean;
7666
+ }, z.core.$strip>;
7667
+ }, z.core.$strip>;
6896
7668
  export declare const MessagePlacementMoveSchema: z.ZodObject<{
6897
7669
  messageId: z.ZodString;
6898
7670
  accountId: z.ZodString;
@@ -6937,6 +7709,24 @@ export declare const EnvelopeSchema: z.ZodObject<{
6937
7709
  createdAt: z.ZodNumber;
6938
7710
  updatedAt: z.ZodNumber;
6939
7711
  }, z.core.$strip>;
7712
+ export declare const DomainRegistrationPublishedSchema: z.ZodObject<{
7713
+ state: z.ZodLiteral<"Published">;
7714
+ registeredAt: z.ZodString;
7715
+ }, z.core.$strip>;
7716
+ export declare const DomainRegistrationUnpublishedSchema: z.ZodObject<{
7717
+ state: z.ZodLiteral<"Unpublished">;
7718
+ }, z.core.$strip>;
7719
+ export declare const DomainRegistrationSchema: z.ZodObject<{
7720
+ domainRegistrationId: z.ZodString;
7721
+ registration: z.ZodUnion<readonly [z.ZodObject<{
7722
+ state: z.ZodLiteral<"Published">;
7723
+ registeredAt: z.ZodString;
7724
+ }, z.core.$strip>, z.ZodObject<{
7725
+ state: z.ZodLiteral<"Unpublished">;
7726
+ }, z.core.$strip>]>;
7727
+ createdAt: z.ZodNumber;
7728
+ updatedAt: z.ZodNumber;
7729
+ }, z.core.$strip>;
6940
7730
  export declare const SenderSignerStandingSchema: z.ZodObject<{
6941
7731
  accountConfigId: z.ZodString;
6942
7732
  senderKey: z.ZodString;