@remit/api-zod-schemas 0.0.90 → 0.0.92

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
@@ -321,6 +321,10 @@ export declare const ClassificationUnrunnableReasonSchema: z.ZodEnum<{
321
321
  NoBaseUrl: "NoBaseUrl";
322
322
  NoApiKey: "NoApiKey";
323
323
  }>;
324
+ export declare const SpamLabelPlacementSchema: z.ZodEnum<{
325
+ MoveToSpam: "MoveToSpam";
326
+ WarnOnly: "WarnOnly";
327
+ }>;
324
328
  export declare const ClassificationFailureKindSchema: z.ZodEnum<{
325
329
  Unauthorized: "Unauthorized";
326
330
  ModelNotFound: "ModelNotFound";
@@ -346,6 +350,15 @@ export declare const MessageCategorySchema: z.ZodEnum<{
346
350
  social: "social";
347
351
  coldOutreach: "coldOutreach";
348
352
  }>;
353
+ export declare const SpamActionSchema: z.ZodEnum<{
354
+ Junk: "Junk";
355
+ None: "None";
356
+ Warn: "Warn";
357
+ }>;
358
+ export declare const SpamKindSchema: z.ZodEnum<{
359
+ Spam: "Spam";
360
+ Phishing: "Phishing";
361
+ }>;
349
362
  export declare const SortOrderSchema: z.ZodEnum<{
350
363
  asc: "asc";
351
364
  desc: "desc";
@@ -413,15 +426,6 @@ export declare const SpamSenderScreenRuleSchema: z.ZodEnum<{
413
426
  Vip: "Vip";
414
427
  WellKnown: "WellKnown";
415
428
  }>;
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
429
  export declare const SpamReasonNameSchema: z.ZodEnum<{
426
430
  DmarcFail: "DmarcFail";
427
431
  SignerMismatch: "SignerMismatch";
@@ -441,9 +445,19 @@ export declare const SpamReasonNameSchema: z.ZodEnum<{
441
445
  ProviderSpam: "ProviderSpam";
442
446
  DisplayNameForeignAddress: "DisplayNameForeignAddress";
443
447
  DisplayNameLookalike: "DisplayNameLookalike";
448
+ ModelImpersonation: "ModelImpersonation";
449
+ ModelSpam: "ModelSpam";
450
+ ModelClean: "ModelClean";
444
451
  ListedPhishingLink: "ListedPhishingLink";
445
452
  BackendSymbol: "BackendSymbol";
446
453
  }>;
454
+ export declare const SpamModelOutcomeSchema: z.ZodEnum<{
455
+ RateLimited: "RateLimited";
456
+ Answered: "Answered";
457
+ NotConfigured: "NotConfigured";
458
+ DailyLimit: "DailyLimit";
459
+ OutOfBand: "OutOfBand";
460
+ }>;
447
461
  export declare const SpamFailureKindSchema: z.ZodEnum<{
448
462
  Unreachable: "Unreachable";
449
463
  TimedOut: "TimedOut";
@@ -479,15 +493,6 @@ export declare const MessageClassificationStateSchema: z.ZodEnum<{
479
493
  NotExamined: "NotExamined";
480
494
  Examined: "Examined";
481
495
  }>;
482
- export declare const AuthenticityVerdictSchema: z.ZodEnum<{
483
- NotEvaluated: "NotEvaluated";
484
- NotChecked: "NotChecked";
485
- Aligned: "Aligned";
486
- Authenticated: "Authenticated";
487
- Routine: "Routine";
488
- Caution: "Caution";
489
- Impersonation: "Impersonation";
490
- }>;
491
496
  export declare const AuthResultVerdictSchema: z.ZodEnum<{
492
497
  None: "None";
493
498
  Pass: "Pass";
@@ -538,6 +543,13 @@ export declare const ReferenceTypeSchema: z.ZodEnum<{
538
543
  in_reply_to: "in_reply_to";
539
544
  references: "references";
540
545
  }>;
546
+ export declare const RescanFailureCodeSchema: z.ZodEnum<{
547
+ RateLimited: "RateLimited";
548
+ DailyCap: "DailyCap";
549
+ NotSettled: "NotSettled";
550
+ NotFound: "NotFound";
551
+ NotPermitted: "NotPermitted";
552
+ }>;
541
553
  export declare const LabelActionSchema: z.ZodEnum<{
542
554
  Apply: "Apply";
543
555
  Remove: "Remove";
@@ -623,6 +635,8 @@ export declare const AccountSettingNameSchema: z.ZodEnum<{
623
635
  ClassificationEnabled: "ClassificationEnabled";
624
636
  ClassificationDailyLimit: "ClassificationDailyLimit";
625
637
  ClassificationUsage: "ClassificationUsage";
638
+ SpamPlacementSpam: "SpamPlacementSpam";
639
+ SpamPlacementPhishing: "SpamPlacementPhishing";
626
640
  }>;
627
641
  export declare const ConfigImportStateSchema: z.ZodEnum<{
628
642
  Pending: "Pending";
@@ -3136,6 +3150,31 @@ export declare const ClassificationUnrunnableSchema: z.ZodObject<{
3136
3150
  NoApiKey: "NoApiKey";
3137
3151
  }>;
3138
3152
  }, z.core.$strip>;
3153
+ export declare const SpamThresholdsUnsetSchema: z.ZodObject<{
3154
+ state: z.ZodLiteral<"Unset">;
3155
+ }, z.core.$strip>;
3156
+ export declare const SpamThresholdsSetSchema: z.ZodObject<{
3157
+ state: z.ZodLiteral<"Set">;
3158
+ cleanBelow: z.ZodNumber;
3159
+ spamAt: z.ZodNumber;
3160
+ }, z.core.$strip>;
3161
+ export declare const SpamSettingsSchema: z.ZodObject<{
3162
+ thresholds: z.ZodUnion<readonly [z.ZodObject<{
3163
+ state: z.ZodLiteral<"Unset">;
3164
+ }, z.core.$strip>, z.ZodObject<{
3165
+ state: z.ZodLiteral<"Set">;
3166
+ cleanBelow: z.ZodNumber;
3167
+ spamAt: z.ZodNumber;
3168
+ }, z.core.$strip>]>;
3169
+ spamPlacement: z.ZodEnum<{
3170
+ MoveToSpam: "MoveToSpam";
3171
+ WarnOnly: "WarnOnly";
3172
+ }>;
3173
+ phishingPlacement: z.ZodEnum<{
3174
+ MoveToSpam: "MoveToSpam";
3175
+ WarnOnly: "WarnOnly";
3176
+ }>;
3177
+ }, z.core.$strip>;
3139
3178
  export declare const UserSettingsResponseSchema: z.ZodObject<{
3140
3179
  defaultInvitationSenderAccountId: z.ZodOptional<z.ZodString>;
3141
3180
  defaultInvitationSenderChosen: z.ZodBoolean;
@@ -3246,6 +3285,23 @@ export declare const UserSettingsResponseSchema: z.ZodObject<{
3246
3285
  NoApiKey: "NoApiKey";
3247
3286
  }>;
3248
3287
  }, z.core.$strip>]>;
3288
+ spam: z.ZodObject<{
3289
+ thresholds: z.ZodUnion<readonly [z.ZodObject<{
3290
+ state: z.ZodLiteral<"Unset">;
3291
+ }, z.core.$strip>, z.ZodObject<{
3292
+ state: z.ZodLiteral<"Set">;
3293
+ cleanBelow: z.ZodNumber;
3294
+ spamAt: z.ZodNumber;
3295
+ }, z.core.$strip>]>;
3296
+ spamPlacement: z.ZodEnum<{
3297
+ MoveToSpam: "MoveToSpam";
3298
+ WarnOnly: "WarnOnly";
3299
+ }>;
3300
+ phishingPlacement: z.ZodEnum<{
3301
+ MoveToSpam: "MoveToSpam";
3302
+ WarnOnly: "WarnOnly";
3303
+ }>;
3304
+ }, z.core.$strip>;
3249
3305
  }, z.core.$strip>;
3250
3306
  export declare const UpdateUserSettingsInputSchema: z.ZodObject<{
3251
3307
  defaultInvitationSenderAccountId: z.ZodOptional<z.ZodString>;
@@ -3262,6 +3318,14 @@ export declare const UpdateUserSettingsInputSchema: z.ZodObject<{
3262
3318
  classificationApiKey: z.ZodOptional<z.ZodString>;
3263
3319
  classificationEnabled: z.ZodOptional<z.ZodBoolean>;
3264
3320
  classificationDailyLimit: z.ZodOptional<z.ZodNumber>;
3321
+ spamPlacementSpam: z.ZodOptional<z.ZodEnum<{
3322
+ MoveToSpam: "MoveToSpam";
3323
+ WarnOnly: "WarnOnly";
3324
+ }>>;
3325
+ spamPlacementPhishing: z.ZodOptional<z.ZodEnum<{
3326
+ MoveToSpam: "MoveToSpam";
3327
+ WarnOnly: "WarnOnly";
3328
+ }>>;
3265
3329
  }, z.core.$strip>;
3266
3330
  export declare const ClassificationTestInputSchema: z.ZodObject<{
3267
3331
  presetId: z.ZodEnum<{
@@ -3346,6 +3410,23 @@ export declare const ClassifierCorrectionsSchema: z.ZodObject<{
3346
3410
  spamReportedNotJunk: z.ZodNumber;
3347
3411
  categoryOverridden: z.ZodNumber;
3348
3412
  }, z.core.$strip>;
3413
+ export declare const SpamDayCountSchema: z.ZodObject<{
3414
+ date: z.ZodString;
3415
+ action: z.ZodEnum<{
3416
+ Junk: "Junk";
3417
+ None: "None";
3418
+ Warn: "Warn";
3419
+ }>;
3420
+ kind: z.ZodEnum<{
3421
+ Spam: "Spam";
3422
+ Phishing: "Phishing";
3423
+ }>;
3424
+ count: z.ZodNumber;
3425
+ }, z.core.$strip>;
3426
+ export declare const SpamScoreBandSchema: z.ZodObject<{
3427
+ from: z.ZodNumber;
3428
+ count: z.ZodNumber;
3429
+ }, z.core.$strip>;
3349
3430
  export declare const ClassifierStatsSchema: z.ZodObject<{
3350
3431
  since: z.ZodString;
3351
3432
  examined: z.ZodNumber;
@@ -3381,6 +3462,23 @@ export declare const ClassifierStatsSchema: z.ZodObject<{
3381
3462
  spamReportedNotJunk: z.ZodNumber;
3382
3463
  categoryOverridden: z.ZodNumber;
3383
3464
  }, z.core.$strip>;
3465
+ spamByDay: z.ZodArray<z.ZodObject<{
3466
+ date: z.ZodString;
3467
+ action: z.ZodEnum<{
3468
+ Junk: "Junk";
3469
+ None: "None";
3470
+ Warn: "Warn";
3471
+ }>;
3472
+ kind: z.ZodEnum<{
3473
+ Spam: "Spam";
3474
+ Phishing: "Phishing";
3475
+ }>;
3476
+ count: z.ZodNumber;
3477
+ }, z.core.$strip>>;
3478
+ spamScoreBands: z.ZodArray<z.ZodObject<{
3479
+ from: z.ZodNumber;
3480
+ count: z.ZodNumber;
3481
+ }, z.core.$strip>>;
3384
3482
  }, z.core.$strip>;
3385
3483
  export declare const CalendarTaskResponseSchema: z.ZodObject<{
3386
3484
  calendarTaskId: z.ZodString;
@@ -3730,6 +3828,9 @@ export declare const SpamReasonSchema: z.ZodObject<{
3730
3828
  ProviderSpam: "ProviderSpam";
3731
3829
  DisplayNameForeignAddress: "DisplayNameForeignAddress";
3732
3830
  DisplayNameLookalike: "DisplayNameLookalike";
3831
+ ModelImpersonation: "ModelImpersonation";
3832
+ ModelSpam: "ModelSpam";
3833
+ ModelClean: "ModelClean";
3733
3834
  ListedPhishingLink: "ListedPhishingLink";
3734
3835
  BackendSymbol: "BackendSymbol";
3735
3836
  }>;
@@ -3769,6 +3870,9 @@ export declare const SpamCheckedSchema: z.ZodObject<{
3769
3870
  ProviderSpam: "ProviderSpam";
3770
3871
  DisplayNameForeignAddress: "DisplayNameForeignAddress";
3771
3872
  DisplayNameLookalike: "DisplayNameLookalike";
3873
+ ModelImpersonation: "ModelImpersonation";
3874
+ ModelSpam: "ModelSpam";
3875
+ ModelClean: "ModelClean";
3772
3876
  ListedPhishingLink: "ListedPhishingLink";
3773
3877
  BackendSymbol: "BackendSymbol";
3774
3878
  }>;
@@ -3776,7 +3880,13 @@ export declare const SpamCheckedSchema: z.ZodObject<{
3776
3880
  score: z.ZodNumber;
3777
3881
  options: z.ZodArray<z.ZodString>;
3778
3882
  }, z.core.$strip>>;
3779
- modelCalled: z.ZodBoolean;
3883
+ modelOutcome: z.ZodEnum<{
3884
+ RateLimited: "RateLimited";
3885
+ Answered: "Answered";
3886
+ NotConfigured: "NotConfigured";
3887
+ DailyLimit: "DailyLimit";
3888
+ OutOfBand: "OutOfBand";
3889
+ }>;
3780
3890
  }, z.core.$strip>;
3781
3891
  export declare const SpamFailedSchema: z.ZodObject<{
3782
3892
  state: z.ZodLiteral<"Failed">;
@@ -3964,6 +4074,9 @@ export declare const ThreadMessageResponseSchema: z.ZodObject<{
3964
4074
  ProviderSpam: "ProviderSpam";
3965
4075
  DisplayNameForeignAddress: "DisplayNameForeignAddress";
3966
4076
  DisplayNameLookalike: "DisplayNameLookalike";
4077
+ ModelImpersonation: "ModelImpersonation";
4078
+ ModelSpam: "ModelSpam";
4079
+ ModelClean: "ModelClean";
3967
4080
  ListedPhishingLink: "ListedPhishingLink";
3968
4081
  BackendSymbol: "BackendSymbol";
3969
4082
  }>;
@@ -3971,7 +4084,13 @@ export declare const ThreadMessageResponseSchema: z.ZodObject<{
3971
4084
  score: z.ZodNumber;
3972
4085
  options: z.ZodArray<z.ZodString>;
3973
4086
  }, z.core.$strip>>;
3974
- modelCalled: z.ZodBoolean;
4087
+ modelOutcome: z.ZodEnum<{
4088
+ RateLimited: "RateLimited";
4089
+ Answered: "Answered";
4090
+ NotConfigured: "NotConfigured";
4091
+ DailyLimit: "DailyLimit";
4092
+ OutOfBand: "OutOfBand";
4093
+ }>;
3975
4094
  }, z.core.$strip>, z.ZodObject<{
3976
4095
  state: z.ZodLiteral<"Failed">;
3977
4096
  kind: z.ZodEnum<{
@@ -4161,6 +4280,9 @@ export declare const ThreadMessageListResponseSchema: z.ZodObject<{
4161
4280
  ProviderSpam: "ProviderSpam";
4162
4281
  DisplayNameForeignAddress: "DisplayNameForeignAddress";
4163
4282
  DisplayNameLookalike: "DisplayNameLookalike";
4283
+ ModelImpersonation: "ModelImpersonation";
4284
+ ModelSpam: "ModelSpam";
4285
+ ModelClean: "ModelClean";
4164
4286
  ListedPhishingLink: "ListedPhishingLink";
4165
4287
  BackendSymbol: "BackendSymbol";
4166
4288
  }>;
@@ -4168,7 +4290,13 @@ export declare const ThreadMessageListResponseSchema: z.ZodObject<{
4168
4290
  score: z.ZodNumber;
4169
4291
  options: z.ZodArray<z.ZodString>;
4170
4292
  }, z.core.$strip>>;
4171
- modelCalled: z.ZodBoolean;
4293
+ modelOutcome: z.ZodEnum<{
4294
+ RateLimited: "RateLimited";
4295
+ Answered: "Answered";
4296
+ NotConfigured: "NotConfigured";
4297
+ DailyLimit: "DailyLimit";
4298
+ OutOfBand: "OutOfBand";
4299
+ }>;
4172
4300
  }, z.core.$strip>, z.ZodObject<{
4173
4301
  state: z.ZodLiteral<"Failed">;
4174
4302
  kind: z.ZodEnum<{
@@ -4358,6 +4486,9 @@ export declare const ThreadSearchResponseSchema: z.ZodObject<{
4358
4486
  ProviderSpam: "ProviderSpam";
4359
4487
  DisplayNameForeignAddress: "DisplayNameForeignAddress";
4360
4488
  DisplayNameLookalike: "DisplayNameLookalike";
4489
+ ModelImpersonation: "ModelImpersonation";
4490
+ ModelSpam: "ModelSpam";
4491
+ ModelClean: "ModelClean";
4361
4492
  ListedPhishingLink: "ListedPhishingLink";
4362
4493
  BackendSymbol: "BackendSymbol";
4363
4494
  }>;
@@ -4365,7 +4496,13 @@ export declare const ThreadSearchResponseSchema: z.ZodObject<{
4365
4496
  score: z.ZodNumber;
4366
4497
  options: z.ZodArray<z.ZodString>;
4367
4498
  }, z.core.$strip>>;
4368
- modelCalled: z.ZodBoolean;
4499
+ modelOutcome: z.ZodEnum<{
4500
+ RateLimited: "RateLimited";
4501
+ Answered: "Answered";
4502
+ NotConfigured: "NotConfigured";
4503
+ DailyLimit: "DailyLimit";
4504
+ OutOfBand: "OutOfBand";
4505
+ }>;
4369
4506
  }, z.core.$strip>, z.ZodObject<{
4370
4507
  state: z.ZodLiteral<"Failed">;
4371
4508
  kind: z.ZodEnum<{
@@ -5207,6 +5344,9 @@ export declare const MessageSummaryResponseSchema: z.ZodObject<{
5207
5344
  ProviderSpam: "ProviderSpam";
5208
5345
  DisplayNameForeignAddress: "DisplayNameForeignAddress";
5209
5346
  DisplayNameLookalike: "DisplayNameLookalike";
5347
+ ModelImpersonation: "ModelImpersonation";
5348
+ ModelSpam: "ModelSpam";
5349
+ ModelClean: "ModelClean";
5210
5350
  ListedPhishingLink: "ListedPhishingLink";
5211
5351
  BackendSymbol: "BackendSymbol";
5212
5352
  }>;
@@ -5214,7 +5354,13 @@ export declare const MessageSummaryResponseSchema: z.ZodObject<{
5214
5354
  score: z.ZodNumber;
5215
5355
  options: z.ZodArray<z.ZodString>;
5216
5356
  }, z.core.$strip>>;
5217
- modelCalled: z.ZodBoolean;
5357
+ modelOutcome: z.ZodEnum<{
5358
+ RateLimited: "RateLimited";
5359
+ Answered: "Answered";
5360
+ NotConfigured: "NotConfigured";
5361
+ DailyLimit: "DailyLimit";
5362
+ OutOfBand: "OutOfBand";
5363
+ }>;
5218
5364
  }, z.core.$strip>, z.ZodObject<{
5219
5365
  state: z.ZodLiteral<"Failed">;
5220
5366
  kind: z.ZodEnum<{
@@ -5966,6 +6112,9 @@ export declare const DescribeMessageResponseSchema: z.ZodObject<{
5966
6112
  ProviderSpam: "ProviderSpam";
5967
6113
  DisplayNameForeignAddress: "DisplayNameForeignAddress";
5968
6114
  DisplayNameLookalike: "DisplayNameLookalike";
6115
+ ModelImpersonation: "ModelImpersonation";
6116
+ ModelSpam: "ModelSpam";
6117
+ ModelClean: "ModelClean";
5969
6118
  ListedPhishingLink: "ListedPhishingLink";
5970
6119
  BackendSymbol: "BackendSymbol";
5971
6120
  }>;
@@ -5973,7 +6122,13 @@ export declare const DescribeMessageResponseSchema: z.ZodObject<{
5973
6122
  score: z.ZodNumber;
5974
6123
  options: z.ZodArray<z.ZodString>;
5975
6124
  }, z.core.$strip>>;
5976
- modelCalled: z.ZodBoolean;
6125
+ modelOutcome: z.ZodEnum<{
6126
+ RateLimited: "RateLimited";
6127
+ Answered: "Answered";
6128
+ NotConfigured: "NotConfigured";
6129
+ DailyLimit: "DailyLimit";
6130
+ OutOfBand: "OutOfBand";
6131
+ }>;
5977
6132
  }, z.core.$strip>, z.ZodObject<{
5978
6133
  state: z.ZodLiteral<"Failed">;
5979
6134
  kind: z.ZodEnum<{
@@ -6653,15 +6808,6 @@ export declare const MessageRecordSchema: z.ZodObject<{
6653
6808
  signerMessageCount: z.ZodOptional<z.ZodNumber>;
6654
6809
  signerFirstSeenAt: z.ZodOptional<z.ZodNumber>;
6655
6810
  }, z.core.$strip>>;
6656
- authenticityVerdict: z.ZodEnum<{
6657
- NotEvaluated: "NotEvaluated";
6658
- NotChecked: "NotChecked";
6659
- Aligned: "Aligned";
6660
- Authenticated: "Authenticated";
6661
- Routine: "Routine";
6662
- Caution: "Caution";
6663
- Impersonation: "Impersonation";
6664
- }>;
6665
6811
  authResult: z.ZodOptional<z.ZodObject<{
6666
6812
  dmarc: z.ZodOptional<z.ZodEnum<{
6667
6813
  None: "None";
@@ -6780,6 +6926,9 @@ export declare const MessageRecordSchema: z.ZodObject<{
6780
6926
  ProviderSpam: "ProviderSpam";
6781
6927
  DisplayNameForeignAddress: "DisplayNameForeignAddress";
6782
6928
  DisplayNameLookalike: "DisplayNameLookalike";
6929
+ ModelImpersonation: "ModelImpersonation";
6930
+ ModelSpam: "ModelSpam";
6931
+ ModelClean: "ModelClean";
6783
6932
  ListedPhishingLink: "ListedPhishingLink";
6784
6933
  BackendSymbol: "BackendSymbol";
6785
6934
  }>;
@@ -6787,7 +6936,13 @@ export declare const MessageRecordSchema: z.ZodObject<{
6787
6936
  score: z.ZodNumber;
6788
6937
  options: z.ZodArray<z.ZodString>;
6789
6938
  }, z.core.$strip>>;
6790
- modelCalled: z.ZodBoolean;
6939
+ modelOutcome: z.ZodEnum<{
6940
+ RateLimited: "RateLimited";
6941
+ Answered: "Answered";
6942
+ NotConfigured: "NotConfigured";
6943
+ DailyLimit: "DailyLimit";
6944
+ OutOfBand: "OutOfBand";
6945
+ }>;
6791
6946
  }, z.core.$strip>, z.ZodObject<{
6792
6947
  state: z.ZodLiteral<"Failed">;
6793
6948
  kind: z.ZodEnum<{
@@ -6861,15 +7016,6 @@ export declare const MessageSchema: z.ZodObject<{
6861
7016
  signerMessageCount: z.ZodOptional<z.ZodNumber>;
6862
7017
  signerFirstSeenAt: z.ZodOptional<z.ZodNumber>;
6863
7018
  }, z.core.$strip>>;
6864
- authenticityVerdict: z.ZodEnum<{
6865
- NotEvaluated: "NotEvaluated";
6866
- NotChecked: "NotChecked";
6867
- Aligned: "Aligned";
6868
- Authenticated: "Authenticated";
6869
- Routine: "Routine";
6870
- Caution: "Caution";
6871
- Impersonation: "Impersonation";
6872
- }>;
6873
7019
  authResult: z.ZodOptional<z.ZodObject<{
6874
7020
  dmarc: z.ZodOptional<z.ZodEnum<{
6875
7021
  None: "None";
@@ -6988,6 +7134,9 @@ export declare const MessageSchema: z.ZodObject<{
6988
7134
  ProviderSpam: "ProviderSpam";
6989
7135
  DisplayNameForeignAddress: "DisplayNameForeignAddress";
6990
7136
  DisplayNameLookalike: "DisplayNameLookalike";
7137
+ ModelImpersonation: "ModelImpersonation";
7138
+ ModelSpam: "ModelSpam";
7139
+ ModelClean: "ModelClean";
6991
7140
  ListedPhishingLink: "ListedPhishingLink";
6992
7141
  BackendSymbol: "BackendSymbol";
6993
7142
  }>;
@@ -6995,7 +7144,13 @@ export declare const MessageSchema: z.ZodObject<{
6995
7144
  score: z.ZodNumber;
6996
7145
  options: z.ZodArray<z.ZodString>;
6997
7146
  }, z.core.$strip>>;
6998
- modelCalled: z.ZodBoolean;
7147
+ modelOutcome: z.ZodEnum<{
7148
+ RateLimited: "RateLimited";
7149
+ Answered: "Answered";
7150
+ NotConfigured: "NotConfigured";
7151
+ DailyLimit: "DailyLimit";
7152
+ OutOfBand: "OutOfBand";
7153
+ }>;
6999
7154
  }, z.core.$strip>, z.ZodObject<{
7000
7155
  state: z.ZodLiteral<"Failed">;
7001
7156
  kind: z.ZodEnum<{
@@ -7096,6 +7251,190 @@ export declare const UpdateFlagsInputSchema: z.ZodObject<{
7096
7251
  blue_star: "blue_star";
7097
7252
  }>>;
7098
7253
  }, z.core.$strip>;
7254
+ export declare const RescanInputSchema: z.ZodObject<{
7255
+ messageIds: z.ZodArray<z.ZodString>;
7256
+ move: z.ZodOptional<z.ZodBoolean>;
7257
+ }, z.core.$strip>;
7258
+ export declare const RescanSuccessSchema: z.ZodObject<{
7259
+ messageId: z.ZodString;
7260
+ verdict: z.ZodUnion<readonly [z.ZodObject<{
7261
+ state: z.ZodLiteral<"NotChecked">;
7262
+ }, z.core.$strip>, z.ZodObject<{
7263
+ state: z.ZodLiteral<"ScreenedOut">;
7264
+ screen: z.ZodUnion<readonly [z.ZodObject<{
7265
+ rule: z.ZodEnum<{
7266
+ Newsletter: "Newsletter";
7267
+ ReportedSender: "ReportedSender";
7268
+ NeverSpam: "NeverSpam";
7269
+ Vip: "Vip";
7270
+ WellKnown: "WellKnown";
7271
+ }>;
7272
+ }, z.core.$strip>, z.ZodObject<{
7273
+ rule: z.ZodLiteral<"Filter">;
7274
+ filterId: z.ZodString;
7275
+ }, z.core.$strip>]>;
7276
+ }, z.core.$strip>, z.ZodObject<{
7277
+ state: z.ZodLiteral<"Checked">;
7278
+ score: z.ZodNumber;
7279
+ action: z.ZodEnum<{
7280
+ Junk: "Junk";
7281
+ None: "None";
7282
+ Warn: "Warn";
7283
+ }>;
7284
+ kind: z.ZodEnum<{
7285
+ Spam: "Spam";
7286
+ Phishing: "Phishing";
7287
+ }>;
7288
+ reasons: z.ZodArray<z.ZodObject<{
7289
+ name: z.ZodEnum<{
7290
+ DmarcFail: "DmarcFail";
7291
+ SignerMismatch: "SignerMismatch";
7292
+ ReplyToMismatch: "ReplyToMismatch";
7293
+ LinkTextMismatch: "LinkTextMismatch";
7294
+ LinkDomainDistant: "LinkDomainDistant";
7295
+ PunycodeDomain: "PunycodeDomain";
7296
+ MixedScriptDomain: "MixedScriptDomain";
7297
+ ConfusableDomains: "ConfusableDomains";
7298
+ SingleOffDomainLink: "SingleOffDomainLink";
7299
+ GeneratedName: "GeneratedName";
7300
+ FirstContactDomain: "FirstContactDomain";
7301
+ RecentlyRegisteredDomain: "RecentlyRegisteredDomain";
7302
+ UnknownRegistrationDate: "UnknownRegistrationDate";
7303
+ ClassifierSpam: "ClassifierSpam";
7304
+ ClassifierPhishing: "ClassifierPhishing";
7305
+ ProviderSpam: "ProviderSpam";
7306
+ DisplayNameForeignAddress: "DisplayNameForeignAddress";
7307
+ DisplayNameLookalike: "DisplayNameLookalike";
7308
+ ModelImpersonation: "ModelImpersonation";
7309
+ ModelSpam: "ModelSpam";
7310
+ ModelClean: "ModelClean";
7311
+ ListedPhishingLink: "ListedPhishingLink";
7312
+ BackendSymbol: "BackendSymbol";
7313
+ }>;
7314
+ symbol: z.ZodString;
7315
+ score: z.ZodNumber;
7316
+ options: z.ZodArray<z.ZodString>;
7317
+ }, z.core.$strip>>;
7318
+ modelOutcome: z.ZodEnum<{
7319
+ RateLimited: "RateLimited";
7320
+ Answered: "Answered";
7321
+ NotConfigured: "NotConfigured";
7322
+ DailyLimit: "DailyLimit";
7323
+ OutOfBand: "OutOfBand";
7324
+ }>;
7325
+ }, z.core.$strip>, z.ZodObject<{
7326
+ state: z.ZodLiteral<"Failed">;
7327
+ kind: z.ZodEnum<{
7328
+ Unreachable: "Unreachable";
7329
+ TimedOut: "TimedOut";
7330
+ Unparseable: "Unparseable";
7331
+ ServiceError: "ServiceError";
7332
+ }>;
7333
+ }, z.core.$strip>]>;
7334
+ labels: z.ZodArray<z.ZodString>;
7335
+ }, z.core.$strip>;
7336
+ export declare const RescanFailureSchema: z.ZodObject<{
7337
+ messageId: z.ZodString;
7338
+ code: z.ZodEnum<{
7339
+ RateLimited: "RateLimited";
7340
+ DailyCap: "DailyCap";
7341
+ NotSettled: "NotSettled";
7342
+ NotFound: "NotFound";
7343
+ NotPermitted: "NotPermitted";
7344
+ }>;
7345
+ retryable: z.ZodBoolean;
7346
+ }, z.core.$strip>;
7347
+ export declare const RescanResultSchema: z.ZodObject<{
7348
+ successful: z.ZodArray<z.ZodObject<{
7349
+ messageId: z.ZodString;
7350
+ verdict: z.ZodUnion<readonly [z.ZodObject<{
7351
+ state: z.ZodLiteral<"NotChecked">;
7352
+ }, z.core.$strip>, z.ZodObject<{
7353
+ state: z.ZodLiteral<"ScreenedOut">;
7354
+ screen: z.ZodUnion<readonly [z.ZodObject<{
7355
+ rule: z.ZodEnum<{
7356
+ Newsletter: "Newsletter";
7357
+ ReportedSender: "ReportedSender";
7358
+ NeverSpam: "NeverSpam";
7359
+ Vip: "Vip";
7360
+ WellKnown: "WellKnown";
7361
+ }>;
7362
+ }, z.core.$strip>, z.ZodObject<{
7363
+ rule: z.ZodLiteral<"Filter">;
7364
+ filterId: z.ZodString;
7365
+ }, z.core.$strip>]>;
7366
+ }, z.core.$strip>, z.ZodObject<{
7367
+ state: z.ZodLiteral<"Checked">;
7368
+ score: z.ZodNumber;
7369
+ action: z.ZodEnum<{
7370
+ Junk: "Junk";
7371
+ None: "None";
7372
+ Warn: "Warn";
7373
+ }>;
7374
+ kind: z.ZodEnum<{
7375
+ Spam: "Spam";
7376
+ Phishing: "Phishing";
7377
+ }>;
7378
+ reasons: z.ZodArray<z.ZodObject<{
7379
+ name: z.ZodEnum<{
7380
+ DmarcFail: "DmarcFail";
7381
+ SignerMismatch: "SignerMismatch";
7382
+ ReplyToMismatch: "ReplyToMismatch";
7383
+ LinkTextMismatch: "LinkTextMismatch";
7384
+ LinkDomainDistant: "LinkDomainDistant";
7385
+ PunycodeDomain: "PunycodeDomain";
7386
+ MixedScriptDomain: "MixedScriptDomain";
7387
+ ConfusableDomains: "ConfusableDomains";
7388
+ SingleOffDomainLink: "SingleOffDomainLink";
7389
+ GeneratedName: "GeneratedName";
7390
+ FirstContactDomain: "FirstContactDomain";
7391
+ RecentlyRegisteredDomain: "RecentlyRegisteredDomain";
7392
+ UnknownRegistrationDate: "UnknownRegistrationDate";
7393
+ ClassifierSpam: "ClassifierSpam";
7394
+ ClassifierPhishing: "ClassifierPhishing";
7395
+ ProviderSpam: "ProviderSpam";
7396
+ DisplayNameForeignAddress: "DisplayNameForeignAddress";
7397
+ DisplayNameLookalike: "DisplayNameLookalike";
7398
+ ModelImpersonation: "ModelImpersonation";
7399
+ ModelSpam: "ModelSpam";
7400
+ ModelClean: "ModelClean";
7401
+ ListedPhishingLink: "ListedPhishingLink";
7402
+ BackendSymbol: "BackendSymbol";
7403
+ }>;
7404
+ symbol: z.ZodString;
7405
+ score: z.ZodNumber;
7406
+ options: z.ZodArray<z.ZodString>;
7407
+ }, z.core.$strip>>;
7408
+ modelOutcome: z.ZodEnum<{
7409
+ RateLimited: "RateLimited";
7410
+ Answered: "Answered";
7411
+ NotConfigured: "NotConfigured";
7412
+ DailyLimit: "DailyLimit";
7413
+ OutOfBand: "OutOfBand";
7414
+ }>;
7415
+ }, z.core.$strip>, z.ZodObject<{
7416
+ state: z.ZodLiteral<"Failed">;
7417
+ kind: z.ZodEnum<{
7418
+ Unreachable: "Unreachable";
7419
+ TimedOut: "TimedOut";
7420
+ Unparseable: "Unparseable";
7421
+ ServiceError: "ServiceError";
7422
+ }>;
7423
+ }, z.core.$strip>]>;
7424
+ labels: z.ZodArray<z.ZodString>;
7425
+ }, z.core.$strip>>;
7426
+ failed: z.ZodArray<z.ZodObject<{
7427
+ messageId: z.ZodString;
7428
+ code: z.ZodEnum<{
7429
+ RateLimited: "RateLimited";
7430
+ DailyCap: "DailyCap";
7431
+ NotSettled: "NotSettled";
7432
+ NotFound: "NotFound";
7433
+ NotPermitted: "NotPermitted";
7434
+ }>;
7435
+ retryable: z.ZodBoolean;
7436
+ }, z.core.$strip>>;
7437
+ }, z.core.$strip>;
7099
7438
  export declare const BulkUpdateFlagsInputSchema: z.ZodObject<{
7100
7439
  messageIds: z.ZodArray<z.ZodString>;
7101
7440
  isRead: z.ZodOptional<z.ZodBoolean>;