box-node-sdk
Version:
Official SDK for Box Platform APIs
21 lines • 1.05 kB
TypeScript
import { SerializedData } from '../serialization/json.js';
export type AiItemAskTypeField = 'file' | 'hubs';
export interface AiItemAsk {
/**
* The ID of the file, or the ID of the Box Hub when `type` is `hubs`. */
readonly id: string;
/**
* The type of the item. Use `file` to ask a question about a file, or `hubs` to
* search across and ask a question about the entire contents of a Box Hub.
* A `hubs` item must be the only item in the request. */
readonly type: AiItemAskTypeField;
/**
* The content of the item, often the text representation. */
readonly content?: string;
readonly rawData?: SerializedData;
}
export declare function serializeAiItemAskTypeField(val: AiItemAskTypeField): SerializedData;
export declare function deserializeAiItemAskTypeField(val: SerializedData): AiItemAskTypeField;
export declare function serializeAiItemAsk(val: AiItemAsk): SerializedData;
export declare function deserializeAiItemAsk(val: SerializedData): AiItemAsk;
//# sourceMappingURL=aiItemAsk.d.ts.map