import { APIResource } from "../../../core/resource.mjs"; import { APIPromise } from "../../../core/api-promise.mjs"; import { PagePromise, V4PagePaginationArray, type V4PagePaginationArrayParams } from "../../../core/pagination.mjs"; import { RequestOptions } from "../../../internal/request-options.mjs"; export declare class BaseTags extends APIResource { static readonly _key: readonly ['zeroTrust', 'access', 'tags']; /** * Create a tag * * @example * ```ts * const tag = await client.zeroTrust.access.tags.create({ * account_id: '023e105f4ecef8ad9ca31a8372d0c353', * }); * ``` */ create(params: TagCreateParams, options?: RequestOptions): APIPromise; /** * Update a tag * * @example * ```ts * const tag = await client.zeroTrust.access.tags.update( * 'engineers', * { * account_id: '023e105f4ecef8ad9ca31a8372d0c353', * name: 'engineers', * }, * ); * ``` */ update(tagName: string, params: TagUpdateParams, options?: RequestOptions): APIPromise; /** * List tags * * @example * ```ts * // Automatically fetches more pages as needed. * for await (const tag of client.zeroTrust.access.tags.list({ * account_id: '023e105f4ecef8ad9ca31a8372d0c353', * })) { * // ... * } * ``` */ list(params: TagListParams, options?: RequestOptions): PagePromise; /** * Delete a tag * * @example * ```ts * const tag = await client.zeroTrust.access.tags.delete( * 'engineers', * { account_id: '023e105f4ecef8ad9ca31a8372d0c353' }, * ); * ``` */ delete(tagName: string, params: TagDeleteParams, options?: RequestOptions): APIPromise; /** * Get a tag * * @example * ```ts * const tag = await client.zeroTrust.access.tags.get( * 'engineers', * { account_id: '023e105f4ecef8ad9ca31a8372d0c353' }, * ); * ``` */ get(tagName: string, params: TagGetParams, options?: RequestOptions): APIPromise; } export declare class Tags extends BaseTags { } export type TagsV4PagePaginationArray = V4PagePaginationArray; /** * A tag */ export interface Tag { /** * The name of the tag */ name: string; } export interface TagDeleteResponse { /** * The name of the tag */ name?: string; } export interface TagCreateParams { /** * Path param: Identifier. */ account_id: string; /** * Body param: The name of the tag */ name?: string; } export interface TagUpdateParams { /** * Path param: Identifier. */ account_id: string; /** * Body param: The name of the tag */ name: string; } export interface TagListParams extends V4PagePaginationArrayParams { /** * Path param: Identifier. */ account_id: string; } export interface TagDeleteParams { /** * Identifier. */ account_id: string; } export interface TagGetParams { /** * Identifier. */ account_id: string; } export declare namespace Tags { export { type Tag as Tag, type TagDeleteResponse as TagDeleteResponse, type TagsV4PagePaginationArray as TagsV4PagePaginationArray, type TagCreateParams as TagCreateParams, type TagUpdateParams as TagUpdateParams, type TagListParams as TagListParams, type TagDeleteParams as TagDeleteParams, type TagGetParams as TagGetParams, }; } //# sourceMappingURL=tags.d.mts.map