import { GetDevResources200Response } from '../../models/base/get-dev-resources200-response/index'; import { PostDevResources200Response } from '../../models/base/post-dev-resources200-response/index'; import { PostDevResourcesRequest } from '../../models/base/post-dev-resources-request/index'; import { PutDevResources200Response } from '../../models/base/put-dev-resources200-response/index'; import { PutDevResourcesRequest } from '../../models/base/put-dev-resources-request/index'; import { Api, ApiClient, RequestMetadata } from '@ama-sdk/core'; /** Parameters object to DevResourcesApi's deleteDevResource function */ export interface DevResourcesApiDeleteDevResourceRequestData { /** The file to delete the dev resource from. This must be a main file key, not a branch key. */ 'file_key': string; /** The id of the dev resource to delete. */ 'dev_resource_id': string; } /** Parameters object to DevResourcesApi's getDevResources function */ export interface DevResourcesApiGetDevResourcesRequestData { /** The file to get the dev resources from. This must be a main file key, not a branch key. */ 'file_key': string; /** Comma separated list of nodes that you care about in the document. If specified, only dev resources attached to these nodes will be returned. If not specified, all dev resources in the file will be returned. */ 'node_ids'?: string; } /** Parameters object to DevResourcesApi's postDevResources function */ export interface DevResourcesApiPostDevResourcesRequestData { /** A list of dev resources that you want to create. */ 'PostDevResourcesRequest': PostDevResourcesRequest; } /** Parameters object to DevResourcesApi's putDevResources function */ export interface DevResourcesApiPutDevResourcesRequestData { /** A list of dev resources that you want to update. */ 'PutDevResourcesRequest': PutDevResourcesRequest; } export declare class DevResourcesApi implements Api { /** API name */ static readonly apiName = "DevResourcesApi"; /** @inheritDoc */ readonly apiName = "DevResourcesApi"; /** Tokens of the parameters containing PII */ readonly piiParamTokens: { [key: string]: string; }; /** @inheritDoc */ client: ApiClient; /** * Initialize your interface * * @param apiClient Client used to process call to the API */ constructor(apiClient: ApiClient); /** * Delete dev resource * Delete a dev resource from a file * @param data Data to provide to the API call * @param metadata Metadata to pass to the API call */ deleteDevResource(data: DevResourcesApiDeleteDevResourceRequestData, metadata?: RequestMetadata): Promise; /** * Get dev resources * Get dev resources in a file * @param data Data to provide to the API call * @param metadata Metadata to pass to the API call */ getDevResources(data: DevResourcesApiGetDevResourcesRequestData, metadata?: RequestMetadata): Promise; /** * Create dev resources * Bulk create dev resources across multiple files. Dev resources that are successfully created will show up in the links_created array in the response. If there are any dev resources that cannot be created, you may still get a 200 response. These resources will show up in the errors array. Some reasons a dev resource cannot be created include: - Resource points to a `file_key` that cannot be found. - The node already has the maximum of 10 dev resources. - Another dev resource for the node has the same url. * @param data Data to provide to the API call * @param metadata Metadata to pass to the API call */ postDevResources(data: DevResourcesApiPostDevResourcesRequestData, metadata?: RequestMetadata<'application/json', 'application/json'>): Promise; /** * Update dev resources * Bulk update dev resources across multiple files. Ids for dev resources that are successfully updated will show up in the `links_updated` array in the response. If there are any dev resources that cannot be updated, you may still get a 200 response. These resources will show up in the `errors` array. * @param data Data to provide to the API call * @param metadata Metadata to pass to the API call */ putDevResources(data: DevResourcesApiPutDevResourcesRequestData, metadata?: RequestMetadata<'application/json', 'application/json'>): Promise; } //# sourceMappingURL=dev-resources-api.d.ts.map