@uipath/ixp-sdk 1.196.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,20 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../auth/src/provider.ts", "../../auth/src/getLoginStatusAsync.ts", "../src/client-factory.ts", "../src/http-core.ts", "../src/designtime-http.ts", "../src/deployments-service.ts", "../src/documents-service.ts", "../src/labellings-service.ts", "../src/models-service.ts", "../src/projects-service.ts", "../src/taxonomy-service.ts"],
4
+ "sourcesContent": [
5
+ "import type { AuthProvider } from \"./types\";\n\nexport class AuthNotInitializedError extends Error {\n readonly __brand = \"AuthNotInitializedError\" as const;\n constructor(message: string) {\n super(message);\n this.name = \"AuthNotInitializedError\";\n }\n}\n\nexport class AuthProviderAlreadyInitializedError extends Error {\n readonly __brand = \"AuthProviderAlreadyInitializedError\" as const;\n constructor(message: string) {\n super(message);\n this.name = \"AuthProviderAlreadyInitializedError\";\n }\n}\n\nexport const AUTH_PROVIDER_KEY: unique symbol = Symbol.for(\n \"@uipath/auth/provider@v1\",\n);\n\ntype GlobalSlot = { [AUTH_PROVIDER_KEY]?: AuthProvider };\n\nexport function initAuthProvider(p: AuthProvider): void {\n const g = globalThis as unknown as GlobalSlot;\n if (g[AUTH_PROVIDER_KEY] !== undefined) {\n throw new AuthProviderAlreadyInitializedError(\n \"@uipath/auth: provider already initialized. initAuthProvider() is callable once per process.\",\n );\n }\n g[AUTH_PROVIDER_KEY] = Object.freeze({ ...p });\n}\n\nexport function provider(): AuthProvider {\n const p = (globalThis as unknown as GlobalSlot)[AUTH_PROVIDER_KEY];\n if (!p) {\n throw new AuthNotInitializedError(\n \"@uipath/auth: provider not initialized. The CLI host must call initAuthProvider() before any auth API is invoked.\",\n );\n }\n return p;\n}\n\n// Re-export so existing consumers that import AuthProvider from \"./provider\"\n// continue to compile without changes.\nexport type { AuthProvider } from \"./types\";\n",
6
+ "// Thin facade over the registered AuthProvider. The CLI host owns the\n// real computation (packages/cli/src/services/auth/login-status.ts);\n// auth keeps only the public API surface and the cross-bundle provider\n// slot defined in ./provider.\n\nimport { provider } from \"./provider\";\nimport type { GetLoginStatusOptions, LoginStatus } from \"./types\";\n\nexport type {\n GetLoginStatusOptions,\n LoginStatus,\n LoginStatusValue,\n TokenRefreshTelemetry,\n} from \"./types\";\nexport { LoginStatusSource } from \"./types\";\n\nexport const getLoginStatusAsync = (\n options: GetLoginStatusOptions = {},\n): Promise<LoginStatus> => provider().getLoginStatus(options);\n",
7
+ "import { getLoginStatusAsync } from \"@uipath/auth\";\nimport type { IxpConfig } from \"./types.js\";\n\nexport interface CreateApiClientOptions {\n tenant?: string;\n loginValidity?: number;\n}\n\nexport async function createIxpConfig(\n options?: CreateApiClientOptions,\n): Promise<IxpConfig> {\n const status = await getLoginStatusAsync({\n ensureTokenValidityMinutes: options?.loginValidity,\n });\n\n if (\n status.loginStatus !== \"Logged in\" ||\n !status.accessToken ||\n !status.baseUrl ||\n !status.organizationId\n ) {\n const message = status.hint\n ? `Not logged in. ${status.hint}`\n : \"Not logged in. Run 'uip login' first.\";\n throw new Error(message);\n }\n\n const tenantName = options?.tenant ?? status.tenantName;\n if (!tenantName) {\n throw new Error(\n \"Tenant not provided and UIPATH_TENANT_NAME not set. Run 'uip login' to select a tenant, or use 'uip login tenant set <tenant>' to switch tenants.\",\n );\n }\n\n return {\n baseUrl: status.baseUrl,\n accessToken: status.accessToken,\n organizationId: status.organizationId,\n tenantName,\n };\n}\n",
8
+ "import type { IxpConfig } from \"./types.js\";\n\n// Shared transport primitives for ixp-http.ts and designtime-http.ts.\n\nexport function platformBasePath(\n config: IxpConfig,\n apiSegment: string,\n): string {\n // org/tenant come from login state and may contain reserved URL chars.\n const org = encodeURIComponent(config.organizationId);\n const tenant = encodeURIComponent(config.tenantName);\n return `${config.baseUrl}/${org}/${tenant}/${apiSegment}`;\n}\n\nexport function authJsonHeaders(config: IxpConfig): Record<string, string> {\n return {\n Authorization: `Bearer ${config.accessToken}`,\n \"Content-Type\": \"application/json\",\n Accept: \"application/json\",\n };\n}\n\n// Carries the status as a structured field (not just in the message string) so\n// `extractErrorDetails` can classify the failure (e.g. 404 → `not_found`). The\n// `response.text()` shim hands back the already-consumed body.\nexport class IxpHttpError extends Error {\n readonly status: number;\n readonly response: {\n status: number;\n statusText: string;\n text: () => Promise<string>;\n };\n\n constructor(\n errorMessage: string,\n status: number,\n statusText: string,\n url: string,\n body: string,\n ) {\n super(\n `${errorMessage}: ${status} ${statusText} - URL: ${url} - ${body}`,\n );\n this.name = \"IxpHttpError\";\n this.status = status;\n this.response = {\n status,\n statusText,\n text: () => Promise.resolve(body),\n };\n }\n}\n\nexport async function request<T>(\n url: string,\n options: RequestInit,\n errorMessage: string,\n): Promise<T> {\n const response = await fetch(url, options);\n if (!response.ok) {\n const errorText = await response.text();\n throw new IxpHttpError(\n errorMessage,\n response.status,\n response.statusText,\n url,\n errorText,\n );\n }\n return (await response.json()) as T;\n}\n",
9
+ "import {\n authJsonHeaders,\n IxpHttpError,\n platformBasePath,\n request,\n} from \"./http-core.js\";\nimport type { IxpConfig } from \"./types.js\";\n\n// Transport for the public Design-Time API (du-designtimeapi), under\n// /du_/api/designtimeapi.\n\n// The gateway requires an explicit api-version query param on every call.\nconst DESIGNTIME_API_VERSION = \"1.0\";\n\nfunction designtimeBasePath(config: IxpConfig): string {\n return platformBasePath(config, \"du_/api/designtimeapi\");\n}\n\nfunction designtimeUrl(config: IxpConfig, path: string): string {\n const separator = path.includes(\"?\") ? \"&\" : \"?\";\n return `${designtimeBasePath(config)}${path}${separator}api-version=${DESIGNTIME_API_VERSION}`;\n}\n\nexport async function designtimeGet<T>(\n config: IxpConfig,\n path: string,\n errorMessage: string,\n): Promise<T> {\n return request<T>(\n designtimeUrl(config, path),\n { method: \"GET\", headers: authJsonHeaders(config) },\n errorMessage,\n );\n}\n\nexport async function designtimePost<T>(\n config: IxpConfig,\n path: string,\n body: unknown,\n errorMessage: string,\n): Promise<T> {\n return request<T>(\n designtimeUrl(config, path),\n {\n method: \"POST\",\n headers: authJsonHeaders(config),\n body: JSON.stringify(body ?? {}),\n },\n errorMessage,\n );\n}\n\nexport async function designtimePut<T>(\n config: IxpConfig,\n path: string,\n body: unknown,\n errorMessage: string,\n): Promise<T> {\n return request<T>(\n designtimeUrl(config, path),\n {\n method: \"PUT\",\n headers: authJsonHeaders(config),\n body: JSON.stringify(body ?? {}),\n },\n errorMessage,\n );\n}\n\nexport async function designtimePatch<T>(\n config: IxpConfig,\n path: string,\n body: unknown,\n errorMessage: string,\n): Promise<T> {\n return request<T>(\n designtimeUrl(config, path),\n {\n method: \"PATCH\",\n headers: authJsonHeaders(config),\n body: JSON.stringify(body ?? {}),\n },\n errorMessage,\n );\n}\n\n// Returns the parsed JSON body. Callers that don't need it use the default\n// `void` type argument and ignore the resolved value.\nexport async function designtimeDelete<T = void>(\n config: IxpConfig,\n path: string,\n errorMessage: string,\n): Promise<T> {\n return request<T>(\n designtimeUrl(config, path),\n { method: \"DELETE\", headers: authJsonHeaders(config) },\n errorMessage,\n );\n}\n\n// Multipart upload — the body sets its own Content-Type, so only the bearer\n// header is sent.\nexport async function designtimeUploadMultipart<T>(\n config: IxpConfig,\n path: string,\n formData: FormData,\n errorMessage: string,\n): Promise<T> {\n const url = designtimeUrl(config, path);\n const response = await fetch(url, {\n method: \"POST\",\n headers: { Authorization: `Bearer ${config.accessToken}` },\n body: formData,\n });\n if (!response.ok) {\n const errorText = await response.text();\n throw new IxpHttpError(\n errorMessage,\n response.status,\n response.statusText,\n url,\n errorText,\n );\n }\n return (await response.json()) as T;\n}\n\nexport async function designtimeDownloadBinary(\n config: IxpConfig,\n path: string,\n errorMessage: string,\n): Promise<{ buffer: ArrayBuffer; contentType: string }> {\n const url = designtimeUrl(config, path);\n const response = await fetch(url, {\n method: \"GET\",\n headers: { Authorization: `Bearer ${config.accessToken}` },\n });\n if (!response.ok) {\n const errorText = await response.text();\n throw new IxpHttpError(\n errorMessage,\n response.status,\n response.statusText,\n url,\n errorText,\n );\n }\n const contentType =\n response.headers.get(\"content-type\") || \"application/octet-stream\";\n return { buffer: await response.arrayBuffer(), contentType };\n}\n",
10
+ "import { designtimeGet } from \"./designtime-http.js\";\nimport type { IxpConfig } from \"./types.js\";\n\n// Returns the public endpoint's body verbatim (raw snake_case) — the backend\n// payload is forwarded unmapped, hence the untyped return.\nexport async function getDeploymentTaxonomy(\n config: IxpConfig,\n projectName: string,\n version: number,\n): Promise<Record<string, unknown>> {\n // Versions are 0-based, so 0 is valid.\n if (!Number.isInteger(version) || version < 0) {\n throw new Error(\n `Version must be a non-negative integer (got ${version}).`,\n );\n }\n return designtimeGet<Record<string, unknown>>(\n config,\n `/api/projects/${encodeURIComponent(projectName)}/models/${version}/taxonomy`,\n \"Failed to get deployment taxonomy\",\n );\n}\n",
11
+ "import {\n designtimeDelete,\n designtimeDownloadBinary,\n designtimeGet,\n designtimeUploadMultipart,\n} from \"./designtime-http.js\";\nimport type { IxpConfig } from \"./types.js\";\n\n// ── Public Design-Time API (passthrough) ────────────────────────────────────\n// These types mirror the public Design-Time API response models verbatim\n// (PascalCase keys). The SDK forwards the parsed body without remapping — the\n// public API is already the curated, CLI-aligned shape.\n\n// GET /api/projects/{projectName}/documents\nexport interface Document {\n DocumentId: string;\n AttachmentRef: string | null;\n Filename: string | null;\n}\n\nexport interface DocumentsPage {\n Documents: Document[];\n Total?: number | null;\n Offset?: number | null;\n Limit?: number | null;\n}\n\n// POST /api/projects/{projectName}/documents\nexport interface UploadDocumentResponse {\n ProjectName: string;\n Filename: string;\n AttachmentRef: string;\n DocumentId: string;\n}\n\n// DELETE /api/projects/{projectName}/documents/{documentId}\nexport interface DeleteDocumentResponse {\n Status: string;\n}\n\nexport interface ListDocumentsOptions {\n /** Max items to return. */\n limit?: number;\n /** Number of items to skip. */\n offset?: number;\n}\n\nfunction documentsPath(projectName: string): string {\n return `/api/projects/${encodeURIComponent(projectName)}/documents`;\n}\n\nexport async function listDocuments(\n config: IxpConfig,\n projectName: string,\n options: ListDocumentsOptions = {},\n): Promise<DocumentsPage> {\n const params = new URLSearchParams();\n if (options.limit !== undefined) {\n params.set(\"limit\", String(options.limit));\n }\n if (options.offset !== undefined) {\n params.set(\"offset\", String(options.offset));\n }\n const query = params.toString();\n return designtimeGet<DocumentsPage>(\n config,\n `${documentsPath(projectName)}${query ? `?${query}` : \"\"}`,\n \"Failed to list documents\",\n );\n}\n\nexport async function uploadDocument(\n config: IxpConfig,\n projectName: string,\n file: Blob,\n filename: string,\n): Promise<UploadDocumentResponse> {\n const formData = new FormData();\n formData.append(\"file\", file, filename);\n return designtimeUploadMultipart<UploadDocumentResponse>(\n config,\n documentsPath(projectName),\n formData,\n `Failed to upload document \"${filename}\"`,\n );\n}\n\nexport async function downloadDocument(\n config: IxpConfig,\n projectName: string,\n documentId: string,\n): Promise<{ buffer: ArrayBuffer; contentType: string }> {\n return designtimeDownloadBinary(\n config,\n `${documentsPath(projectName)}/${encodeURIComponent(documentId)}`,\n \"Failed to download document\",\n );\n}\n\nexport async function deleteDocument(\n config: IxpConfig,\n projectName: string,\n documentId: string,\n): Promise<DeleteDocumentResponse> {\n return designtimeDelete<DeleteDocumentResponse>(\n config,\n `${documentsPath(projectName)}/${encodeURIComponent(documentId)}`,\n \"Failed to delete document\",\n );\n}\n",
12
+ "import { designtimeGet, designtimePost } from \"./designtime-http.js\";\nimport type { IxpConfig } from \"./types.js\";\n\n// ── Public Design-Time API (passthrough) ────────────────────────────────────\n// These types mirror the public Design-Time API request/response models\n// verbatim (PascalCase keys). The server now owns the prediction fetch,\n// occurrence numbering, ancestor expansion and full-replacement preservation\n// that the CLI used to assemble client-side (ACTV-88775); the SDK forwards\n// the request body it is given and returns the parsed body unchanged.\n\n// GET /api/projects/{projectName}/documents/{documentId}/predictions\nexport interface PredictedField {\n FieldId: string | null;\n FieldName: string | null;\n FormattedValue: string;\n}\n\nexport interface PredictionLabel {\n Name: string | null;\n // 0-based occurrence index among predictions sharing the same Name, in\n // document order — the value to pass as `Occurrence` in a confirm/unconfirm\n // Updates entry. A non-repeating group always reports 0.\n Occurrence: number;\n Fields: PredictedField[];\n}\n\nexport interface DocumentPredictions {\n DocumentId: string;\n Labels: PredictionLabel[];\n}\n\n// Shared by ConfirmLabellingRequest and ConfirmOccurrenceUpdate.\nexport interface FieldCorrection {\n FieldId: string;\n Value: string;\n}\n\n// One per-occurrence confirm instruction. Occurrence is 0-based, numbered by\n// field-group (label) name in document order (CLI: --occurrence / --updates).\nexport interface ConfirmOccurrenceUpdate {\n Occurrence: number;\n // Omit to confirm every predicted field in the occurrence.\n FieldIds?: string[];\n Corrections?: FieldCorrection[];\n}\n\n// POST /api/projects/{projectName}/documents/{documentId}/labelling/confirm\nexport interface ConfirmLabellingRequest {\n // Field ids to confirm; omit to confirm all predicted fields. With Group it\n // limits to those fields within the group. Mutually exclusive with Updates.\n FieldIds?: string[];\n // Per-field value overrides applied before confirming. Mutually exclusive\n // with Updates (per-occurrence corrections live inside each entry instead).\n Corrections?: FieldCorrection[];\n // Full label path of the repeatable field group to target (CLI: --group).\n // Required when Updates is present.\n Group?: string;\n // Per-occurrence confirm of the group named by Group (CLI: --updates),\n // applied in one upstream write. Mutually exclusive with FieldIds and\n // Corrections; requires Group.\n Updates?: ConfirmOccurrenceUpdate[];\n}\n\nexport interface ConfirmLabellingResponse {\n PredictionsConfirmed: number;\n Unmatched: string[];\n}\n\n// One per-occurrence unconfirm instruction (CLI: --occurrence / --updates).\nexport interface UnconfirmOccurrenceUpdate {\n Occurrence: number;\n // Omit to unconfirm every annotated field in the occurrence.\n FieldIds?: string[];\n}\n\n// POST /api/projects/{projectName}/documents/{documentId}/labelling/unconfirm\nexport interface UnconfirmLabellingRequest {\n // Field ids to unconfirm; required only in the flat mode (no Group, no\n // Updates). With Group it limits to that group; with Updates the ids live\n // inside each entry instead.\n FieldIds?: string[];\n // Full label path of the repeatable field group to target (CLI: --group).\n // Required when Updates is present.\n Group?: string;\n // Per-occurrence unconfirm of the group named by Group (CLI: --updates).\n // Mutually exclusive with FieldIds; requires Group.\n Updates?: UnconfirmOccurrenceUpdate[];\n}\n\nexport interface UnconfirmLabellingResponse {\n FieldsUnconfirmed: number;\n Unmatched: string[];\n}\n\n// POST /api/projects/{projectName}/documents/{documentId}/labelling/mark-as-missing\nexport interface MarkLabellingAsMissingRequest {\n FieldIds: string[];\n}\n\nexport interface MarkLabellingAsMissingResponse {\n FieldsMarked: number;\n Unmatched: string[];\n}\n\nfunction documentPath(projectName: string, documentId: string): string {\n return `/api/projects/${encodeURIComponent(projectName)}/documents/${encodeURIComponent(documentId)}`;\n}\n\nexport async function getDocumentPredictions(\n config: IxpConfig,\n projectName: string,\n documentId: string,\n): Promise<DocumentPredictions> {\n return designtimeGet<DocumentPredictions>(\n config,\n `${documentPath(projectName, documentId)}/predictions`,\n \"Failed to get document predictions\",\n );\n}\n\nexport async function confirmLabelling(\n config: IxpConfig,\n projectName: string,\n documentId: string,\n body: ConfirmLabellingRequest,\n): Promise<ConfirmLabellingResponse> {\n return designtimePost<ConfirmLabellingResponse>(\n config,\n `${documentPath(projectName, documentId)}/labelling/confirm`,\n body,\n \"Failed to confirm labelling\",\n );\n}\n\nexport async function unconfirmLabelling(\n config: IxpConfig,\n projectName: string,\n documentId: string,\n body: UnconfirmLabellingRequest,\n): Promise<UnconfirmLabellingResponse> {\n return designtimePost<UnconfirmLabellingResponse>(\n config,\n `${documentPath(projectName, documentId)}/labelling/unconfirm`,\n body,\n \"Failed to unconfirm labelling\",\n );\n}\n\nexport async function markLabellingAsMissing(\n config: IxpConfig,\n projectName: string,\n documentId: string,\n body: MarkLabellingAsMissingRequest,\n): Promise<MarkLabellingAsMissingResponse> {\n return designtimePost<MarkLabellingAsMissingResponse>(\n config,\n `${documentPath(projectName, documentId)}/labelling/mark-as-missing`,\n body,\n \"Failed to mark labelling as missing\",\n );\n}\n",
13
+ "import {\n designtimeDelete,\n designtimeGet,\n designtimePost,\n} from \"./designtime-http.js\";\nimport type { IxpConfig } from \"./types.js\";\n\n// ── Public Design-Time API (passthrough) ────────────────────────────────────\n// These types mirror the public Design-Time API response models verbatim\n// (PascalCase keys). The SDK forwards the parsed body without remapping — the\n// public API is already the curated, CLI-aligned shape.\n\n// GET /api/projects/{projectName}/models\nexport interface ModelVersionSummary {\n Version: number;\n ModelName: string | null;\n Pinned: boolean;\n TrainedTime: string;\n Description?: string | null;\n}\n\nexport interface ModelTagSummary {\n Name: string | null;\n Version: number;\n UpdatedAt?: string | null;\n}\n\nexport interface ModelListResponse {\n Models: ModelVersionSummary[];\n Tags: ModelTagSummary[];\n MaxPublished: number;\n}\n\n// GET /api/projects/{projectName}/models/{modelVersion}/metrics\n// `Metrics` is null for a model that exists but has not been validated yet.\n// The metrics object itself is a rich typed graph; forwarded verbatim.\nexport interface ModelMetricsResponse {\n Metrics: Record<string, unknown> | null;\n}\n\n// POST /api/projects/{projectName}/models/{modelVersion}/publish\nexport interface PublishedTag {\n Name: string | null;\n Version: number;\n UpdatedAt?: string | null;\n}\n\nexport interface PublishModelResponse {\n ProjectName: string | null;\n ModelVersion: number;\n Pinned: boolean;\n // null when the version is published without a tag.\n Tag: PublishedTag | null;\n Description?: string | null;\n}\n\n// DELETE /api/projects/{projectName}/models/{modelVersion}/publish\n// Unpublishes the version: removed from the published set, still trained and\n// listable. `Pinned` is always false on success (the server-owned key name is\n// kept verbatim for the passthrough output).\nexport interface UnpublishModelResponse {\n ProjectName: string;\n ModelVersion: number;\n Pinned: boolean;\n}\n\n// DELETE /api/projects/{projectName}/models/{modelVersion}/tags\n// Clears the tag pointer(s) for the version; the version stays trained and\n// published. `RemovedTags` echoes the tag name(s) that pointed at the version.\nexport interface UntagModelResponse {\n ProjectName: string;\n ModelVersion: number;\n RemovedTags: string[];\n}\n\nfunction modelsPath(projectName: string): string {\n return `/api/projects/${encodeURIComponent(projectName)}/models`;\n}\n\nexport async function listModels(\n config: IxpConfig,\n projectName: string,\n): Promise<ModelListResponse> {\n return designtimeGet<ModelListResponse>(\n config,\n modelsPath(projectName),\n \"Failed to list models\",\n );\n}\n\nexport async function getModelMetrics(\n config: IxpConfig,\n projectName: string,\n modelVersion: string,\n): Promise<ModelMetricsResponse> {\n return designtimeGet<ModelMetricsResponse>(\n config,\n `${modelsPath(projectName)}/${encodeURIComponent(modelVersion)}/metrics`,\n \"Failed to get model metrics\",\n );\n}\n\n// Publishes the model version. The public endpoint takes a curated PascalCase\n// body `{ Tag?, Description? }` (the version comes from the path). `tag` is\n// optional — omit it to publish untagged; `description` is optional and an\n// empty string clears any existing description.\nexport async function publishModel(\n config: IxpConfig,\n projectName: string,\n modelVersion: number,\n options: { tag?: string; description?: string } = {},\n): Promise<PublishModelResponse> {\n const body: { Tag?: string; Description?: string } = {};\n if (options.tag !== undefined) {\n body.Tag = options.tag;\n }\n if (options.description !== undefined) {\n body.Description = options.description;\n }\n return designtimePost<PublishModelResponse>(\n config,\n `${modelsPath(projectName)}/${modelVersion}/publish`,\n body,\n \"Failed to publish model\",\n );\n}\n\n// Unpublishes the model version (removes it from the published set). The server\n// resolves and clears the publish state in one call; the version stays trained.\nexport async function unpublishModel(\n config: IxpConfig,\n projectName: string,\n modelVersion: number,\n): Promise<UnpublishModelResponse> {\n return designtimeDelete<UnpublishModelResponse>(\n config,\n `${modelsPath(projectName)}/${modelVersion}/publish`,\n \"Failed to unpublish model\",\n );\n}\n\n// Removes the tag pointer(s) from the model version. The op is keyed by version\n// (the server resolves which tag name(s) point at it); the version stays\n// trained and published.\nexport async function untagModel(\n config: IxpConfig,\n projectName: string,\n modelVersion: number,\n): Promise<UntagModelResponse> {\n return designtimeDelete<UntagModelResponse>(\n config,\n `${modelsPath(projectName)}/${modelVersion}/tags`,\n \"Failed to remove model tag\",\n );\n}\n",
14
+ "import {\n designtimeDelete,\n designtimeGet,\n designtimePatch,\n designtimePost,\n} from \"./designtime-http.js\";\nimport type { IxpConfig } from \"./types.js\";\n\n// ── Public Design-Time API (passthrough) ────────────────────────────────────\n// These types mirror the public Design-Time API response models verbatim\n// (PascalCase keys). The SDK forwards the parsed body without remapping — the\n// public API is already the curated, CLI-aligned shape.\n\n// GET /api/projects and GET /api/projects/{projectName}\nexport interface Project {\n Id: string | null;\n Name: string | null;\n Title: string | null;\n CreatedAt: string;\n}\n\nexport interface ProjectsPage {\n Projects: Project[];\n Total: number;\n Offset: number;\n Limit: number;\n}\n\nexport interface ListProjectsOptions {\n /** Max items to return. */\n limit?: number;\n /** Number of items to skip. */\n offset?: number;\n}\n\n// DELETE /api/projects/{projectName}\nexport interface DeleteProjectResponse {\n Status: string | null;\n}\n\nfunction projectPath(projectName: string): string {\n return `/api/projects/${encodeURIComponent(projectName)}`;\n}\n\nexport async function listIxpProjects(\n config: IxpConfig,\n options: ListProjectsOptions = {},\n): Promise<ProjectsPage> {\n const params = new URLSearchParams();\n if (options.limit !== undefined) {\n params.set(\"limit\", String(options.limit));\n }\n if (options.offset !== undefined) {\n params.set(\"offset\", String(options.offset));\n }\n const query = params.toString();\n return designtimeGet<ProjectsPage>(\n config,\n `/api/projects${query ? `?${query}` : \"\"}`,\n \"Failed to list projects\",\n );\n}\n\nexport async function getProject(\n config: IxpConfig,\n projectName: string,\n): Promise<Project> {\n return designtimeGet<Project>(\n config,\n projectPath(projectName),\n \"Failed to get project\",\n );\n}\n\n// Updates the project's display title. The proxy keeps the dataset (\"store\")\n// and project (\"Polity\") titles in sync server-side, so a single PATCH\n// replaces the CLI's former two-call dance.\nexport async function updateProjectTitle(\n config: IxpConfig,\n projectName: string,\n title: string,\n): Promise<Project> {\n return designtimePatch<Project>(\n config,\n projectPath(projectName),\n { Title: title },\n \"Failed to update project title\",\n );\n}\n\n// Creates a project. The proxy slugifies `name` server-side; the returned\n// `Name` is the canonical slug used by every other command.\nexport async function createProject(\n config: IxpConfig,\n name: string,\n): Promise<Project> {\n return designtimePost<Project>(\n config,\n \"/api/projects\",\n { Name: name },\n \"Failed to create project\",\n );\n}\n\nexport async function deleteIxpProject(\n config: IxpConfig,\n projectName: string,\n): Promise<DeleteProjectResponse> {\n return designtimeDelete<DeleteProjectResponse>(\n config,\n projectPath(projectName),\n \"Failed to delete project\",\n );\n}\n",
15
+ "import {\n designtimeDelete,\n designtimeGet,\n designtimePost,\n designtimePut,\n} from \"./designtime-http.js\";\nimport type {\n IxpConfig,\n SuggestedTaxonomy,\n SuggestTaxonomyResponse,\n} from \"./types.js\";\n\n// These mirror the projects-group taxonomy/model endpoints. The taxonomy\n// endpoints forward the upstream IXP body verbatim (raw snake_case), so their\n// return type is untyped; the command surfaces them with `preserveDataKeys`.\n\n// GET /api/projects/{projectName}/taxonomy — raw GetDatasetResponse verbatim.\nexport async function getProjectTaxonomy(\n config: IxpConfig,\n projectName: string,\n): Promise<Record<string, unknown>> {\n return designtimeGet<Record<string, unknown>>(\n config,\n `/api/projects/${encodeURIComponent(projectName)}/taxonomy`,\n \"Failed to get taxonomy\",\n );\n}\n\n// POST /api/projects/{projectName}/taxonomy/suggest — body and response are\n// forwarded byte-for-byte; the response carries the suggested taxonomy under\n// `taxonomy` (raw snake_case).\nexport async function suggestTaxonomy(\n config: IxpConfig,\n projectName: string,\n description: string,\n documents: string[],\n): Promise<SuggestTaxonomyResponse> {\n return designtimePost<SuggestTaxonomyResponse>(\n config,\n `/api/projects/${encodeURIComponent(projectName)}/taxonomy/suggest`,\n { description, documents },\n \"Failed to suggest taxonomy\",\n );\n}\n\n// POST /api/projects/{projectName}/taxonomy/import — the request body is\n// forwarded byte-for-byte to the IXP backend (entity_defs + label_groups +\n// overwrite flag), and the status envelope is surfaced verbatim.\nexport async function importTaxonomy(\n config: IxpConfig,\n projectName: string,\n taxonomy: SuggestedTaxonomy,\n): Promise<Record<string, unknown>> {\n return designtimePost<Record<string, unknown>>(\n config,\n `/api/projects/${encodeURIComponent(projectName)}/taxonomy/import`,\n {\n entity_defs: taxonomy.field_types,\n label_groups: [taxonomy.label_group],\n overwrite_duplicates: true,\n },\n \"Failed to import taxonomy\",\n );\n}\n\n// PUT /api/projects/{projectName}/prompt — sets the project's overall\n// extraction instructions (the \"default\" label group's instructions). The\n// proxy writes the dataset-level instructions server-side; returns\n// `{ Status }`.\nexport interface UpdateProjectPromptResponse {\n Status: string | null;\n}\n\nexport async function updateProjectPrompt(\n config: IxpConfig,\n projectName: string,\n prompt: string,\n): Promise<UpdateProjectPromptResponse> {\n return designtimePut<UpdateProjectPromptResponse>(\n config,\n `/api/projects/${encodeURIComponent(projectName)}/prompt`,\n { Prompt: prompt },\n \"Failed to update project prompt\",\n );\n}\n\n// PUT /api/projects/{projectName}/model-config — the proxy reads the current\n// config, merges the supplied model / pre-processing, writes it back, and\n// returns the merged config (PascalCase).\nexport interface ConfigureModelResponse {\n ProjectName: string | null;\n Config: Record<string, unknown>;\n}\n\nexport interface ConfigureModelOptions {\n model?: string;\n // Intelligent pre-processing: none | table_mini | table.\n preprocessing?: string;\n}\n\nexport async function configureModel(\n config: IxpConfig,\n projectName: string,\n options: ConfigureModelOptions,\n): Promise<ConfigureModelResponse> {\n const body: { Model?: string; Preprocessing?: string } = {};\n if (options.model !== undefined) {\n body.Model = options.model;\n }\n if (options.preprocessing !== undefined) {\n body.Preprocessing = options.preprocessing;\n }\n return designtimePut<ConfigureModelResponse>(\n config,\n `/api/projects/${encodeURIComponent(projectName)}/model-config`,\n body,\n \"Failed to configure model\",\n );\n}\n\n// ── Data types (entity defs) — public Design-Time API (passthrough) ─────────\n//\n// These types mirror the public Design-Time API request/response models\n// verbatim (PascalCase keys). The proxy builds the backend NewEntityDef\n// server-side from the typed request (kind → inherits_from, the input-value\n// flag, the choice rules) and enforces all validation; the SDK forwards the\n// parsed response without remapping.\n\n// The underlying kind of a data type. Maps server-side to inherits_from.\nexport type DataTypeKind =\n | \"text\"\n | \"date\"\n | \"money\"\n | \"number\"\n | \"boolean\"\n | \"choice\";\n\n// Whether the value appears verbatim in the document (exact-match) or is\n// inferred/computed (inferred). Only meaningful for text/choice kinds.\nexport type DataTypeInputValue = \"exact-match\" | \"inferred\";\n\n// One choice for a choice-kind data type. `Value` is the canonical display\n// value; `Alternates` are alternate spellings the model maps to it.\nexport interface DataTypeChoice {\n Value: string;\n Alternates?: string[];\n}\n\n// POST /api/projects/{projectName}/data-types\nexport interface CreateDataTypeRequest {\n Name: string;\n Kind: DataTypeKind;\n Instructions: string;\n InputValue?: DataTypeInputValue;\n Choices?: DataTypeChoice[];\n}\n\nexport interface CreateDataTypeResponse {\n ProjectName: string;\n Name: string;\n Kind: DataTypeKind;\n InputValue?: DataTypeInputValue | null;\n}\n\n// POST /api/projects/{projectName}/data-types/{dataTypeName}/rename. The data\n// type is located by name (route segment); only the new name is in the body.\nexport interface RenameDataTypeRequest {\n NewName: string;\n}\n\nexport interface RenameDataTypeResponse {\n ProjectName: string;\n OldName: string;\n NewName: string;\n}\n\n// POST /api/projects/{projectName}/data-types/{dataTypeName}/update-instructions.\n// The data type is located by name (route segment); the new instructions\n// replace the existing ones. The response does not echo the instructions back\n// (they are the caller's own input).\nexport interface UpdateDataTypeInstructionsRequest {\n Instructions: string;\n}\n\nexport interface UpdateDataTypeInstructionsResponse {\n ProjectName: string;\n Name: string;\n}\n\n// DELETE /api/projects/{projectName}/data-types/{dataTypeName}\nexport interface DeleteDataTypeResponse {\n ProjectName: string;\n Name: string;\n}\n\nfunction dataTypesPath(projectName: string): string {\n return `/api/projects/${encodeURIComponent(projectName)}/data-types`;\n}\n\nexport async function createDataType(\n config: IxpConfig,\n projectName: string,\n request: CreateDataTypeRequest,\n): Promise<CreateDataTypeResponse> {\n return designtimePost<CreateDataTypeResponse>(\n config,\n dataTypesPath(projectName),\n request,\n \"Failed to add data type\",\n );\n}\n\nexport async function renameDataType(\n config: IxpConfig,\n projectName: string,\n dataTypeName: string,\n request: RenameDataTypeRequest,\n): Promise<RenameDataTypeResponse> {\n return designtimePost<RenameDataTypeResponse>(\n config,\n `${dataTypesPath(projectName)}/${encodeURIComponent(dataTypeName)}/rename`,\n request,\n \"Failed to rename data type\",\n );\n}\n\nexport async function updateDataTypeInstructions(\n config: IxpConfig,\n projectName: string,\n dataTypeName: string,\n request: UpdateDataTypeInstructionsRequest,\n): Promise<UpdateDataTypeInstructionsResponse> {\n return designtimePost<UpdateDataTypeInstructionsResponse>(\n config,\n `${dataTypesPath(projectName)}/${encodeURIComponent(dataTypeName)}/update-instructions`,\n request,\n \"Failed to update data type instructions\",\n );\n}\n\nexport async function deleteDataType(\n config: IxpConfig,\n projectName: string,\n dataTypeName: string,\n): Promise<DeleteDataTypeResponse> {\n return designtimeDelete<DeleteDataTypeResponse>(\n config,\n `${dataTypesPath(projectName)}/${encodeURIComponent(dataTypeName)}`,\n \"Failed to delete data type\",\n );\n}\n\n// ── Field groups (label defs) — public Design-Time API (passthrough) ────────\n//\n// These types mirror the public Design-Time API request/response models\n// verbatim (PascalCase keys). A \"field group\" is a label def in the dataset's\n// single \"default\" label group. The proxy does server-side what the CLI used\n// to do client-side over the private reinfer API: resolve each field's Type\n// name against the project's entity_defs, enforce name uniqueness, and sweep\n// the taxonomy for prompt updates. The SDK forwards the parsed response\n// without remapping.\n\n// One field to create inside a new group. Type is a data-type (entity def)\n// NAME resolved server-side to the backend field_type_id.\nexport interface CreateGroupField {\n Name: string;\n Type: string;\n Instructions: string;\n}\n\n// POST /api/projects/{projectName}/groups\nexport interface CreateGroupRequest {\n Name: string;\n Instructions: string;\n Fields: CreateGroupField[];\n}\n\nexport interface CreateGroupResponse {\n ProjectName: string;\n Group: string;\n FieldsCreated: number;\n}\n\n// DELETE /api/projects/{projectName}/groups/{groupName}\nexport interface DeleteGroupResponse {\n ProjectName: string;\n Group: string;\n}\n\n// POST /api/projects/{projectName}/groups/{groupName}/rename\nexport interface RenameGroupRequest {\n NewName: string;\n}\n\nexport interface RenameGroupResponse {\n ProjectName: string;\n OldName: string;\n NewName: string;\n}\n\n// POST /api/projects/{projectName}/groups/update-prompts\nexport interface GroupPromptUpdate {\n Name: string;\n Instructions: string;\n}\n\nexport interface UpdateGroupPromptsRequest {\n Updates: GroupPromptUpdate[];\n}\n\n// A group whose instruction update could not be written. Omitted from the\n// response (Failed = null/absent) when every update succeeded.\nexport interface GroupPromptUpdateFailure {\n Name: string;\n Error: string;\n}\n\nexport interface UpdateGroupPromptsResponse {\n ProjectName: string;\n GroupsUpdated: number;\n Unmatched: string[];\n Failed?: GroupPromptUpdateFailure[] | null;\n}\n\nfunction groupsPath(projectName: string): string {\n return `/api/projects/${encodeURIComponent(projectName)}/groups`;\n}\n\nexport async function createGroup(\n config: IxpConfig,\n projectName: string,\n request: CreateGroupRequest,\n): Promise<CreateGroupResponse> {\n return designtimePost<CreateGroupResponse>(\n config,\n groupsPath(projectName),\n request,\n \"Failed to add field group\",\n );\n}\n\nexport async function deleteGroup(\n config: IxpConfig,\n projectName: string,\n groupName: string,\n): Promise<DeleteGroupResponse> {\n return designtimeDelete<DeleteGroupResponse>(\n config,\n `${groupsPath(projectName)}/${encodeURIComponent(groupName)}`,\n \"Failed to delete field group\",\n );\n}\n\nexport async function renameGroup(\n config: IxpConfig,\n projectName: string,\n groupName: string,\n request: RenameGroupRequest,\n): Promise<RenameGroupResponse> {\n return designtimePost<RenameGroupResponse>(\n config,\n `${groupsPath(projectName)}/${encodeURIComponent(groupName)}/rename`,\n request,\n \"Failed to rename field group\",\n );\n}\n\nexport async function updateGroupPrompts(\n config: IxpConfig,\n projectName: string,\n request: UpdateGroupPromptsRequest,\n): Promise<UpdateGroupPromptsResponse> {\n return designtimePost<UpdateGroupPromptsResponse>(\n config,\n `${groupsPath(projectName)}/update-prompts`,\n request,\n \"Failed to update group prompts\",\n );\n}\n\n// ── Fields — public Design-Time API (passthrough) ──────────────────────────\n//\n// Fields are the moon_form entries within a field group (label def). The public\n// Design-Time API exposes them through dedicated endpoints that own the\n// read-modify-write of the field group's moon_form server-side; the SDK forwards\n// the parsed response verbatim (PascalCase keys, already CLI-aligned). The\n// {groupName} route segment names the field group (label def); the always-\n// \"default\" label group is resolved server-side.\n\nfunction fieldsBasePath(projectName: string, groupName: string): string {\n return `/api/projects/${encodeURIComponent(projectName)}/groups/${encodeURIComponent(groupName)}/fields`;\n}\n\n// POST /api/projects/{projectName}/groups/{groupName}/fields\nexport interface AddFieldResponse {\n ProjectName: string;\n FieldGroup: string;\n Field: string;\n FieldTypeId: string;\n}\n\n// `type` is a field-TYPE name (an entity def in the project taxonomy); the\n// server resolves it to the backend field_type_id.\nexport async function addField(\n config: IxpConfig,\n projectName: string,\n groupName: string,\n field: { name: string; type: string; instructions: string },\n): Promise<AddFieldResponse> {\n return designtimePost<AddFieldResponse>(\n config,\n fieldsBasePath(projectName, groupName),\n {\n Name: field.name,\n Type: field.type,\n Instructions: field.instructions,\n },\n \"Failed to add field\",\n );\n}\n\n// DELETE /api/projects/{projectName}/groups/{groupName}/fields/{fieldName}\nexport interface DeleteFieldResponse {\n ProjectName: string;\n FieldGroup: string;\n Field: string;\n}\n\n// The field is located by name (case-sensitive against the moon_form entries),\n// matching rename/change-type — the server owns the lookup.\nexport async function deleteField(\n config: IxpConfig,\n projectName: string,\n groupName: string,\n fieldName: string,\n): Promise<DeleteFieldResponse> {\n return designtimeDelete<DeleteFieldResponse>(\n config,\n `${fieldsBasePath(projectName, groupName)}/${encodeURIComponent(fieldName)}`,\n \"Failed to delete field\",\n );\n}\n\n// POST /api/projects/{projectName}/groups/{groupName}/fields/rename\nexport interface RenameFieldResponse {\n ProjectName: string;\n FieldGroup: string;\n OldName: string;\n NewName: string;\n}\n\nexport async function renameField(\n config: IxpConfig,\n projectName: string,\n groupName: string,\n fieldName: string,\n newName: string,\n): Promise<RenameFieldResponse> {\n return designtimePost<RenameFieldResponse>(\n config,\n `${fieldsBasePath(projectName, groupName)}/rename`,\n { Field: fieldName, NewName: newName },\n \"Failed to rename field\",\n );\n}\n\n// POST /api/projects/{projectName}/groups/{groupName}/fields/change-type\nexport interface ChangeFieldTypeResponse {\n ProjectName: string;\n FieldGroup: string;\n Field: string;\n NewFieldTypeId: string;\n}\n\n// `type` is a field-TYPE name resolved server-side. Irreversible: re-typing\n// deletes the field's annotations, so the server requires confirmDataLoss.\nexport async function changeFieldType(\n config: IxpConfig,\n projectName: string,\n groupName: string,\n fieldName: string,\n typeName: string,\n confirmDataLoss: boolean,\n): Promise<ChangeFieldTypeResponse> {\n return designtimePost<ChangeFieldTypeResponse>(\n config,\n `${fieldsBasePath(projectName, groupName)}/change-type`,\n { Field: fieldName, Type: typeName, ConfirmDataLoss: confirmDataLoss },\n \"Failed to change field type\",\n );\n}\n\n// POST /api/projects/{projectName}/fields/update-prompts (project-level, no group)\nexport interface FieldPromptUpdate {\n name: string;\n instructions: string;\n}\n\nexport interface FieldPromptFailure {\n FieldGroup: string;\n Error: string;\n}\n\nexport interface UpdateFieldPromptsResponse {\n ProjectName: string;\n FieldsUpdated: number;\n Unmatched: string[];\n Failed?: FieldPromptFailure[] | null;\n}\n\n// Bulk-updates per-field instructions, matched by field name across all field\n// groups. The server owns the matching and per-group write.\nexport async function updateFieldPrompts(\n config: IxpConfig,\n projectName: string,\n updates: FieldPromptUpdate[],\n): Promise<UpdateFieldPromptsResponse> {\n return designtimePost<UpdateFieldPromptsResponse>(\n config,\n `/api/projects/${encodeURIComponent(projectName)}/fields/update-prompts`,\n {\n Updates: updates.map((u) => ({\n Name: u.name,\n Instructions: u.instructions,\n })),\n },\n \"Failed to update field prompts\",\n );\n}\n"
16
+ ],
17
+ "mappings": ";AAEO,MAAM,gCAAgC,MAAM;AAAA,EACtC,UAAU;AAAA,EACnB,WAAW,CAAC,SAAiB;AAAA,IACzB,MAAM,OAAO;AAAA,IACb,KAAK,OAAO;AAAA;AAEpB;AAUO,IAAM,oBAAmC,OAAO,IACnD,0BACJ;AAcO,SAAS,QAAQ,GAAiB;AAAA,EACrC,MAAM,IAAK,WAAqC;AAAA,EAChD,IAAI,CAAC,GAAG;AAAA,IACJ,MAAM,IAAI,wBACN,mHACJ;AAAA,EACJ;AAAA,EACA,OAAO;AAAA;;;ACzBJ,IAAM,sBAAsB,CAC/B,UAAiC,CAAC,MACX,SAA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wBACJ;AAAA;AAWJ,eAAsB,WAAW,CAC7B,QACA,aACA,WACA,WACA,SAC4B;AAAA,EAC5B,OAAO,eACH,QACA,GAAG,eAAe,aAAa,SAAS,YACxC,EAAE,OAAO,WAAW,SAAS,QAAQ,GACrC,wBACJ;AAAA;AAaJ,eAAsB,eAAe,CACjC,QACA,aACA,WACA,WACA,UACA,iBACgC;AAAA,EAChC,OAAO,eACH,QACA,GAAG,eAAe,aAAa,SAAS,iBACxC,EAAE,OAAO,WAAW,MAAM,UAAU,iBAAiB,gBAAgB,GACrE,6BACJ;AAAA;AAuBJ,eAAsB,kBAAkB,CACpC,QACA,aACA,SACmC;AAAA,EACnC,OAAO,eACH,QACA,iBAAiB,mBAAmB,WAAW,2BAC/C;AAAA,IACI,SAAS,QAAQ,IAAI,CAAC,OAAO;AAAA,MACzB,MAAM,EAAE;AAAA,MACR,cAAc,EAAE;AAAA,IACpB,EAAE;AAAA,EACN,GACA,gCACJ;AAAA;",
18
+ "debugId": "9DC5AF64B58C140964756E2164756E21",
19
+ "names": []
20
+ }
package/package.json ADDED
@@ -0,0 +1,34 @@
1
+ {
2
+ "name": "@uipath/ixp-sdk",
3
+ "license": "MIT",
4
+ "version": "1.196.1",
5
+ "description": "SDK for the UiPath IXP (Intelligent eXtraction Platform) API — projects, taxonomies, prompts, predictions, and model publishing.",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/UiPath/cli.git",
9
+ "directory": "packages/ixp-sdk"
10
+ },
11
+ "publishConfig": {
12
+ "registry": "https://registry.npmjs.org/"
13
+ },
14
+ "keywords": [
15
+ "uipath",
16
+ "ixp",
17
+ "sdk"
18
+ ],
19
+ "type": "module",
20
+ "main": "./dist/index.js",
21
+ "exports": {
22
+ ".": "./dist/index.js"
23
+ },
24
+ "files": [
25
+ "dist"
26
+ ],
27
+ "devDependencies": {
28
+ "@uipath/auth": "1.196.0",
29
+ "@uipath/common": "1.196.0",
30
+ "@types/node": "^25.5.2",
31
+ "typescript": "^6.0.2"
32
+ },
33
+ "gitHead": "419b60482f427b8e0d8e49b95432306512e833e4"
34
+ }