import { APIResource } from "../core/resource.mjs"; import * as AccountsAPI from "./accounts/accounts.mjs"; import { APIPromise } from "../core/api-promise.mjs"; import { RequestOptions } from "../internal/request-options.mjs"; export declare class Teams extends APIResource { /** * Create a team */ create(body: TeamCreateParams, options?: RequestOptions): APIPromise; /** * Update a team */ update(id: string, body: TeamUpdateParams, options?: RequestOptions): APIPromise; /** * Get a list of teams */ list(options?: RequestOptions): APIPromise; } export interface Team { id?: string; name?: string; users?: Array; } export interface TeamResponse { data?: Team; request_id?: string; } export interface TeamListResponse { data?: Array; pagination?: AccountsAPI.Pagination; request_id?: string; } export interface TeamCreateParams { /** * The name of the team */ name: string; /** * The list of user IDs to add to the team */ user_ids?: Array; } export interface TeamUpdateParams { /** * The name of the team */ name?: string; /** * The list of user IDs to update the team with */ user_ids?: Array; } export declare namespace Teams { export { type Team as Team, type TeamResponse as TeamResponse, type TeamListResponse as TeamListResponse, type TeamCreateParams as TeamCreateParams, type TeamUpdateParams as TeamUpdateParams, }; } //# sourceMappingURL=teams.d.mts.map