import * as v from "valibot"; import type { CustomBlockErrorInfo } from "../errors.js"; export declare const customBlockListUsersErrorCodeSchema: v.StringSchema; export type CustomBlockListUsersErrorCode = "list_users_failed" | (string & {}); export type CustomBlockListUsersErrorInfo = CustomBlockErrorInfo; export declare const customBlockListUsersErrorInfoSchema: v.ObjectSchema<{ readonly code: v.StringSchema; readonly message: v.StringSchema; readonly isRetryable: v.BooleanSchema; }, undefined>; /** * Sandbox -> host: list users visible in the custom block's workspace. */ export declare const listUsersMessageSchema: v.ObjectSchema<{ readonly type: v.LiteralSchema<"listUsers", undefined>; readonly requestId: v.StringSchema; readonly startCursor: v.OptionalSchema, undefined>; readonly pageSize: v.OptionalSchema, undefined>; }, undefined>; export type ListUsersMessage = v.InferOutput; export declare const listUsersResultMessageSchema: v.VariantSchema<"status", [v.ObjectSchema<{ readonly type: v.LiteralSchema<"listUsersResult", undefined>; readonly requestId: v.StringSchema; readonly status: v.LiteralSchema<"success", undefined>; readonly list: v.ObjectSchema<{ readonly object: v.LiteralSchema<"list", undefined>; readonly results: v.ArraySchema; readonly id: v.StringSchema; readonly name: v.OptionalSchema, undefined>; readonly avatar_url: v.NullableSchema, undefined>; readonly type: v.LiteralSchema<"person", undefined>; readonly person: v.ObjectSchema<{ readonly email: v.StringSchema; }, undefined>; }, undefined>, undefined>; readonly next_cursor: v.NullableSchema, undefined>; readonly has_more: v.BooleanSchema; readonly type: v.LiteralSchema<"user", undefined>; readonly user: v.RecordSchema, v.UnknownSchema, undefined>; }, undefined>; }, undefined>, v.ObjectSchema<{ readonly type: v.LiteralSchema<"listUsersResult", undefined>; readonly requestId: v.StringSchema; readonly status: v.LiteralSchema<"error", undefined>; readonly error: v.ObjectSchema<{ readonly code: v.StringSchema; readonly message: v.StringSchema; readonly isRetryable: v.BooleanSchema; }, undefined>; }, undefined>], undefined>; export type ListUsersResultMessage = v.InferOutput; //# sourceMappingURL=listUsers.d.ts.map