@remit/api-zod-schemas 0.0.102 → 0.0.103

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.ts CHANGED
@@ -826,7 +826,29 @@ export const PeopleForbiddenErrorSchema = z.object({
826
826
  statusCode: z.literal(403),
827
827
  message: z.string(),
828
828
  details: z.record(z.string(), z.string()).optional(),
829
- 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")])
829
+ 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")])
830
+ });
831
+
832
+ export const PeopleAuditEventSchema = z.object({
833
+ auditEventId: z.string(),
834
+ occurredAt: z.number(),
835
+ actor: z.string(),
836
+ target: z.string(),
837
+ action: z.string(),
838
+ outcome: z.string(),
839
+ clientIp: z.string()
840
+ });
841
+
842
+ export const PeopleAuditResponseSchema = z.object({
843
+ events: z.array(PeopleAuditEventSchema)
844
+ });
845
+
846
+ export const InvitePersonInputSchema = z.object({
847
+ email: z.string()
848
+ });
849
+
850
+ export const PersonInviteResponseSchema = z.object({
851
+ email: z.string()
830
852
  });
831
853
 
832
854
  export const StepUpInputSchema = z.object({
@@ -847,13 +869,8 @@ export const StepUpLockedErrorSchema = z.object({
847
869
  code: z.literal("step_up_locked")
848
870
  });
849
871
 
850
- export const SignOutPersonInputSchema = z.object({
851
- stepUpToken: z.string()
852
- });
853
-
854
872
  export const UpdatePersonInputSchema = z.object({
855
- status: PersonStatusSchema,
856
- stepUpToken: z.string()
873
+ status: PersonStatusSchema
857
874
  });
858
875
 
859
876
  export const CannotDisableSelfErrorSchema = z.object({
@@ -863,10 +880,6 @@ export const CannotDisableSelfErrorSchema = z.object({
863
880
  code: z.literal("cannot_disable_self")
864
881
  });
865
882
 
866
- export const CreatePasswordResetInputSchema = z.object({
867
- stepUpToken: z.string()
868
- });
869
-
870
883
  export const PasswordResetResponseSchema = z.object({
871
884
  person: PersonSchema,
872
885
  resetUrl: z.string(),