@remit/api-zod-schemas 0.0.102 → 0.0.104

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.js CHANGED
@@ -649,7 +649,25 @@ export const PeopleForbiddenErrorSchema = z.object({
649
649
  statusCode: z.literal(403),
650
650
  message: z.string(),
651
651
  details: z.record(z.string(), z.string()).optional(),
652
- code: z.union([z.literal("sign_in_disabled"), z.literal("caller_disabled"), z.literal("foreign_origin"), z.literal("step_up_required"), z.literal("wrong_password")])
652
+ code: z.union([z.literal("sign_in_disabled"), z.literal("caller_disabled"), z.literal("foreign_origin"), z.literal("step_up_required"), z.literal("wrong_password"), z.literal("forbidden")])
653
+ });
654
+ export const PeopleAuditEventSchema = z.object({
655
+ auditEventId: z.string(),
656
+ occurredAt: z.number(),
657
+ actor: z.string(),
658
+ target: z.string(),
659
+ action: z.string(),
660
+ outcome: z.string(),
661
+ clientIp: z.string()
662
+ });
663
+ export const PeopleAuditResponseSchema = z.object({
664
+ events: z.array(PeopleAuditEventSchema)
665
+ });
666
+ export const InvitePersonInputSchema = z.object({
667
+ email: z.string()
668
+ });
669
+ export const PersonInviteResponseSchema = z.object({
670
+ email: z.string()
653
671
  });
654
672
  export const StepUpInputSchema = z.object({
655
673
  password: z.string(),
@@ -666,12 +684,8 @@ export const StepUpLockedErrorSchema = z.object({
666
684
  details: z.record(z.string(), z.string()).optional(),
667
685
  code: z.literal("step_up_locked")
668
686
  });
669
- export const SignOutPersonInputSchema = z.object({
670
- stepUpToken: z.string()
671
- });
672
687
  export const UpdatePersonInputSchema = z.object({
673
- status: PersonStatusSchema,
674
- stepUpToken: z.string()
688
+ status: PersonStatusSchema
675
689
  });
676
690
  export const CannotDisableSelfErrorSchema = z.object({
677
691
  statusCode: z.literal(409),
@@ -679,9 +693,6 @@ export const CannotDisableSelfErrorSchema = z.object({
679
693
  details: z.record(z.string(), z.string()).optional(),
680
694
  code: z.literal("cannot_disable_self")
681
695
  });
682
- export const CreatePasswordResetInputSchema = z.object({
683
- stepUpToken: z.string()
684
- });
685
696
  export const PasswordResetResponseSchema = z.object({
686
697
  person: PersonSchema,
687
698
  resetUrl: z.string(),
@@ -2327,6 +2338,11 @@ export const RawMessageStorageSchema = z.object({
2327
2338
  createdAt: z.number(),
2328
2339
  updatedAt: z.number()
2329
2340
  });
2341
+ export const InlineOutboxAttachmentInputSchema = z.object({
2342
+ filename: z.string().max(256),
2343
+ contentType: z.string().max(256),
2344
+ contentBase64: z.string().min(1).max(6990508)
2345
+ });
2330
2346
  export const OutboxSchedulingPartSchema = z.object({
2331
2347
  outboxMessageId: z.string().min(25).max(25),
2332
2348
  accountConfigId: z.string().min(25).max(25),