export interface CreateUserRequestHeaders { "x-admin-secret"?: string; } export interface CreateUserRequestQuery { } export interface CreateUserRequestParams { } export interface CreateUserRequestBody { /** * Name of the [User](#schema_user) (not a unique identifier) */ name?: string; /** * Picture url of the [User](#schema_user) */ pictureUrl?: string; /** * User data. An object or a signed JWT token */ userData?: { [k: string]: any; } | string; /** * Custom attributes for the user as key-value pairs. Can be an object or a signed JWT token. */ attributes?: { [k: string]: string; } | string; } export type CreateUserInput = CreateUserRequestBody & CreateUserRequestHeaders & CreateUserRequestQuery & CreateUserRequestParams; export type CreateUserRequest = { headers: CreateUserRequestHeaders; query: CreateUserRequestQuery; params: CreateUserRequestParams; body: CreateUserRequestBody; }; export declare const parseReq: (input: CreateUserInput) => CreateUserRequest & { path: string; }; export interface CreateUserResponse { /** * The user object represents someone interacting with the bot within a specific integration. The same person interacting with a bot in slack and messenger will be represented with two different users. */ user: { /** * Name of the [User](#schema_user) */ name?: string; /** * Picture url of the [User](#schema_user) */ pictureUrl?: string; /** * User data */ data?: { [k: string]: any; }; /** * Custom attributes of the user */ attributes?: { [k: string]: string; }; /** * Id of the [User](#schema_user) */ id: string; /** * Creation date of the [User](#schema_user) in ISO 8601 format */ createdAt: string; /** * Updating date of the [User](#schema_user) in ISO 8601 format */ updatedAt: string; }; key: string; }