import { APIResource } from "../../../core/resource.mjs"; import * as EvaluateAPI from "./evaluate.mjs"; import { BaseEvaluate, Evaluate, EvaluateGetParams, EvaluateGetResponse } from "./evaluate.mjs"; import * as FlagsAPI from "./flags/flags.mjs"; import { BaseFlags, FlagCreateParams, FlagCreateResponse, FlagDeleteParams, FlagDeleteResponse, FlagGetParams, FlagGetResponse, FlagListParams, FlagListResponse, FlagListResponsesCursorPaginationAfter, FlagUpdateParams, FlagUpdateResponse, Flags } from "./flags/flags.mjs"; import { APIPromise } from "../../../core/api-promise.mjs"; import { PagePromise, SinglePage } from "../../../core/pagination.mjs"; import { RequestOptions } from "../../../internal/request-options.mjs"; export declare class BaseApps extends APIResource { static readonly _key: readonly ['flagship', 'apps']; /** * Creates an app. The returned `id` is used in all subsequent flag, changelog, and * evaluation requests. */ create(params: AppCreateParams, options?: RequestOptions): APIPromise; /** * Updates an app. Only `name` is mutable. */ update(appID: string, params: AppUpdateParams, options?: RequestOptions): APIPromise; /** * Lists all apps in the account. Returns identity and audit fields only — flag * definitions are not included. */ list(params: AppListParams, options?: RequestOptions): PagePromise; /** * Deletes an app and all its flags and changelog history. Returns 409 if any * Worker still references this app via a Flagship binding. */ delete(appID: string, params: AppDeleteParams, options?: RequestOptions): APIPromise; /** * Returns an app's name and audit fields. Flag definitions are not included. */ get(appID: string, params: AppGetParams, options?: RequestOptions): APIPromise; } export declare class Apps extends BaseApps { flags: FlagsAPI.Flags; evaluate: EvaluateAPI.Evaluate; } export type AppListResponsesSinglePage = SinglePage; export interface AppCreateResponse { id: string; created_at: string; name: string; updated_at: string; /** * Email of the actor who last modified the app, or `edge-gateway` for * gateway-authenticated changes. */ updated_by: string; } export interface AppUpdateResponse { id: string; created_at: string; name: string; updated_at: string; /** * Email of the actor who last modified the app, or `edge-gateway` for * gateway-authenticated changes. */ updated_by: string; } export interface AppListResponse { id: string; created_at: string; name: string; updated_at: string; /** * Email of the actor who last modified the app, or `edge-gateway` for * gateway-authenticated changes. */ updated_by: string; } export interface AppDeleteResponse { id: string; } export interface AppGetResponse { id: string; created_at: string; name: string; updated_at: string; /** * Email of the actor who last modified the app, or `edge-gateway` for * gateway-authenticated changes. */ updated_by: string; } export interface AppCreateParams { /** * Path param: Cloudflare account ID. */ account_id: string; /** * Body param */ name: string; } export interface AppUpdateParams { /** * Path param: Cloudflare account ID. */ account_id: string; /** * Body param */ name?: string; } export interface AppListParams { /** * Cloudflare account ID. */ account_id: string; } export interface AppDeleteParams { /** * Cloudflare account ID. */ account_id: string; } export interface AppGetParams { /** * Cloudflare account ID. */ account_id: string; } export declare namespace Apps { export { type AppCreateResponse as AppCreateResponse, type AppUpdateResponse as AppUpdateResponse, type AppListResponse as AppListResponse, type AppDeleteResponse as AppDeleteResponse, type AppGetResponse as AppGetResponse, type AppListResponsesSinglePage as AppListResponsesSinglePage, type AppCreateParams as AppCreateParams, type AppUpdateParams as AppUpdateParams, type AppListParams as AppListParams, type AppDeleteParams as AppDeleteParams, type AppGetParams as AppGetParams, }; export { Flags as Flags, BaseFlags as BaseFlags, type FlagCreateResponse as FlagCreateResponse, type FlagUpdateResponse as FlagUpdateResponse, type FlagListResponse as FlagListResponse, type FlagDeleteResponse as FlagDeleteResponse, type FlagGetResponse as FlagGetResponse, type FlagListResponsesCursorPaginationAfter as FlagListResponsesCursorPaginationAfter, type FlagCreateParams as FlagCreateParams, type FlagUpdateParams as FlagUpdateParams, type FlagListParams as FlagListParams, type FlagDeleteParams as FlagDeleteParams, type FlagGetParams as FlagGetParams, }; export { Evaluate as Evaluate, BaseEvaluate as BaseEvaluate, type EvaluateGetResponse as EvaluateGetResponse, type EvaluateGetParams as EvaluateGetParams, }; } //# sourceMappingURL=apps.d.mts.map