// Copyright (c) The OGX Contributors. // All rights reserved. // // This source code is licensed under the terms described in the LICENSE file in // the root directory of this source tree. // // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from '../../resource'; import * as Core from '../../core'; import * as PromptsAPI from './prompts'; /** * Protocol for prompt management operations. */ export class Versions extends APIResource { /** * List all versions of a specific prompt. */ list(promptId: string, options?: Core.RequestOptions): Core.APIPromise { return ( this._client.get(`/v1/prompts/${promptId}/versions`, options) as Core.APIPromise<{ data: PromptsAPI.PromptListResponse; }> )._thenUnwrap((obj) => obj.data); } }