/*** * * SaaSquatch Type Definitions * * This file was automatically generated. DO NOT edit it by hand, instead edit the related JSON Schema file. * * Generated on 2026-03-20T21:11:42.771Z * ***/ /*** * UserTokenClaims.schema.json * Generated on 2026-03-20T21:11:43.632Z * This file was automatically generated. DO NOT edit it by hand, instead edit the related JSON Schema file. ***/ /** * Defines the claims provided to autenticate a user with a JWT. */ export type UserTokenClaimSchema = ({ authentication?: Authentication sub?: Subject iss?: Issuer user?: TheUserSubject [k: string]: unknown } & { [k: string]: unknown }) /** * Users can either be authenticated or unauthenticated. Authenticated users have had their identity validated. Unauthenticated users have not proved their identity, can still take actions when enabled in SaaSquatch, but are tracked separately. */ export type Authentication = ("authenticated" | "unauthenticated") /** * The user identity to be validated. Of the format: `{ACCOUNTID}:{USERID}@{TENANT}:users` */ export type Subject = string /** * The issuer of the token. When ommitted then the issuer must be a */ export type Issuer = string export type UserID = string export type AccountID = string /** * Identifies the user by identity. */ export interface TheUserSubject { id: UserID accountId: AccountID [k: string]: unknown }