/opt/canhelp/node_modules/openai/resources/skills/versions
NameSizeModeActions
content.d.mts6730644editdlrm
content.d.mts.map5030644editdlrm
content.d.ts6690644editdlrm
content.d.ts.map5020644editdlrm
content.js8980644editdlrm
content.js.map5730644editdlrm
content.mjs7400644editdlrm
content.mjs.map5750644editdlrm
index.d.mts3450644editdlrm
index.d.mts.map3360644editdlrm
index.d.ts3420644editdlrm
index.d.ts.map3350644editdlrm
index.js5550644editdlrm
index.js.map2180644editdlrm
index.mjs2060644editdlrm
index.mjs.map1890644editdlrm
versions.d.mts37930644editdlrm
versions.d.mts.map23660644editdlrm
versions.d.ts37850644editdlrm
versions.d.ts.map23650644editdlrm
versions.js18830644editdlrm
versions.js.map12530644editdlrm
versions.mjs16030644editdlrm
versions.mjs.map12580644editdlrm
Edit: /opt/canhelp/node_modules/openai/resources/skills/versions/versions.d.ts (3785B)
import { APIResource } from "../../../core/resource.js"; import * as ContentAPI from "./content.js"; import { Content, ContentRetrieveParams } from "./content.js"; import { APIPromise } from "../../../core/api-promise.js"; import { CursorPage, type CursorPageParams, PagePromise } from "../../../core/pagination.js"; import { type Uploadable } from "../../../core/uploads.js"; import { RequestOptions } from "../../../internal/request-options.js"; export declare class Versions extends APIResource { content: ContentAPI.Content; /** * Create a new immutable skill version. */ create(skillID: string, body?: VersionCreateParams | null | undefined, options?: RequestOptions): APIPromise; /** * Get a specific skill version. */ retrieve(version: string, params: VersionRetrieveParams, options?: RequestOptions): APIPromise; /** * List skill versions for a skill. */ list(skillID: string, query?: VersionListParams | null | undefined, options?: RequestOptions): PagePromise; /** * Delete a skill version. */ delete(version: string, params: VersionDeleteParams, options?: RequestOptions): APIPromise; } export type SkillVersionsPage = CursorPage; export interface DeletedSkillVersion { id: string; deleted: boolean; object: 'skill.version.deleted'; /** * The deleted skill version. */ version: string; } export interface SkillVersion { /** * Unique identifier for the skill version. */ id: string; /** * Unix timestamp (seconds) for when the version was created. */ created_at: number; /** * Description of the skill version. */ description: string; /** * Name of the skill version. */ name: string; /** * The object type, which is `skill.version`. */ object: 'skill.version'; /** * Identifier of the skill for this version. */ skill_id: string; /** * Version number for this skill. */ version: string; } export interface SkillVersionList { /** * A list of items */ data: Array; /** * The ID of the first item in the list. */ first_id: string | null; /** * Whether there are more items available. */ has_more: boolean; /** * The ID of the last item in the list. */ last_id: string | null; /** * The type of object returned, must be `list`. */ object: 'list'; } export interface VersionCreateParams { /** * Whether to set this version as the default. */ default?: boolean; /** * Skill files to upload (directory upload) or a single zip file. */ files?: Array | Uploadable; } export interface VersionRetrieveParams { /** * The identifier of the skill. */ skill_id: string; } export interface VersionListParams extends CursorPageParams { /** * Sort order of results by version number. */ order?: 'asc' | 'desc'; } export interface VersionDeleteParams { /** * The identifier of the skill. */ skill_id: string; } export declare namespace Versions { export { type DeletedSkillVersion as DeletedSkillVersion, type SkillVersion as SkillVersion, type SkillVersionList as SkillVersionList, type SkillVersionsPage as SkillVersionsPage, type VersionCreateParams as VersionCreateParams, type VersionRetrieveParams as VersionRetrieveParams, type VersionListParams as VersionListParams, type VersionDeleteParams as VersionDeleteParams, }; export { Content as Content, type ContentRetrieveParams as ContentRetrieveParams }; } //# sourceMappingURL=versions.d.ts.map