cloudflare
Version:
The official TypeScript library for the Cloudflare API
34 lines • 1.3 kB
TypeScript
import * as Core from 'cloudflare/core';
import { APIResource } from 'cloudflare/resource';
import * as ObjectsAPI from 'cloudflare/resources/durable-objects/namespaces/objects';
import { CursorLimitPagination, type CursorLimitPaginationParams } from 'cloudflare/pagination';
export declare class Objects extends APIResource {
/**
* Returns the Durable Objects in a given namespace.
*/
list(id: string, params: ObjectListParams, options?: Core.RequestOptions): Core.PagePromise<DurableObjectsCursorLimitPagination, DurableObject>;
}
export declare class DurableObjectsCursorLimitPagination extends CursorLimitPagination<DurableObject> {
}
export interface DurableObject {
/**
* ID of the Durable Object.
*/
id?: string;
/**
* Whether the Durable Object has stored data.
*/
hasStoredData?: boolean;
}
export interface ObjectListParams extends CursorLimitPaginationParams {
/**
* Path param: Identifier
*/
account_id: string;
}
export declare namespace Objects {
export import DurableObject = ObjectsAPI.DurableObject;
export import DurableObjectsCursorLimitPagination = ObjectsAPI.DurableObjectsCursorLimitPagination;
export import ObjectListParams = ObjectsAPI.ObjectListParams;
}
//# sourceMappingURL=objects.d.ts.map