cloudflare
Version:
The official TypeScript library for the Cloudflare API
96 lines • 3.29 kB
TypeScript
import * as Core from 'cloudflare/core';
import { APIResource } from 'cloudflare/resource';
import * as EntriesAPI from 'cloudflare/resources/web3/hostnames/ipfs-universal-paths/content-lists/entries';
export declare class Entries extends APIResource {
/**
* Create IPFS Universal Path Gateway Content List Entry
*/
create(zoneIdentifier: string, identifier: string, body: EntryCreateParams, options?: Core.RequestOptions): Core.APIPromise<DistributedWebConfigContentListEntry>;
/**
* Edit IPFS Universal Path Gateway Content List Entry
*/
update(zoneIdentifier: string, identifier: string, contentListEntryIdentifier: string, body: EntryUpdateParams, options?: Core.RequestOptions): Core.APIPromise<DistributedWebConfigContentListEntry>;
/**
* List IPFS Universal Path Gateway Content List Entries
*/
list(zoneIdentifier: string, identifier: string, options?: Core.RequestOptions): Core.APIPromise<EntryListResponse | null>;
/**
* Delete IPFS Universal Path Gateway Content List Entry
*/
delete(zoneIdentifier: string, identifier: string, contentListEntryIdentifier: string, options?: Core.RequestOptions): Core.APIPromise<EntryDeleteResponse | null>;
/**
* IPFS Universal Path Gateway Content List Entry Details
*/
get(zoneIdentifier: string, identifier: string, contentListEntryIdentifier: string, options?: Core.RequestOptions): Core.APIPromise<DistributedWebConfigContentListEntry>;
}
/**
* Content list entry to be blocked.
*/
export interface DistributedWebConfigContentListEntry {
/**
* Identifier
*/
id?: string;
/**
* CID or content path of content to block.
*/
content?: string;
created_on?: string;
/**
* An optional description of the content list entry.
*/
description?: string;
modified_on?: string;
/**
* Type of content list entry to block.
*/
type?: 'cid' | 'content_path';
}
export interface EntryListResponse {
/**
* Content list entries.
*/
entries?: Array<DistributedWebConfigContentListEntry>;
}
export interface EntryDeleteResponse {
/**
* Identifier
*/
id: string;
}
export interface EntryCreateParams {
/**
* CID or content path of content to block.
*/
content: string;
/**
* Type of content list entry to block.
*/
type: 'cid' | 'content_path';
/**
* An optional description of the content list entry.
*/
description?: string;
}
export interface EntryUpdateParams {
/**
* CID or content path of content to block.
*/
content: string;
/**
* Type of content list entry to block.
*/
type: 'cid' | 'content_path';
/**
* An optional description of the content list entry.
*/
description?: string;
}
export declare namespace Entries {
export import DistributedWebConfigContentListEntry = EntriesAPI.DistributedWebConfigContentListEntry;
export import EntryListResponse = EntriesAPI.EntryListResponse;
export import EntryDeleteResponse = EntriesAPI.EntryDeleteResponse;
export import EntryCreateParams = EntriesAPI.EntryCreateParams;
export import EntryUpdateParams = EntriesAPI.EntryUpdateParams;
}
//# sourceMappingURL=entries.d.ts.map