Skip to content

Variable: UserSchema ​

ts
const UserSchema: ZodObject<{
  access_billable: ZodOptional<ZodBoolean>;
  account_id: ZodString;
  account_status: ZodCustom<"active" | "inactive" | "closed" | string & object, "active" | "inactive" | "closed" | string & object>;
  account_type: ZodCustom<string & object | "atlassian" | "app" | "customer", string & object | "atlassian" | "app" | "customer">;
  email: ZodOptional<ZodString>;
  last_active: ZodOptional<ZodCoercedDate<unknown>>;
  links: ZodOptional<ZodObject<{
     self: ZodNullable<ZodString>;
  }, ApiObjectConfig<undefined>>>;
  name: ZodString;
  picture: ZodString;
  product_access: ZodOptional<ZodArray<ZodObject<{
     key: ZodCustom<
        | string & object
        | "confluence"
        | "jira-software"
        | "jira-service-desk"
        | "jira-core"
        | "jira-ops"
        | "stride"
        | "hipchat"
        | "bitbucket"
        | "trello"
        | "opsgenie"
        | "statuspage", 
        | string & object
        | "confluence"
        | "jira-software"
        | "jira-service-desk"
        | "jira-core"
        | "jira-ops"
        | "stride"
        | "hipchat"
        | "bitbucket"
        | "trello"
        | "opsgenie"
       | "statuspage">;
     last_active: ZodOptional<ZodCoercedDate<unknown>>;
     name: ZodString;
     url: ZodOptional<ZodString>;
  }, ApiObjectConfig<undefined>>>>;
}, ApiObjectConfig<undefined>>;

Defined in: src/admin/models/user.ts:7