export interface ResourceFolderRef { fullyQualifiedName: string; [extra: string]: unknown; } export interface ResourceSpec { /** The entity definition (EntityJSON), stringified. The single copy. */ resourceJson: string; name: string; displayName: string; description: string; [extra: string]: unknown; } export interface SolutionResource { name: string; kind: string; type: string; apiVersion: string; isOverridable: boolean; dependencies: unknown[]; runtimeDependencies: unknown[]; folders: ResourceFolderRef[]; spec: ResourceSpec; locks: unknown[]; /** The entity's own Id GUID — reused, never minted here. */ key: string; files: unknown[]; [extra: string]: unknown; } export interface UnifiedResourceFile { docVersion: string; resource: SolutionResource; [extra: string]: unknown; } export declare const ENTITY_RESOURCE_KIND = "entity"; export declare const ENTITY_RESOURCE_TYPE = "native"; export declare const ENTITY_RESOURCE_API_VERSION = "dataservice.uipath.com/v2"; export declare const ENTITY_RESOURCE_DOC_VERSION = "1.0.0"; export declare const SOLUTION_FOLDER = "solution_folder"; /** * Directory segments under `resources//` that home an entity * definition. * * DERIVED from the kind and type above, never written out as its own literal: * the resource tree is partitioned by `/`, so a directory that * disagrees with the `kind`/`type` inside the file it holds is a directory the * platform will move. `resource-casing.ts` in solution-sdk recomputes this path * from the resource's own fields through `lowerFirstChar` and relocates the * file to match — and on a case-sensitive filesystem a stale case-variant left * behind carries the same resource key, which fails the next load with "Node * already added to the graph". * * So the casing is not a style choice. Server-sourced resources arrive * capitalized (`Entity/Native`, and `NativeEntity` while that server bug was * live) and are normalized down to this form; they are inputs, not the target. * The VS Code extension keys its delete guard and name-collision scan off * `ENTITY_RESOURCE_KIND` directly, so anything written elsewhere is invisible * to both. */ export declare const ENTITY_RESOURCE_DIR = "entity/native"; /** Solution-root-relative path of an entity's resource file. One convention * shared by scaffolding, the editor's pairing and pack. */ export declare function entityResourcePath(entityName: string): string;