export type AttributeDef = {name: string, description?: string | undefined, displayName?: string | undefined, datatype: 'STRING' | 'INTEGER' | 'LONG' | 'STRING_REFERENCE' | 'INTEGER_REFERENCE' | 'LONG_REFERENCE' | 'BOOLEAN' | 'DECIMAL' | 'DATE' | 'DATETIME' | 'ENUM' | 'FINGERPRINT' | 'CLOB' | 'BLOB' | 'OBJECT' | 'STRING_ARRAY' | 'INTEGER_ARRAY' | 'LONG_ARRAY' | 'STRING_REFERENCE_ARRAY' | 'INTEGER_REFERENCE_ARRAY' | 'LONG_REFERENCE_ARRAY' | 'BOOLEAN_ARRAY' | 'DECIMAL_ARRAY' | 'DATE_ARRAY' | 'DATETIME_ARRAY' | 'ENUM_ARRAY' | 'BLOB_ARRAY' | 'OBJECT_ARRAY' | 'VECTOR', required?: boolean | undefined, precision?: number | undefined, defaultValue?: string | undefined, min?: number | undefined, max?: number | undefined, regex?: string | undefined, enumValues: Array, fingerprintAttributes: Array, vectorAttributes: Array, referenceDictionaryName?: string | undefined}; export type IndexDef = {name: string, attributes: Array, type: 'PRIMARY' | 'UNIQUE' | 'NORMAL' | 'KEYWORD' | 'FULL' | 'VECTOR', numDimensions: number, partialFilterTql?: string | undefined}; export type Dictionary = {name: string, description?: string | undefined, displayName?: string | undefined, groupName?: string | undefined, layoutMetadata?: Record | undefined, undefinedAttributesAction: 'KEEP' | 'REMOVE' | 'ERROR', attributes: Array, indexes?: Array | undefined, properties?: Record | undefined}; export type UpdateApiApiMetadataDictionaryArgs = {body: Dictionary}; export type UpdateApiApiMetadataDictionaryOptions = {baseUrl?: string | undefined, fetch?: typeof fetch | undefined}; /** * Allowed user roles:
  • sdzAdmin


DEPRECATED: Update with job instead. | Put (update) the dictionary in the secure data zone.

Deprecated since 16 JUL 24
* * PUT /api/metadata/dictionary */ export const updateApiApiMetadataDictionary = async (args: UpdateApiApiMetadataDictionaryArgs, options?: UpdateApiApiMetadataDictionaryOptions) => { const {baseUrl = "https://api.burstiq.com", fetch: fetchFn = fetch} = options ?? {} const query = new URLSearchParams() const headers = new Headers() headers.set('content-type', "application/json") headers.set('accept', "*/*") const url = `${baseUrl.replace(/\/+$/, '')}/api/metadata/dictionary${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "PUT", headers, body: JSON.stringify(args.body)}) if (!res.ok) throw new Error(`Request failed with status ${res.status}`, {cause: {status: res.status, body: await res.text()}}) return res.blob() };