/** * Do not edit this file it is auto-generated by io-utils / gen-api-models. * See https://github.com/pagopa/io-utils */ /* tslint:disable */ import * as t from "io-ts"; /** * All the groups with which the user must be associated. * The already existing associations with groups which are not included in this object will be deleted. */ // required attributes const UserGroupsPayloadR = t.interface({ groups: t.readonlyArray(t.string, "array of string") }); // optional attributes const UserGroupsPayloadO = t.partial({}); export const UserGroupsPayload = t.exact( t.intersection([UserGroupsPayloadR, UserGroupsPayloadO], "UserGroupsPayload") ); export type UserGroupsPayload = t.TypeOf;