@remit/api-zod-schemas 0.0.88 → 0.0.90

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