/** * Faraday REST API * The [Faraday](https://faraday.ai) API makes it easy to predict customer behavior programmatically. See our [API change policy](https://faraday.ai/legal). * * The version of the OpenAPI document: 1.0.0 * Contact: support@faraday.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import * as runtime from '../runtime'; import { Attribute, AttributeMergePatch, AttributePost } from '../models'; export interface CreateAttributeRequest { attributePost: AttributePost; } export interface DeleteAttributeRequest { attributeId: string; } export interface ForceUpdateAttributeRequest { attributeId: string; } export interface GetAttributeRequest { attributeId: string; } export interface GetAttributesRequest { ids?: Array; } export interface UpdateAttributeRequest { attributeId: string; attributeFields: AttributeMergePatch; } /** * */ export declare class AttributesApi extends runtime.BaseAPI { /** * Add a new attribute that wraps a stream of assertions * Create attribute */ createAttributeRaw(requestParameters: CreateAttributeRequest): Promise>; /** * Add a new attribute that wraps a stream of assertions * Create attribute */ createAttribute(attributePost: AttributePost): Promise; /** * Delete an attribute */ deleteAttributeRaw(requestParameters: DeleteAttributeRequest): Promise>; /** * Delete an attribute */ deleteAttribute(attributeId: string): Promise; /** * Trigger a rerun for this resource. Faraday automatically updates resources when their config changes, but this option is available in case of transient errors. * Trigger a rerun for this resource. */ forceUpdateAttributeRaw(requestParameters: ForceUpdateAttributeRequest): Promise>; /** * Trigger a rerun for this resource. Faraday automatically updates resources when their config changes, but this option is available in case of transient errors. * Trigger a rerun for this resource. */ forceUpdateAttribute(attributeId: string): Promise; /** * Get details on a specific attribute * Retrieve an attribute */ getAttributeRaw(requestParameters: GetAttributeRequest): Promise>; /** * Get details on a specific attribute * Retrieve an attribute */ getAttribute(attributeId: string): Promise; /** * Get a list of attributes defined on the account * List attributes */ getAttributesRaw(requestParameters: GetAttributesRequest): Promise>>; /** * Get a list of attributes defined on the account * List attributes */ getAttributes(ids?: Array): Promise>; /** * Update the configuration of an attribute * Update an attribute */ updateAttributeRaw(requestParameters: UpdateAttributeRequest): Promise>; /** * Update the configuration of an attribute * Update an attribute */ updateAttribute(attributeId: string, attributeFields: AttributeMergePatch): Promise; }